kspread_dlg_subtotal.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
This file is part of the documentation for kspread Library Version 1.4.2.