korganizer

#include <calprintpluginbase.h>

Inheritance diagram for CalPrintPluginBase:
KOrg::PrintPlugin

Public Types

enum  DisplayFlags { Text =0x0001 , TimeBoxes =0x0002 }
 
- Public Types inherited from KOrg::PrintPlugin
typedef TQPtrList< PrintPluginList
 

Public Member Functions

 CalPrintPluginBase ()
 
virtual TQWidget * createConfigWidget (TQWidget *)
 
virtual void print (TQPainter &p, int width, int height)=0
 
virtual void doPrint (KPrinter *printer)
 
virtual void loadConfig ()=0
 
virtual void saveConfig ()=0
 
void doLoadConfig ()
 
void doSaveConfig ()
 
void setKOrgCoreHelper (KOrg::CoreHelper *helper)
 
bool useColors () const
 
void setUseColors (bool useColors)
 
TQColor categoryBgColor (Incidence *incidence)
 
TQColor textColor (const TQColor &color)
 
TQTime dayStart ()
 
bool isWorkingDay (const TQDate &dt)
 
TQString holidayString (const TQDate &dt)
 
Eventholiday (const TQDate &dt)
 
void setCategoryColors (TQPainter &p, Incidence *incidence)
 
KPrinter::Orientation orientation () const
 
int headerHeight () const
 
void setHeaderHeight (const int height)
 
int subHeaderHeight () const
 
void setSubHeaderHeight (const int height)
 
int footerHeight () const
 
void setFooterHeight (const int height)
 
int margin () const
 
void setMargin (const int margin)
 
int padding () const
 
void setPadding (const int margin)
 
int borderWidth () const
 
void setBorderWidth (const int border)
 
const KCalendarSystem * calendarSystem () const
 
void setCalendarSystem (const KCalendarSystem *calsys)
 
void printEventString (TQPainter &p, const TQRect &box, const TQString &str, int flags=-1)
 
void showEventBox (TQPainter &p, int linewidth, const TQRect &box, Incidence *incidence, const TQString &str, int flags=-1)
 
void drawSubHeaderBox (TQPainter &p, const TQString &str, const TQRect &box)
 
void drawVerticalBox (TQPainter &p, int linewidth, const TQRect &box, const TQString &str, int flags=-1)
 
int drawBoxWithCaption (TQPainter &p, const TQRect &box, const TQString &caption, const TQString &contents, bool sameLine, bool expand, const TQFont &captionFont, const TQFont &textFont)
 
int drawHeader (TQPainter &p, TQString title, const TQDate &month1, const TQDate &month2, const TQRect &box, bool expand=false)
 
int drawFooter (TQPainter &p, TQRect &box)
 
void drawSmallMonth (TQPainter &p, const TQDate &qd, const TQRect &box)
 
void drawDaysOfWeek (TQPainter &p, const TQDate &fromDate, const TQDate &toDate, const TQRect &box)
 
void drawDaysOfWeekBox (TQPainter &p, const TQDate &qd, const TQRect &box)
 
void drawTimeLine (TQPainter &p, const TQTime &fromTime, const TQTime &toTime, const TQRect &box)
 
int drawAllDayBox (TQPainter &p, Event::List &eventList, const TQDate &qd, bool expandable, const TQRect &box)
 
void drawAgendaDayBox (TQPainter &p, Event::List &eventList, const TQDate &qd, bool expandable, TQTime &fromTime, TQTime &toTime, const TQRect &box)
 
void drawAgendaItem (PrintCellItem *item, TQPainter &p, const TQDateTime &startPrintDate, const TQDateTime &endPrintDate, float minlen, const TQRect &box)
 
void drawDayBox (TQPainter &p, const TQDate &qd, const TQRect &box, bool fullDate=false, bool printRecurDaily=true, bool printRecurWeekly=true)
 
void drawWeek (TQPainter &p, const TQDate &qd, const TQRect &box)
 
void drawTimeTable (TQPainter &p, const TQDate &fromDate, const TQDate &toDate, TQTime &fromTime, TQTime &toTime, const TQRect &box)
 
void drawMonthTable (TQPainter &p, const TQDate &qd, bool weeknumbers, bool recurDaily, bool recurWeekly, const TQRect &box)
 
void drawMonth (TQPainter &p, const TQDate &dt, const TQRect &box, int maxdays=-1, int subDailyFlags=TimeBoxes, int holidaysFlags=Text)
 
