Documentation: Menus.docbook Composer menu Message and correcct formatting.
[kdepim.git] / korganizer / exportwebdialog.h
blobae0c28ddad908297215de2642067c1a2b734e918
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution.
25 #ifndef KORG_EXPORTWEBDIALOG_H
26 #define KORG_EXPORTWEBDIALOG_H
28 #include <libkdepim/prefs/kprefsdialog.h>
30 namespace KOrg {
31 class HTMLExportSettings;
34 /**
35 ExportWebDialog is a class that provides the dialog and functions to export a
36 calendar as web page.
38 class ExportWebDialog : public KPageDialog, public KPIM::KPrefsWidManager
40 Q_OBJECT
41 public:
42 explicit ExportWebDialog( KOrg::HTMLExportSettings *settings, QWidget *parent = 0 );
43 virtual ~ExportWebDialog();
45 public slots:
46 void slotTextChanged( const QString & _text );
48 protected:
49 void setupGeneralPage();
50 void setupEventPage();
51 void setupTodoPage();
52 // void setupJournalPage();
53 // void setupFreeBusyPage();
54 // void setupAdvancedPage();
56 public slots:
57 void setDefaults();
58 void readConfig();
59 void writeConfig();
61 signals:
62 void configChanged();
63 void exportHTML( KOrg::HTMLExportSettings * );
65 protected slots:
66 void slotOk();
67 void slotApply();
68 void slotDefault();
70 protected:
71 virtual void usrReadConfig() {}
72 virtual void usrWriteConfig() {}
74 private slots:
75 void updateState();
77 private:
78 KOrg::HTMLExportSettings *mSettings;
79 QFrame *mGeneralPage;
80 QFrame *mEventPage;
81 QFrame *mTodoPage;
82 // QFrame *mJournalPage;
83 // QFrame *mFreeBusyPage;
84 // QFrame *mAdvancedPage;
85 QGroupBox *mDateRangeGroup;
86 QCheckBox *mMonthViewCheckBox;
87 QCheckBox *mEventListCheckBox;
90 #endif // _EXPORTWEBDIALOG_H