kspread

kspread_dlg_subtotal.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
3 (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
4 (C) 2002 Laurent Montel <montel@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22
23#ifndef __kspread_dlg_subtotal__
24#define __kspread_dlg_subtotal__
25
26#include <kdialogbase.h>
27
28#include <tqpoint.h>
29#include <tqrect.h>
30
31class TQLineEdit;
32
33namespace KSpread
34{
35class Sheet;
36class Subtotal;
37class View;
38
39class SubtotalDialog : public KDialogBase
40{
41 TQ_OBJECT
42
43
44 public:
45 SubtotalDialog( View * parent, TQRect const & selection,
46 const char * name );
47 ~SubtotalDialog();
48
49 TQRect const & selection() const { return m_selection; }
50 Sheet * sheet() const { return m_pSheet; }
51
52 private slots:
53 void slotOk();
54 void slotCancel();
55 void slotUser1();
56
57 private:
58 View * m_pView;
59 Sheet * m_pSheet;
60 TQRect m_selection;
61 Subtotal * m_dialog;
62
63 void fillColumnBoxes();
64 void fillFunctionBox();
65 void removeSubtotalLines();
66 bool addSubtotal( int mainCol, int column, int row, int topRow,
67 bool addRow, TQString const & text );
68};
69
70} // namespace KSpread
71
72#endif
73
The View class displays a KSpread document.
The KSpread namespace.
Definition commands.h:39