calendarsupport
#include <printplugin.h>
Public Types | |
typedef QList< PrintPlugin * > | List |
Public Member Functions | |
PrintPlugin () | |
virtual | ~PrintPlugin () |
QWidget * | configWidget (QWidget *w) |
virtual QWidget * | createConfigWidget (QWidget *)=0 |
virtual QPrinter::Orientation | defaultOrientation () |
virtual QString | description ()=0 |
virtual void | doLoadConfig () |
virtual void | doPrint (QPrinter *printer)=0 |
virtual void | doSaveConfig () |
virtual bool | enabled () |
virtual QString | groupName ()=0 |
virtual QString | info () const =0 |
virtual void | readSettingsWidget () |
virtual KCalCore::Incidence::List | selectedIncidences () const |
virtual void | setCalendar (const Akonadi::ETMCalendar::Ptr &cal) |
virtual void | setConfig (KConfig *cfg) |
virtual void | setDateRange (const QDate &from, const QDate &to) |
virtual void | setSelectedIncidences (KCalCore::Incidence::List inc) |
virtual void | setSettingsWidget () |
virtual int | sortID () |
Public Member Functions inherited from CalendarSupport::Plugin | |
Plugin () | |
virtual | ~Plugin () |
virtual void | configure (QWidget *) |
Static Public Member Functions | |
static int | interfaceVersion () |
Static Public Member Functions inherited from CalendarSupport::Plugin | |
static int | interfaceVersion () |
static QString | serviceType () |
Protected Attributes | |
Akonadi::ETMCalendar::Ptr | mCalendar |
KConfig * | mConfig |
QPointer< QWidget > | mConfigWidget |
QDate | mFromDate |
QPrinter * | mPrinter |
KCalCore::Incidence::List | mSelectedIncidences |
QDate | mToDate |
Detailed Description
Base class for Calendar printing classes.
Each sub class represents one calendar print format.
Definition at line 56 of file printplugin.h.
Member Typedef Documentation
Definition at line 63 of file printplugin.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 59 of file printplugin.h.
|
inlinevirtual |
Definition at line 61 of file printplugin.h.
Member Function Documentation
Definition at line 104 of file printplugin.h.
|
inlinevirtual |
Orientation of printout.
Default is Portrait. If your plugin wants to use some other orientation as default (e.g. depending on some config settings), implement this function in your subclass and return the desired orientation.
Reimplemented in CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintIncidence, and CalendarSupport::CalPrintYear.
Definition at line 127 of file printplugin.h.
|
pure virtual |
Returns short description of print format.
Implemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
|
inlinevirtual |
Load complete config.
Reimplemented in CalendarSupport::CalPrintPluginBase.
Definition at line 133 of file printplugin.h.
|
pure virtual |
Actually do the printing.
Implemented in CalendarSupport::CalPrintPluginBase.
|
inlinevirtual |
Save complete config.
Reimplemented in CalendarSupport::CalPrintPluginBase.
Definition at line 137 of file printplugin.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
Definition at line 102 of file printplugin.h.
|
pure virtual |
Returns KConfig group name where store settings.
Implemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
|
pure virtual |
Returns long description of print format.
Implements CalendarSupport::Plugin.
Implemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
|
inlinestatic |
Definition at line 64 of file printplugin.h.
|
inlinevirtual |
Read settings from configuration widget and apply them to current object.
Reimplemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
Definition at line 143 of file printplugin.h.
|
inlinevirtual |
Definition at line 73 of file printplugin.h.
|
inlinevirtual |
Definition at line 68 of file printplugin.h.
|
inlinevirtual |
Definition at line 66 of file printplugin.h.
|
inlinevirtual |
Set date range which should be printed.
Reimplemented in CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
Definition at line 153 of file printplugin.h.
|
inlinevirtual |
Definition at line 70 of file printplugin.h.
|
inlinevirtual |
Set configuration widget to reflect settings of current object.
Reimplemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
Definition at line 148 of file printplugin.h.
|
inlinevirtual |
Returns the sort ID of the plugin.
This value will be used to identify the config widget in the widget stack, and to sort the plugin name in the print style selection list. If another plugin uses the same ID or a value of -1 is returned, a unique (negative) ID will be automatically generated and thus the position of the plugin in the selection list is undefined.
Reimplemented in CalendarSupport::CalPrintTodos, CalendarSupport::CalPrintMonth, CalendarSupport::CalPrintWeek, CalendarSupport::CalPrintDay, CalendarSupport::CalPrintIncidence, CalendarSupport::CalPrintJournal, and CalendarSupport::CalPrintYear.
Definition at line 97 of file printplugin.h.
Member Data Documentation
|
protected |
Definition at line 168 of file printplugin.h.
|
protected |
Definition at line 170 of file printplugin.h.
Definition at line 164 of file printplugin.h.
|
protected |
Definition at line 160 of file printplugin.h.
|
protected |
The printer object.
This will only be available in the doPrint method of the selected plugin
Definition at line 167 of file printplugin.h.
|
protected |
Definition at line 169 of file printplugin.h.
|
protected |
Definition at line 161 of file printplugin.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.