calprintpluginbase.h
189 static void drawShadedBox( TQPainter &p, int linewidth, const TQBrush &brush, const TQRect &rect );
467 void drawMonth( TQPainter &p, const TQDate &dt, const TQRect &box, int maxdays = -1, int subDailyFlags = TimeBoxes, int holidaysFlags = Text );
void printEventString(TQPainter &p, const TQRect &box, const TQString &str, int flags=-1)
Print the given string (event summary) in the given rectangle.
Definition calprintpluginbase.cpp:386
void 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...
Definition calprintpluginbase.cpp:637
virtual void loadConfig()=0
Load print format configuration from config file.
void 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.
Definition calprintpluginbase.cpp:1156
void drawSmallMonth(TQPainter &p, const TQDate &qd, const TQRect &box)
Draw a small calendar with the days of a month into the given area.
Definition calprintpluginbase.cpp:569
TQColor categoryBgColor(Incidence *incidence)
Helper functions to hide the KOrg::CoreHelper.
Definition calprintpluginbase.cpp:253
virtual TQWidget * createConfigWidget(TQWidget *)
Returns widget for configuring the print format.
Definition calprintpluginbase.cpp:128
static void drawBox(TQPainter &p, int linewidth, const TQRect &rect)
Draw a box with given width at the given coordinates.
Definition calprintpluginbase.cpp:368
int 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).
Definition calprintpluginbase.cpp:443
void drawSubHeaderBox(TQPainter &p, const TQString &str, const TQRect &box)
Draw a subheader box with a shaded background and the given string.
Definition calprintpluginbase.cpp:416
void 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).
Definition calprintpluginbase.cpp:925
void 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.
Definition calprintpluginbase.cpp:394
void 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.
Definition calprintpluginbase.cpp:1093
void drawDaysOfWeekBox(TQPainter &p, const TQDate &qd, const TQRect &box)
Draw a single weekday name in a box inside the given area of the painter.
Definition calprintpluginbase.cpp:655
void drawJournal(Journal *journal, TQPainter &p, int x, int &y, int width, int pageHeight)
Draws single journal item.
Definition calprintpluginbase.cpp:1667
void 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.
Definition calprintpluginbase.cpp:1343
int 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 ...
Definition calprintpluginbase.cpp:735
virtual void print(TQPainter &p, int width, int height)=0
Actually do the printing.
static int weekdayColumn(int weekday)
Determines the column of the given weekday ( 1=Monday, 7=Sunday ), taking the start of the week setti...
Definition calprintpluginbase.cpp:1641
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)
Draws single to-do and its (intented) sub-to-dos, optionally connects them by a tree-like line,...
Definition calprintpluginbase.cpp:1416
static void drawShadedBox(TQPainter &p, int linewidth, const TQBrush &brush, const TQRect &rect)
Draw a shaded box with given width at the given coordinates.
Definition calprintpluginbase.cpp:378
int 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.
Definition calprintpluginbase.cpp:506
void drawVerticalBox(TQPainter &p, int linewidth, const TQRect &box, const TQString &str, int flags=-1)
Draw an event box with vertical text.
Definition calprintpluginbase.cpp:425
void setKOrgCoreHelper(KOrg::CoreHelper *helper)
HELPER FUNCTIONS.
Definition calprintpluginbase.cpp:213
void 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.
Definition calprintpluginbase.cpp:662
virtual void saveConfig()=0
Write print format configuration to config file.
void drawWeek(TQPainter &p, const TQDate &qd, const TQRect &box)
Draw the week (filofax) table of the week containing the date qd.
Definition calprintpluginbase.cpp:1063
int drawFooter(TQPainter &p, TQRect &box)
Draw a page footer containing the printing date and possibly other things, like a page number.
Definition calprintpluginbase.cpp:556
void 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).
Definition calprintpluginbase.cpp:788
TodoSortField
SortDirection
