kspread Library API Documentation

kspread_dlg_subtotal.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
00003              (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
00004              (C) 2002 Laurent Montel <montel@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA.
00020 */
00021 
00022 
00023 #ifndef __kspread_dlg_subtotal__
00024 #define __kspread_dlg_subtotal__
00025 
00026 #include <kdialogbase.h>
00027 
00028 #include <qpoint.h>
00029 #include <qrect.h>
00030 
00031 class KSpreadView;
00032 class KSpreadSheet;
00033 class KSpreadSubtotal;
00034 
00035 class QLineEdit;
00036 
00037 class KSpreadSubtotalDlg : public KDialogBase
00038 { 
00039   Q_OBJECT
00040 
00041  public:
00042   KSpreadSubtotalDlg( KSpreadView * parent, QRect const & selection, 
00043                       const char * name );
00044   ~KSpreadSubtotalDlg();
00045 
00046   QRect const & selection() const { return m_selection; }
00047   KSpreadSheet * sheet() const { return m_pSheet; }
00048 
00049  private slots:
00050   void slotOk();
00051   void slotCancel();
00052   void slotUser1();
00053 
00054  private:
00055   KSpreadView  *    m_pView;
00056   KSpreadSheet *    m_pSheet;
00057   QRect             m_selection;
00058   KSpreadSubtotal * m_dialog;
00059 
00060   void fillColumnBoxes();
00061   void fillFunctionBox();
00062   void removeSubtotalLines();
00063   bool addSubtotal( int mainCol, int column, int row, int topRow, 
00064                     bool addRow, QString const & text );
00065 };
00066 
00067 #endif
00068 
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:02 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003