#include <printplugin.h>
Public Types | |
typedef TQPtrList< PrintPlugin > | List |
Public Member Functions | |
virtual void | setKOrgCoreHelper (KOrg::CoreHelper *helper) |
virtual void | setConfig (TDEConfig *cfg) |
virtual void | setCalendar (KCal::Calendar *cal) |
virtual void | setSelectedIncidences (KCal::Incidence::List inc) |
virtual KCal::Incidence::List | selectedIncidences () const |
virtual TQString | description ()=0 |
virtual TQString | info ()=0 |
virtual int | sortID () |
virtual bool | enabled () |
TQWidget * | configWidget (TQWidget *w) |
virtual TQWidget * | createConfigWidget (TQWidget *)=0 |
virtual void | doPrint (KPrinter *printer)=0 |
virtual KPrinter::Orientation | defaultOrientation () |
virtual void | doLoadConfig () |
virtual void | doSaveConfig () |
virtual void | readSettingsWidget () |
virtual void | setSettingsWidget () |
virtual void | setDateRange (const TQDate &from, const TQDate &to) |
Static Public Member Functions | |
static int | interfaceVersion () |
static TQString | serviceType () |
Protected Attributes | |
TQDate | mFromDate |
TQDate | mToDate |
TQWidget * | mConfigWidget |
KOrg::CoreHelper * | mCoreHelper |
KPrinter * | mPrinter |
KCal::Calendar * | mCalendar |
KCal::Incidence::List | mSelectedIncidences |
TDEConfig * | mConfig |
Detailed Description
Base class for KOrganizer printing classes.
Each sub class represents one calendar print format.
Definition at line 51 of file printplugin.h.
Member Function Documentation
◆ defaultOrientation()
|
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.
Definition at line 116 of file printplugin.h.
◆ description()
|
pure virtual |
Returns short description of print format.
◆ doLoadConfig()
|
inlinevirtual |
Load complete config.
Reimplemented in CalPrintPluginBase.
Definition at line 121 of file printplugin.h.
◆ doPrint()
|
pure virtual |
Actually do the printing.
Implemented in CalPrintPluginBase.
◆ doSaveConfig()
|
inlinevirtual |
Save complete config.
Reimplemented in CalPrintPluginBase.
Definition at line 125 of file printplugin.h.
◆ enabled()
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Definition at line 91 of file printplugin.h.
◆ info()
|
pure virtual |
Returns long description of print format.
◆ readSettingsWidget()
|
inlinevirtual |
Read settings from configuration widget and apply them to current object.
Definition at line 132 of file printplugin.h.
◆ setDateRange()
|
inlinevirtual |
Set date range which should be printed.
Definition at line 141 of file printplugin.h.
◆ setSettingsWidget()
|
inlinevirtual |
Set configuration widget to reflect settings of current object.
Definition at line 136 of file printplugin.h.
◆ sortID()
|
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.
Definition at line 86 of file printplugin.h.
Member Data Documentation
◆ mPrinter
|
protected |
The printer object.
This will only be available in the doPrint method of the selected plugin
Definition at line 156 of file printplugin.h.
The documentation for this class was generated from the following file: