kspread
SubtotalDialog.hGo to the documentation of this file.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_SUBTOTAL_DIALOG
00024 #define KSPREAD_SUBTOTAL_DIALOG
00025
00026 #include <QRect>
00027
00028 #include <kdialog.h>
00029
00030 #include <ui_SubtotalWidget.h>
00031
00032
00033 namespace KSpread
00034 {
00035 class Selection;
00036 class Sheet;
00037
00038 class SubtotalDialog : public KDialog, public ::Ui::SubtotalWidget
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 SubtotalDialog(QWidget* parent, Selection* selection);
00044 ~SubtotalDialog();
00045
00046 QRect const & selection() const {
00047 return m_range;
00048 }
00049 Sheet * sheet() const {
00050 return m_pSheet;
00051 }
00052
00053 private slots:
00054 void slotOk();
00055 void slotCancel();
00056 void slotUser1();
00057
00058 private:
00059 Selection * m_selection;
00060 Sheet * m_pSheet;
00061 QRect m_range;
00062
00063 void fillColumnBoxes();
00064 void fillFunctionBox();
00065 void removeSubtotalLines();
00066 bool addSubtotal(int mainCol, int column, int row, int topRow,
00067 bool addRow, QString const & text);
00068 };
00069
00070 }
00071
00072 #endif // KSPREAD_SUBTOTAL_DIALOG
|