korganizer

CalPrinter Class Reference

CalPrinter is a class for printing Calendars. More...

#include <calprinter.h>

Inheritance diagram for CalPrinter:
KOrg::CalPrinterBase

List of all members.

Public Types

enum  ePrintOrientation { eOrientPlugin = 0, eOrientPrinter, eOrientPortrait, eOrientLandscape }

Public Slots

void updateConfig ()

Public Member Functions

 CalPrinter (TQWidget *par, Calendar *cal, KOrg::CoreHelper *helper)
void init (Calendar *calendar)
void setDateRange (const TQDate &start, const TQDate &end)
void print (int type, const TQDate &fd, const TQDate &td, Incidence::List selectedIncidences=Incidence::List(), bool preview=false)
Calendarcalendar () const
KConfig * config () const

Protected Attributes

KOrg::PrintPlugin::List mPrintPlugins

Detailed Description

CalPrinter is a class for printing Calendars.

It can print in several different formats (day, week, month). It also provides a way for setting up the printer and remembering these preferences.

Definition at line 53 of file calprinter.h.


Constructor & Destructor Documentation

CalPrinter::CalPrinter ( TQWidget *  par,
Calendar cal,
KOrg::CoreHelper *  helper 
)
Parameters:
par parent widget for dialogs
cal calendar to be printed
helper is a pointer to the KOrg::CoreHelper object

Definition at line 49 of file calprinter.cpp.


Member Function Documentation

void CalPrinter::setDateRange ( const TQDate &  start,
const TQDate &  end 
)

Set date range to be printed.

Parameters:
start Start date
end End date

Definition at line 93 of file calprinter.cpp.


The documentation for this class was generated from the following files: