1
/* This file is part of the KDE project
2
Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
3
(C) 2002 Ariya Hidayat <ariya@kde.org>
4
(C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
5
(C) 2002 John Dailey <dailey@vt.edu>
6
(C) 2000-2001 Werner Trobin <trobin@kde.org>
7
(C) 2000-2001 Laurent Montel <montel@kde.org>
8
(C) 1999-2002 David Faure <faure@kde.org>
9
(C) 1999 Stephan Kulow <coolo@kde.org>
10
(C) 1999 Reginald Stadlbauer <reggie@kde.org>
11
(C) 1998-1999 Torben Weis <weis@kde.org>
13
This library is free software; you can redistribute it and/or
14
modify it under the terms of the GNU Library General Public
15
License as published by the Free Software Foundation; either
16
version 2 of the License, or (at your option) any later version.
18
This library is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
Library General Public License for more details.
23
You should have received a copy of the GNU Library General Public License
24
along with this library; see the file COPYING.LIB. If not, write to
25
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26
Boston, MA 02111-1307, USA.
29
#ifndef __kspread_dlg_cons__
30
#define __kspread_dlg_cons__
32
#include <qstringlist.h>
33
#include <kdialogbase.h>
44
class KSpreadConsolidate : public KDialogBase
48
KSpreadConsolidate( KSpreadView* parent, const char* name );
49
~KSpreadConsolidate();
53
virtual void slotOk();
54
virtual void slotCancel();
58
void slotSelectionChanged( KSpreadSheet* _sheet, const QRect& _selection );
59
void slotReturnPressed();
62
virtual void closeEvent ( QCloseEvent * );
67
QComboBox* m_pFunction;
69
QPushButton* m_pRemove;
74
QString evaluate( const QString& formula, KSpreadSheet* sheet );
76
enum { Sum = 0, Average, Count, Max, Min, Product, StdDev, Var };