korganizer
#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 | setKOrgCoreHelper (KOrg::CoreHelper *helper) |
virtual void | setSelectedIncidences (KCalCore::Incidence::List inc) |
virtual void | setSettingsWidget () |
virtual int | sortID () |
Static Public Member Functions | |
static int | interfaceVersion () |
static QString | serviceType () |
Protected Attributes | |
Akonadi::ETMCalendar::Ptr | mCalendar |
KConfig * | mConfig |
QPointer< QWidget > | mConfigWidget |
KOrg::CoreHelper * | mCoreHelper |
QDate | mFromDate |
QPrinter * | mPrinter |
KCalCore::Incidence::List | mSelectedIncidences |
QDate | mToDate |
Detailed Description
Base class for KOrganizer printing classes.
Each sub class represents one calendar print format.
Definition at line 62 of file printplugin.h.
Member Typedef Documentation
typedef QList<PrintPlugin*> KOrg::PrintPlugin::List |
Definition at line 69 of file printplugin.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 65 of file printplugin.h.
|
inlinevirtual |
Definition at line 67 of file printplugin.h.
Member Function Documentation
Definition at line 116 of file printplugin.h.
Implemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintPluginBase, CalPrintIncidence, CalPrintWhatsNext, CalPrintItemList, CalPrintYear, and CalPrintJournal.
|
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 CalPrintMonth, CalPrintWeek, CalPrintIncidence, and CalPrintYear.
Definition at line 139 of file printplugin.h.
|
pure virtual |
Returns short description of print format.
Implemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintItemList, CalPrintWhatsNext, CalPrintJournal, and CalPrintYear.
|
inlinevirtual |
Load complete config.
Reimplemented in CalPrintPluginBase.
Definition at line 145 of file printplugin.h.
|
pure virtual |
Actually do the printing.
Implemented in CalPrintPluginBase.
|
inlinevirtual |
Save complete config.
Reimplemented in CalPrintPluginBase.
Definition at line 149 of file printplugin.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintWhatsNext, CalPrintItemList, CalPrintJournal, and CalPrintYear.
Definition at line 114 of file printplugin.h.
|
pure virtual |
Returns KConfig group name where store settings.
Implemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintJournal, and CalPrintYear.
|
pure virtual |
Returns long description of print format.
Implemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintItemList, CalPrintWhatsNext, CalPrintJournal, and CalPrintYear.
|
inlinestatic |
Definition at line 70 of file printplugin.h.
|
inlinevirtual |
Read settings from configuration widget and apply them to current object.
Reimplemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintWhatsNext, CalPrintItemList, CalPrintJournal, and CalPrintYear.
Definition at line 155 of file printplugin.h.
|
inlinevirtual |
Definition at line 85 of file printplugin.h.
|
inlinestatic |
Definition at line 72 of file printplugin.h.
|
inlinevirtual |
Definition at line 80 of file printplugin.h.
|
inlinevirtual |
Definition at line 78 of file printplugin.h.
|
inlinevirtual |
Set date range which should be printed.
Reimplemented in CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintWhatsNext, CalPrintItemList, CalPrintJournal, and CalPrintYear.
Definition at line 165 of file printplugin.h.
|
inlinevirtual |
Reimplemented in CalPrintPluginBase.
Definition at line 75 of file printplugin.h.
|
inlinevirtual |
Definition at line 82 of file printplugin.h.
|
inlinevirtual |
Set configuration widget to reflect settings of current object.
Reimplemented in CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintWhatsNext, CalPrintItemList, CalPrintJournal, and CalPrintYear.
Definition at line 160 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 CalPrintTodos, CalPrintMonth, CalPrintWeek, CalPrintDay, CalPrintIncidence, CalPrintWhatsNext, CalPrintItemList, CalPrintJournal, and CalPrintYear.
Definition at line 109 of file printplugin.h.
Member Data Documentation
|
protected |
Definition at line 181 of file printplugin.h.
|
protected |
Definition at line 183 of file printplugin.h.
|
protected |
Definition at line 176 of file printplugin.h.
|
protected |
Definition at line 177 of file printplugin.h.
|
protected |
Definition at line 172 of file printplugin.h.
|
protected |
The printer object.
This will only be available in the doPrint method of the selected plugin
Definition at line 180 of file printplugin.h.
|
protected |
Definition at line 182 of file printplugin.h.
|
protected |
Definition at line 173 of file printplugin.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.