korganizer

KOrg::PrintPlugin Class Reference

Base class for KOrganizer printing classes. More...

#include <printplugin.h>

Inheritance diagram for KOrg::PrintPlugin:

CalPrintPluginBase

List of all members.


Public Types

typedef TQPtrList< PrintPluginList

Public Member Functions

virtual void setKOrgCoreHelper (KOrg::CoreHelper *helper)
virtual void setConfig (KConfig *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::CalendarmCalendar
KCal::Incidence::List mSelectedIncidences
KConfig * 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

virtual TQString KOrg::PrintPlugin::description (  )  [pure virtual]

Returns short description of print format.

virtual TQString KOrg::PrintPlugin::info (  )  [pure virtual]

Returns long description of print format.

virtual int KOrg::PrintPlugin::sortID (  )  [inline, virtual]

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.

virtual bool KOrg::PrintPlugin::enabled (  )  [inline, virtual]

Returns true if the plugin should be enabled; false otherwise.

Definition at line 91 of file printplugin.h.

virtual void KOrg::PrintPlugin::doPrint ( KPrinter *  printer  )  [pure virtual]

Actually do the printing.

Implemented in CalPrintPluginBase.

virtual KPrinter::Orientation KOrg::PrintPlugin::defaultOrientation (  )  [inline, virtual]

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.

virtual void KOrg::PrintPlugin::doLoadConfig (  )  [inline, virtual]

Load complete config.

Reimplemented in CalPrintPluginBase.

Definition at line 121 of file printplugin.h.

virtual void KOrg::PrintPlugin::doSaveConfig (  )  [inline, virtual]

Save complete config.

Reimplemented in CalPrintPluginBase.

Definition at line 125 of file printplugin.h.

virtual void KOrg::PrintPlugin::readSettingsWidget (  )  [inline, virtual]

Read settings from configuration widget and apply them to current object.

Definition at line 132 of file printplugin.h.

virtual void KOrg::PrintPlugin::setSettingsWidget (  )  [inline, virtual]

Set configuration widget to reflect settings of current object.

Definition at line 136 of file printplugin.h.

virtual void KOrg::PrintPlugin::setDateRange ( const TQDate &  from,
const TQDate &  to 
) [inline, virtual]

Set date range which should be printed.

Definition at line 141 of file printplugin.h.


Member Data Documentation

KPrinter* KOrg::PrintPlugin::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: