kspread

kspread_dlg_styles.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Laurent Montel <montel@kde.org>
3 (C) 2003 Norbert Andres <nandres@web.de>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __kspread_dlg_styles__
22#define __kspread_dlg_styles__
23
24#include <kdialogbase.h>
25#include <tqwidget.h>
26
27class KComboBox;
28class TDEListView;
29
30class TQListViewItem;
31
32namespace KSpread
33{
34class StyleManager;
35class View;
36
37class StyleWidget : public TQWidget
38{
39 TQ_OBJECT
40
41
42 public:
43 StyleWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
44 ~StyleWidget();
45
46 TDEListView * m_styleList;
47 KComboBox * m_displayBox;
48signals:
49 void modifyStyle();
50};
51
52class StyleDlg : public KDialogBase
53{
54 TQ_OBJECT
55
56 public:
57 StyleDlg( View * parent, StyleManager * manager,
58 const char * name = "StyleDlg" );
59 ~StyleDlg();
60
61 protected slots:
62 void slotOk();
63 void slotUser1();
64 void slotUser2();
65 void slotUser3();
66 void slotDisplayMode( int mode );
67 void slotSelectionChanged( TQListViewItem * );
68
69 private:
70 View * m_view;
71 StyleManager * m_styleManager;
72 StyleWidget * m_dlg;
73
74 void fillComboBox();
75};
76
77} // namespace KSpread
78
79#endif
The KSpread namespace.
Definition commands.h:39