kspread_plugininsertcalendar.h
1/***************************************************************************
2 * Copyright (C) 2005 by Raphael Langerhorst *
3 * raphael-langerhorst@gmx.at *
4 * *
5 * Permission is hereby granted, free of charge, to any person obtaining *
6 * a copy of this software and associated documentation files (the *
7 * "Software"), to deal in the Software without restriction, including *
8 * without limitation the rights to use, copy, modify, merge, publish, *
9 * distribute, sublicense, and/or sell copies of the Software, and to *
10 * permit persons to whom the Software is furnished to do so, subject to *
11 * the following conditions: *
12 * *
13 * The above copyright notice and this permission notice shall be *
14 * included in all copies or substantial portions of the Software. *
15 * *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
19 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR *
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
22 * OTHER DEALINGS IN THE SOFTWARE. *
23 ***************************************************************************/
24
25#ifndef KSPREAD_PLUGININSERTCALENDAR_H
26#define KSPREAD_PLUGININSERTCALENDAR_H
27
28#include <tdeparts/plugin.h>
29
30#include <koffice_export.h>
31
32#include <tqdatetime.h>
33
34class TDEAboutData;
35
36namespace KSpread
37{
38class View;
39
40class InsertCalendarDialog;
41
52class KSPREAD_EXPORT PluginInsertCalendar : public KParts::Plugin
53{
54 TQ_OBJECT
55
56
57 protected:
58
66 View* m_kspreadView;
67
74 InsertCalendarDialog* m_dialog;
75
76 public:
77
81 PluginInsertCalendar( TQObject *parent, const char *name, const TQStringList& args );
82
86 virtual ~PluginInsertCalendar();
87
88 public:
89
93 static TDEAboutData* createAboutData();
94
95 public slots:
96
102 void slotShowDialog();
103
109 void slotInsertCalendar(const TQDate &start, const TQDate &end);
110};
111
112}
113
114#endif
The KSpread namespace.
Definition commands.h:39