void drawTodo (int &count, Todo *todo, TQPainter &p, TodoSortField sortField, SortDirection sortDir, bool connectSubTodos, bool strikeoutCompleted, bool desc, int posPriority, int posSummary, int posDueDt, int posPercentComplete, int level, int x, int &y, int width, int pageHeight, const Todo::List &todoList, TodoParentStart *r=0)
 
void drawJournal (Journal *journal, TQPainter &p, int x, int &y, int width, int pageHeight)
 
void drawJournalField (TQPainter &p, TQString field, TQString text, int x, int &y, int width, int pageHeight)
 
void drawSplitHeaderRight (TQPainter &p, const TQDate &fd, const TQDate &td, const TQDate &cd, int width, int height)
 
- Public Member Functions inherited from KOrg::PrintPlugin
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 KPrinter::Orientation defaultOrientation ()
 
virtual void readSettingsWidget ()
 
virtual void setSettingsWidget ()
 
virtual void setDateRange (const TQDate &from, const TQDate &to)
 

Static Public Member Functions

static int weekdayColumn (int weekday)
 
static void drawBox (TQPainter &p, int linewidth, const TQRect &rect)
 
static void drawShadedBox (TQPainter &p, int linewidth, const TQBrush &brush, const TQRect &rect)
 
- Static Public Member Functions inherited from KOrg::PrintPlugin
static int interfaceVersion ()
 
static TQString serviceType ()
 

Protected Member Functions

void drawIncidence (TQPainter &p, const TQRect &dayBox, const TQString &time, const TQString &summary, int &textY)
 

Protected Attributes

bool mUseColors
 
int mHeaderHeight
 
int mSubHeaderHeight
 
int mFooterHeight
 
int mMargin
 
int mPadding
 
int mBorder
 
const KCalendarSystem * mCalSys
 
- Protected Attributes inherited from KOrg::PrintPlugin
TQDate mFromDate
 
TQDate mToDate
 
TQWidget * mConfigWidget
 
KOrg::CoreHelper * mCoreHelper
 
KPrinter * mPrinter
 
KCal::CalendarmCalendar
 
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 64 of file calprintpluginbase.h.

Constructor & Destructor Documentation

◆ CalPrintPluginBase()

CalPrintPluginBase::CalPrintPluginBase ( )

Constructor.

Definition at line 117 of file calprintpluginbase.cpp.

Member Function Documentation

◆ categoryBgColor()

TQColor CalPrintPluginBase::categoryBgColor ( Incidence incidence)

Helper functions to hide the KOrg::CoreHelper.

Definition at line 253 of file calprintpluginbase.cpp.

◆ createConfigWidget()

TQWidget * CalPrintPluginBase::createConfigWidget ( TQWidget *  w)
virtual

Returns widget for configuring the print format.

Implements KOrg::PrintPlugin.

Definition at line 128 of file calprintpluginbase.cpp.

◆ doLoadConfig()

void CalPrintPluginBase::doLoadConfig ( )
virtual

Load complete config.

This also calls loadConfig() of the derived class.

Reimplemented from KOrg::PrintPlugin.

Definition at line 180 of file calprintpluginbase.cpp.

◆ doPrint()

void CalPrintPluginBase::doPrint ( KPrinter *  printer)
virtual

Start printing.

Implements KOrg::PrintPlugin.

Definition at line 149 of file calprintpluginbase.cpp.

◆ doSaveConfig()

void CalPrintPluginBase::doSaveConfig ( )
virtual

Save complete config.

This also calls saveConfig() of the derived class.

Reimplemented from KOrg::PrintPlugin.

Definition at line 196 of file calprintpluginbase.cpp.

◆ drawAgendaDayBox()

void CalPrintPluginBase::drawAgendaDayBox ( TQPainter &  p,
Event::List &  eventList,
const TQDate &  qd,
bool  expandable,
TQTime &  fromTime,
TQTime &  toTime,
const TQRect &  box 
)

Draw the agenda box for the day print style (the box showing all events of that day).

Also draws a grid with half-hour spacing of the grid lines.

Parameters
pTQPainter of the printout
eventListThe list of the events that are supposed to be printed inside this box
qdThe date of the currently printed day
expandableIf true, the start and end times are adjusted to include the whole range of all events of that day, not just of the given time range. The height of the box will not be affected by this (but the height of one hour will be scaled down so that the whole range fits into the box. fromTime and toTime receive the actual time range printed by this function).
fromTimeStart of the time range to be printed. Might be adjusted to include all events if expandable==true
toTimeEnd of the time range to be printed. Might be adjusted to include all events if expandable==true
boxcoordinates of the agenda day box.

