kspread
kspread_dlg_subtotal.h00001
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 QLineEdit;
00032
00033 namespace KSpread
00034 {
00035 class Sheet;
00036 class Subtotal;
00037 class View;
00038
00039 class SubtotalDialog : public KDialogBase
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 SubtotalDialog( View * parent, QRect const & selection,
00045 const char * name );
00046 ~SubtotalDialog();
00047
00048 QRect const & selection() const { return m_selection; }
00049 Sheet * sheet() const { return m_pSheet; }
00050
00051 private slots:
00052 void slotOk();
00053 void slotCancel();
00054 void slotUser1();
00055
00056 private:
00057 View * m_pView;
00058 Sheet * m_pSheet;
00059 QRect m_selection;
00060 Subtotal * m_dialog;
00061
00062 void fillColumnBoxes();
00063 void fillFunctionBox();
00064 void removeSubtotalLines();
00065 bool addSubtotal( int mainCol, int column, int row, int topRow,
00066 bool addRow, QString const & text );
00067 };
00068
00069 }
00070
00071 #endif
00072
|