25 #ifndef CALPRINTDEFAULTPLUGINS_H
26 #define CALPRINTDEFAULTPLUGINS_H
29 #include <tdelocale.h>
30 #include "calprintpluginbase.h"
32 #ifndef KORG_NOPRINTER
44 virtual ~CalPrintIncidence();
45 virtual TQString description()
47 return i18n( "Print &incidence" );
49 virtual TQString info()
51 return i18n( "Prints an incidence on one page" );
55 return CalPrinterBase::Incidence;
59 virtual bool enabled()
61 if ( mSelectedIncidences.count() > 0 ) {
67 virtual TQWidget *createConfigWidget( TQWidget * );
68 virtual KPrinter::Orientation defaultOrientation()
70 return KPrinter::Portrait;
74 void print( TQPainter &p, int width, int height );
75 virtual void readSettingsWidget();
76 virtual void setSettingsWidget();
77 virtual void loadConfig();
78 virtual void saveConfig();
80 int printCaptionAndText( TQPainter &p, const TQRect &box, const TQString &caption,
81 const TQString &text, TQFont captionFont, TQFont textFont );
86 bool mShowSubitemsNotes;
88 bool mShowAttachments;
96 virtual ~CalPrintDay();
97 virtual TQString description()
99 return i18n( "Print da&y" );
101 virtual TQString info()
103 return i18n( "Prints all events of a single day on one page" );
107 return CalPrinterBase::Day;
109 virtual bool enabled()
113 virtual TQWidget *createConfigWidget( TQWidget* );
116 void print(TQPainter &p, int width, int height);
117 virtual void readSettingsWidget();
118 virtual void setSettingsWidget();
119 virtual void loadConfig();
120 virtual void saveConfig();
121 virtual void setDateRange( const TQDate& from, const TQDate& to );
124 TQTime mStartTime, mEndTime;
126 bool mIncludeAllEvents;
133 virtual ~CalPrintWeek();
134 virtual TQString description()
136 return i18n( "Print &week" );
138 virtual TQString info()
140 return i18n( "Prints all events of one week on one page" );
144 return CalPrinterBase::Week;
146 virtual bool enabled()
150 virtual TQWidget *createConfigWidget( TQWidget * );
155 virtual KPrinter::Orientation defaultOrientation();
158 void print(TQPainter &p, int width, int height);
159 virtual void readSettingsWidget();
160 virtual void setSettingsWidget();
161 virtual void loadConfig();
162 virtual void saveConfig();
163 virtual void setDateRange( const TQDate& from, const TQDate& to );
166 enum eWeekPrintType { Filofax=0, Timetable, SplitWeek } mWeekPrintType;
167 TQTime mStartTime, mEndTime;
175 virtual ~CalPrintMonth();
176 virtual TQString description()
178 return i18n( "Print mont&h" );
180 virtual TQString info()
182 return i18n( "Prints all events of one month on one page" );
186 return CalPrinterBase::Month;
188 virtual bool enabled()
192 virtual TQWidget *createConfigWidget( TQWidget * );
193 virtual KPrinter::Orientation defaultOrientation()
195 return KPrinter::Landscape;
200 void print(TQPainter &p, int width, int height);
201 virtual void readSettingsWidget();
202 virtual void setSettingsWidget();
203 virtual void loadConfig();
204 virtual void saveConfig();
205 virtual void setDateRange( const TQDate& from, const TQDate& to );
218 virtual ~CalPrintTodos();
219 virtual TQString description()
221 return i18n( "Print to-&dos" );
223 virtual TQString info()
225 return i18n( "Prints all to-dos in a (tree-like) list" );
229 return CalPrinterBase::Todolist;
231 virtual bool enabled()
235 virtual TQWidget *createConfigWidget( TQWidget * );
238 void print( TQPainter &p, int width, int height );
239 virtual void readSettingsWidget();
240 virtual void setSettingsWidget();
241 virtual void loadConfig();
242 virtual void saveConfig();
247 enum eTodoPrintType {
253 enum eTodoSortField {
254 TodoFieldSummary = 0,
258 TodoFieldPercentComplete,
262 enum eTodoSortDirection {
263 TodoDirectionAscending = 0,
264 TodoDirectionDescending,
266 } mTodoSortDirection;
268 bool mIncludeDescription;
269 bool mIncludePriority;
270 bool mIncludeDueDate;
271 bool mIncludePercentComplete;
272 bool mConnectSubTodos;
273 bool mStrikeOutCompleted;
Base class for KOrganizer printing classes.
|