Definition at line 788 of file calprintpluginbase.cpp.

◆ drawAllDayBox()

int CalPrintPluginBase::drawAllDayBox ( TQPainter &  p,
Event::List &  eventList,
const TQDate &  qd,
bool  expandable,
const TQRect &  box 
)

Draw the all-day box for the agenda print view (the box on top which doesn't have a time on the time scale associated).

prints the all-day box for the agenda print view.

If expandable is set, height is the cell height of a single cell, and the returned height will be the total height used for the all-day events. If !expandable, only one cell will be used, and multiple events are concatenated using ", ".

Parameters
pTQPainter of the printout
eventListThe list of all-day events that are supposed to be printed inside this box
qdThe date of the currently printed day
expandableIf true, height is the height of one single cell, the printout will use as many cells as events in the list and return the total height needed for all of them. If false, height specifies the total height allowed for all events, and the events are displayed in one cell, with their summaries concatenated by ", ".
boxcoordinates of the all day box.
Returns
The height used for the all-day box.

if expandable is set, height is the cell height of a single cell, and the returned height will be the total height used for the all-day events. If !expandable, only one cell will be used, and multiple events are concatenated using ", ".

Definition at line 735 of file calprintpluginbase.cpp.

◆ drawBox()

void CalPrintPluginBase::drawBox ( TQPainter &  p,
int  linewidth,
const TQRect &  rect 
)
static

Draw a box with given width at the given coordinates.

Parameters
pThe printer to be used
linewidthThe border width of the box
rectThe rectangle of the box

Definition at line 368 of file calprintpluginbase.cpp.

◆ drawBoxWithCaption()

int CalPrintPluginBase::drawBoxWithCaption ( TQPainter &  p,
const TQRect &  box,
const TQString &  caption,
const TQString &  contents,
bool  sameLine,
bool  expand,
const TQFont &  captionFont,
const TQFont &  textFont 
)

Draw a component box with a heading (printed in bold).

Parameters
pTQPainter of the printout
boxCoordinates of the box
captionCaption string to be printed inside the box
contentsNormal text contents of the box. If contents.isNull(), then no text will be printed, only the caption.
sameLineWhether the contents should start on the same line as the caption (the space below the caption text will be used as indentation in the subsequent lines) or on the next line (no indentation of the contents)
expandWhether to expand the box vertically to fit the whole text in it.
Returns
The bottom of the printed box. If expand==true, the bottom of the drawn box is returned, if expand==false, the vertical end of the printed contents inside the box is returned. If you want to print some custom graphics or text below the contents, use the return value as the top-value of your custom contents in that case.

Definition at line 443 of file calprintpluginbase.cpp.

◆ drawDayBox()

void CalPrintPluginBase::drawDayBox ( TQPainter &  p,
const TQDate &  qd,
const TQRect &  box,
bool  fullDate = false,
bool  printRecurDaily = true,
bool  printRecurWeekly = true 
)

Draw the box containing a list of all events of the given day (with their times, of course).

Used in the Filofax and the month print style.

Parameters
pTQPainter of the printout
qdThe date of the currently printed day. All events of the calendar that appear on that day will be printed.
boxcoordinates of the day box.
fullDateWhether the title bar of the box should contain the full date string or just a short.
printRecurDailyWhether daily recurring incidences should be printed.
printRecurWeeklyWhether weekly recurring incidences should be printed.

Definition at line 925 of file calprintpluginbase.cpp.

◆ drawDaysOfWeek()

void CalPrintPluginBase::drawDaysOfWeek ( TQPainter &  p,
const TQDate &  fromDate,
const TQDate &  toDate,
const TQRect &  box 
)

Draw a horizontal bar with the weekday names of the given date range in the given area of the painter.

This is used for the weekday-bar on top of the timetable view and the month view.

Parameters
pTQPainter of the printout
fromDateFirst date of the printed dates
toDateLast date of the printed dates
boxcoordinates of the box for the days of the week

Definition at line 637 of file calprintpluginbase.cpp.

◆ drawDaysOfWeekBox()

void CalPrintPluginBase::drawDaysOfWeekBox ( TQPainter &  p,
const TQDate &  qd,
const TQRect &  box 
)

Draw a single weekday name in a box inside the given area of the painter.

This is called in a loop by drawDaysOfWeek.

Parameters
pTQPainter of the printout
qdDate of the printed day
boxcoordinates of the weekbox

Definition at line 655 of file calprintpluginbase.cpp.

◆ drawFooter()

int CalPrintPluginBase::drawFooter ( TQPainter &  p,
TQRect &  box 
)

Draw a page footer containing the printing date and possibly other things, like a page number.

Parameters
pTQPainter of the printout
boxcoordinates of the footer
Returns
The bottom of the printed box.

Definition at line 556 of file calprintpluginbase.cpp.

◆ drawHeader()

int CalPrintPluginBase::drawHeader ( TQPainter &  p,
TQString  title,
const TQDate &  month1,
const TQDate &  month2,
const TQRect &  box,
bool  expand = false 
)

Draw the gray header bar of the printout to the TQPainter.

It prints the given text and optionally one or two small month views, as specified by the two TQDate. The printed text can also contain a line feed. If month2 is invalid, only the month that contains month1 is printed. E.g. the filofax week view draws just the current month, while the month view draws the previous and the next month.

Parameters
pTQPainter of the printout
titleThe string printed as the title of the page (e.g. the date, date range or todo list title)
month1Date specifying the month for the left one of the small month views in the title bar. If left empty, only month2 will be printed (or none, it that is invalid as well).
month2Date specifying the month for the right one of the small month views in the title bar. If left empty, only month1 will be printed (or none, it that is invalid as well).
boxcoordinates of the title bar
expandWhether to expand the box vertically to fit the whole title in it.
Returns
The bottom of the printed box. If expand==false, this is box.bottom, otherwise it is larger than box.bottom and matches the y-coordinate of the surrounding rectangle.

Definition at line 506 of file calprintpluginbase.cpp.

◆ drawJournal()

void CalPrintPluginBase::drawJournal ( Journal journal,
TQPainter &  p,
int  x,
int &  y,
int  width,
int  pageHeight 
)

Draws single journal item.

Parameters
journalThe item to be printed.
pTQPainter of the printout
xx-coordinate of the upper left coordinate of the first item
yy-coordinate of the upper left coordinate of the first item
widthwidth of the whole list
pageHeightTotal height allowed for the list on a page. If an item would be below that line, a new page is started.

Definition at line 1667 of file calprintpluginbase.cpp.

◆ drawMonth()

void CalPrintPluginBase::drawMonth ( TQPainter &  p,
const TQDate &  dt,
const TQRect &  box,
int  maxdays = -1,
int  subDailyFlags = TimeBoxes,
int  holidaysFlags = Text 
)

Draw a vertical representation of the month containing the date dt.

Each day gets one line.

Parameters
pTQPainter of the printout
dtArbitrary date within the month to be printed
boxcoordinates of the box reserved for the month
maxdaysDays to print. If a value of -1 is given, the number of days is deduced from the month. If maxdays is larger than the number of days in the month, the remaining boxes are shaded to indicate they are not days of the month.
subDailyFlagsBitfield consisting of DisplayFlags flags to determine how events that do not cross midnight should be printed.
holidaysFlagsBitfield consisting of DisplayFlags flags to determine how holidays should be printed.

Definition at line 1156 of file calprintpluginbase.cpp.

◆ drawMonthTable()

void CalPrintPluginBase::drawMonthTable ( TQPainter &  p,
const TQDate &  qd,
bool  weeknumbers,
bool  recurDaily,
bool  recurWeekly,
const TQRect &  box 
)

Draw the month table of the month containing the date qd.

Each day gets one box (using drawDayBox) that contains a list of all events on that day. They are arranged in a matrix, with the first column being the first day of the week (so it might display some days of the previous and the next month). Above the matrix there is a bar showing the weekdays (drawn using drawDaysOfWeek).

Parameters
pTQPainter of the printout
qdArbitrary date within the month to be printed.
recurDailyWhether daily recurring incidences should be printed.
recurWeeklyWhether weekly recurring incidences should be printed.
weeknumbersWhether the week numbers are printed left of each row of the matrix
boxcoordinates of the month.

Definition at line 1343 of file calprintpluginbase.cpp.

◆ drawShadedBox()

void CalPrintPluginBase::drawShadedBox ( TQPainter &  p,
int  linewidth,
const TQBrush &  brush,
const TQRect &  rect 
)
static

Draw a shaded box with given width at the given coordinates.

Parameters
pThe printer to be used
linewidthThe border width of the box
brushThe brush to fill the box
rectThe rectangle of the box

Definition at line 378 of file calprintpluginbase.cpp.

◆ drawSmallMonth()

void CalPrintPluginBase::drawSmallMonth ( TQPainter &  p,
const TQDate &  qd,
const TQRect &  box 
)

Draw a small calendar with the days of a month into the given area.

Used for example in the title bar of the sheet.

Parameters
pTQPainter of the printout
qdArbitrary Date within the month to be printed.
boxcoordinates of the small calendar

Definition at line 569 of file calprintpluginbase.cpp.

◆ drawSubHeaderBox()

void CalPrintPluginBase::drawSubHeaderBox ( TQPainter &  p,
const TQString &  str,
const TQRect &  box 
)

Draw a subheader box with a shaded background and the given string.

Parameters
pTQPainter of the printout
strText to be printed inside the box
boxCoordinates of the box

Definition at line 416 of file calprintpluginbase.cpp.

◆ drawTimeLine()

void CalPrintPluginBase::drawTimeLine ( TQPainter &  p,
const TQTime &  fromTime,
const TQTime &  toTime,
const TQRect &  box 
)

Draw a (vertical) time scale from time fromTime to toTime inside the given area of the painter.

Every hour will have a one-pixel line over the whole width, every half-hour the line will only span the left half of the width. This is used in the day and timetable print styles

Parameters
pTQPainter of the printout
fromTimeStart time of the time range to display
toTimeEnd time of the time range to display
boxcoordinates of the timeline

Definition at line 662 of file calprintpluginbase.cpp.

◆ drawTimeTable()

void CalPrintPluginBase::drawTimeTable ( TQPainter &  p,
const TQDate &  fromDate,
const TQDate &  toDate,
TQTime &  fromTime,
TQTime &  toTime,
const TQRect &  box 
)

Draw the timetable view of the given time range from fromDate to toDate.

On the left side the time scale is printed (using drawTimeLine), then each day gets one column (printed using drawAgendaDayBox), and the events are displayed as boxes (like in korganizer's day/week view). The first cell of each column contains the all-day events (using drawAllDayBox with expandable=false). The given time range cannot be expanded to include all events.

Parameters
pTQPainter of the printout
fromDateFirst day to be included in the page
toDateLast day to be included in the page
fromTimeStart time of the displayed time range
toTimeEnd time of the displayed time range
boxcoordinates of the time table.

Definition at line 1093 of file calprintpluginbase.cpp.

◆ drawTodo()

void CalPrintPluginBase::drawTodo ( int &  count,
Todo todo,
TQPainter &  p,
TodoSortField  sortField,
SortDirection  sortDir,
bool  connectSubTodos,
bool  strikeoutCompleted,
bool  desc,
int  posPriority,
int  posSummary,
int  posDueDt,
int  posPercentComplete,
int  level,
int  x,
int &  y,
int  width,
int  pageHeight,
const Todo::List &  todoList,
TodoParentStart *  r = 0 
)

Draws single to-do and its (intented) sub-to-dos, optionally connects them by a tree-like line, and optionally shows due date, summary, description and priority.

Parameters
countThe number of the currently printed to-do (count will be incremented for each to-do drawn)
todoThe to-do to be printed. It's sub-to-dos are recursively drawn, so drawTodo should only be called on the to-dos of the highest level.
pTQPainter of the printout
sortFieldSpecifies on which attribute of the todo you want to sort.
sortDirSpecifies if you want to sort ascending or descending.
connectSubTodosWhether sub-to-dos shall be connected with their parent by a line (tree-like).
strikeoutCompletedWhether completed to-dos should be printed with strike-out summaries.
descWhether to print the whole description of the to-do (the summary is always printed).
posPriorityx-coordinate where the priority is supposed to be printed. If <0, no priority will be printed.
posSummaryx-coordinate where the summary of the to-do is supposed to be printed.
posDueDtx-coordinate where the due date is supposed to the be printed. If <0, no due date will be printed.
posPercentCompletex-coordinate where the percentage complete is supposed to be printed. If <0, percentage complete will not be printed.
levelLevel of the current to-do in the to-do hierarchy (0 means highest level of printed to-dos, 1 are their sub-to-dos, etc.)
xx-coordinate of the upper left coordinate of the first to-do.
yy-coordinate of the upper left coordinate of the first to-do.
widthwidth of the whole to-do list.
pageHeightTotal height allowed for the to-do list on a page. If an to-do would be below that line, a new page is started.
todoListContains a list of sub-todos for the specified todo .
rInternal (used when printing sub-to-dos to give information about its parent)

Definition at line 1416 of file calprintpluginbase.cpp.

◆ drawVerticalBox()

void CalPrintPluginBase::drawVerticalBox ( TQPainter &  p,
int  linewidth,
const TQRect &  box,
const TQString &  str,
int  flags = -1 
)

Draw an event box with vertical text.

Parameters
pTQPainter of the printout
linewidthis the width of the line used to draw the box, ignored if less than 1.
boxCoordinates of the box
strext to be printed inside the box
flagsis a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values.

Definition at line 425 of file calprintpluginbase.cpp.

◆ drawWeek()

void CalPrintPluginBase::drawWeek ( TQPainter &  p,
const TQDate &  qd,
const TQRect &  box 
)

Draw the week (filofax) table of the week containing the date qd.

The first three days of the week will be shown in the first column (using drawDayBox), the remaining four in the second column, where the last two days of the week (typically Saturday and Sunday) only get half the height of the other day boxes.

Parameters
pTQPainter of the printout
qdArbitrary date within the week to be printed.
boxcoordinates of the week box.

Definition at line 1063 of file calprintpluginbase.cpp.

◆ footerHeight()

int CalPrintPluginBase::footerHeight ( ) const

Returns the height of the page footer.

If the height was explicitly set using setFooterHeight, that value is returned, otherwise a default value based on the printer orientation.

Returns
height of the page footer of the printout

Definition at line 324 of file calprintpluginbase.cpp.

◆ headerHeight()

int CalPrintPluginBase::headerHeight ( ) const

Returns the height of the page header.

If the height was explicitly set using setHeaderHeight, that value is returned, otherwise a default value based on the printer orientation.

Returns
height of the page header of the printout

Definition at line 301 of file calprintpluginbase.cpp.

◆ loadConfig()

virtual void CalPrintPluginBase::loadConfig ( )
pure virtual

Load print format configuration from config file.

◆ print()

virtual void CalPrintPluginBase::print ( TQPainter &  p,
int  width,
int  height 
)
pure virtual

Actually do the printing.

Parameters
pTQPainter the print result is painted to
widthWidth of printable area
heightHeight of printable area

◆ printEventString()

void CalPrintPluginBase::printEventString ( TQPainter &  p,
const TQRect &  box,
const TQString &  str,
int  flags = -1 
)

Print the given string (event summary) in the given rectangle.

Margins and justification (centered or not) are automatically adjusted.

Parameters
pTQPainter of the printout
boxCoordinates of the surrounding event box
strThe text to be printed in the box
flagsis a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values.

Definition at line 386 of file calprintpluginbase.cpp.

◆ saveConfig()

virtual void CalPrintPluginBase::saveConfig ( )
pure virtual

Write print format configuration to config file.

◆ setKOrgCoreHelper()

void CalPrintPluginBase::setKOrgCoreHelper ( KOrg::CoreHelper *  helper)
virtual

HELPER FUNCTIONS.

Reimplemented from KOrg::PrintPlugin.

Definition at line 213 of file calprintpluginbase.cpp.

◆ showEventBox()

void CalPrintPluginBase::showEventBox ( TQPainter &  p,
int  linewidth,
const TQRect &  box,
Incidence incidence,
const TQString &  str,
int  flags = -1 
)

Print the box for the given event with the given string.

Parameters
pTQPainer of the printout
linewidthis the width of the line used to draw the box, ignored if less than 1.
boxCoordinates of the event's box
incidenceThe incidence (if available), from which the category color will be deduced, if applicable.
strThe string to print inside the box
flagsis a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values.

Definition at line 394 of file calprintpluginbase.cpp.

◆ weekdayColumn()

int CalPrintPluginBase::weekdayColumn ( int  weekday)
static

Determines the column of the given weekday ( 1=Monday, 7=Sunday ), taking the start of the week setting into account as given in kcontrol.

Parameters
weekdayIndex of the weekday

Definition at line 1641 of file calprintpluginbase.cpp.


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