#include <calprintpluginbase.h>
Public Types | |
enum | DisplayFlags { Text =0x0001 , TimeBoxes =0x0002 } |
Public Types inherited from KOrg::PrintPlugin | |
typedef TQPtrList< PrintPlugin > | List |
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) |
Event * | holiday (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::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 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()
|
virtual |
Returns widget for configuring the print format.
Implements KOrg::PrintPlugin.
Definition at line 128 of file calprintpluginbase.cpp.
◆ 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()
|
virtual |
Start printing.
Implements KOrg::PrintPlugin.
Definition at line 149 of file calprintpluginbase.cpp.
◆ 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
-
p TQPainter of the printout eventList The list of the events that are supposed to be printed inside this box qd The date of the currently printed day expandable If 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). fromTime Start of the time range to be printed. Might be adjusted to include all events if expandable==true toTime End of the time range to be printed. Might be adjusted to include all events if expandable==true box coordinates 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
-
p TQPainter of the printout eventList The list of all-day events that are supposed to be printed inside this box qd The date of the currently printed day expandable If 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 ", ". box coordinates 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()
|
static |
Draw a box with given width at the given coordinates.
- Parameters
-
p The printer to be used linewidth The border width of the box rect The 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
-
p TQPainter of the printout box Coordinates of the box caption Caption string to be printed inside the box contents Normal text contents of the box. If contents.isNull(), then no text will be printed, only the caption. sameLine Whether 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) expand Whether 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
-
p TQPainter of the printout qd The date of the currently printed day. All events of the calendar that appear on that day will be printed. box coordinates of the day box. fullDate Whether the title bar of the box should contain the full date string or just a short. printRecurDaily Whether daily recurring incidences should be printed. printRecurWeekly Whether 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
-
p TQPainter of the printout fromDate First date of the printed dates toDate Last date of the printed dates box coordinates 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
-
p TQPainter of the printout qd Date of the printed day box coordinates 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
-
p TQPainter of the printout box coordinates 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
-
p TQPainter of the printout title The string printed as the title of the page (e.g. the date, date range or todo list title) month1 Date 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). month2 Date 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). box coordinates of the title bar expand Whether 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
-
journal The item to be printed. p TQPainter of the printout x x-coordinate of the upper left coordinate of the first item y y-coordinate of the upper left coordinate of the first item width width of the whole list pageHeight Total 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
-
p TQPainter of the printout dt Arbitrary date within the month to be printed box coordinates of the box reserved for the month maxdays Days 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. subDailyFlags Bitfield consisting of DisplayFlags flags to determine how events that do not cross midnight should be printed. holidaysFlags Bitfield 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
-
p TQPainter of the printout qd Arbitrary date within the month to be printed. recurDaily Whether daily recurring incidences should be printed. recurWeekly Whether weekly recurring incidences should be printed. weeknumbers Whether the week numbers are printed left of each row of the matrix box coordinates of the month.
Definition at line 1343 of file calprintpluginbase.cpp.
◆ drawShadedBox()
|
static |
Draw a shaded box with given width at the given coordinates.
- Parameters
-
p The printer to be used linewidth The border width of the box brush The brush to fill the box rect The 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
-
p TQPainter of the printout qd Arbitrary Date within the month to be printed. box coordinates 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
-
p TQPainter of the printout str Text to be printed inside the box box Coordinates 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
-
p TQPainter of the printout fromTime Start time of the time range to display toTime End time of the time range to display box coordinates 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
-
p TQPainter of the printout fromDate First day to be included in the page toDate Last day to be included in the page fromTime Start time of the displayed time range toTime End time of the displayed time range box coordinates 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
-
count The number of the currently printed to-do (count will be incremented for each to-do drawn) todo The 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. p TQPainter of the printout sortField Specifies on which attribute of the todo you want to sort. sortDir Specifies if you want to sort ascending or descending. connectSubTodos Whether sub-to-dos shall be connected with their parent by a line (tree-like). strikeoutCompleted Whether completed to-dos should be printed with strike-out summaries. desc Whether to print the whole description of the to-do (the summary is always printed). posPriority x-coordinate where the priority is supposed to be printed. If <0, no priority will be printed. posSummary x-coordinate where the summary of the to-do is supposed to be printed. posDueDt x-coordinate where the due date is supposed to the be printed. If <0, no due date will be printed. posPercentComplete x-coordinate where the percentage complete is supposed to be printed. If <0, percentage complete will not be printed. level Level 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.) x x-coordinate of the upper left coordinate of the first to-do. y y-coordinate of the upper left coordinate of the first to-do. width width of the whole to-do list. pageHeight Total height allowed for the to-do list on a page. If an to-do would be below that line, a new page is started. todoList Contains a list of sub-todos for the specified todo
.r Internal (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
-
p TQPainter of the printout linewidth is the width of the line used to draw the box, ignored if less than 1. box Coordinates of the box str ext to be printed inside the box flags is 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
-
p TQPainter of the printout qd Arbitrary date within the week to be printed. box coordinates 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()
|
pure virtual |
Load print format configuration from config file.
◆ print()
|
pure virtual |
Actually do the printing.
- Parameters
-
p TQPainter the print result is painted to width Width of printable area height Height 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
-
p TQPainter of the printout box Coordinates of the surrounding event box str The text to be printed in the box flags is a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values.
Definition at line 386 of file calprintpluginbase.cpp.
◆ saveConfig()
|
pure virtual |
Write print format configuration to config file.
◆ setKOrgCoreHelper()
|
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
-
p TQPainer of the printout linewidth is the width of the line used to draw the box, ignored if less than 1. box Coordinates of the event's box incidence The incidence (if available), from which the category color will be deduced, if applicable. str The string to print inside the box flags is a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values.
Definition at line 394 of file calprintpluginbase.cpp.
◆ weekdayColumn()
|
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
-
weekday Index of the weekday
Definition at line 1641 of file calprintpluginbase.cpp.
The documentation for this class was generated from the following files: