PIMPrint Library
calprintday.cpp
Go to the documentation of this file.
int daysTo(const QDate &d) const
void setBottom(int y)
QTime startTime() const
Returns the current print starting time.
void setExtraOptions(ExtraOptions flags)
Sets extra options for printing.
Definition: calprintbase.cpp:361
void drawDayFiloFax(QPainter &p) const
Definition: calprintday.cpp:208
void drawBox(QPainter &p, const int linewidth, const QRect &box) const
Draws a box with given width at the given coordinates.
Definition: calprintbase.cpp:371
QPrinter * thePrinter() const
Returns a pointer to the currently set QPrinter.
Definition: calprintbase.cpp:168
Definition: calprintday.h:42
void drawAgendaDayBox(QPainter &p, const QRect &box, const QDate &date, const KCalCore::Event::List &eventList, const QTime &startTime, const QTime &endTime, const QList< QDate > &workDays) const
Draws the agenda box.
Definition: calprintbase.cpp:724
const QFont & font() const
void drawDayTimeTable(QPainter &p) const
Definition: calprintday.cpp:245
QDate endDate() const
Returns the current print ending date.
ExtraOptions extraOptions() const
Returns the current extra option flags.
Definition: calprintbase.cpp:366
int pageWidth() const
Returns the current printed page width.
int height() const
void drawTimeTable(QPainter &p, const QRect &box, const QDate &startDate, const QDate &endDate, const QTime &startTime, const QTime &endTime, bool expandAll=false) const
Draws the timetable view of the given time range from startDate to endDate.
Definition: calprintbase.cpp:655
void drawVerticalBox(QPainter &p, const int linewidth, const QRect &box, const QString &str, int flags=-1) const
Draws an event box with vertical text.
Definition: calprintbase.cpp:425
void drawDaySingleTimeTable(QPainter &p) const
Definition: calprintday.cpp:225
int timeLineWidth() const
Returns the width of timelines.
virtual bool event(QEvent *e)
RangeOptions rangeOptions() const
Returns the current time-range option flags.
Definition: calprintbase.cpp:356
void setFont(const QFont &font)
void drawItemString(QPainter &p, const QRect &box, const QString &str, int flags=-1) const
Draws the given string (incidence summary) in the given rectangle.
Definition: calprintbase.cpp:395
int top() const
int boxBorderWidth() const
Returns the width of box borders.
void setTop(int y)
int left() const
void setWidth(int width)
bool isValid() const
int drawFooter(QPainter &p, const QRect &box) const
Draws a page footer containing the printing date and possibly other things, like a page number...
Definition: calprintbase.cpp:568
QTime addSecs(int s) const
KCalCore::Calendar::Ptr printCalendar() const
Returns a pointer to the currently set print calendar.
Definition: calprintbase.cpp:178
void drawTimeLine(QPainter &p, const QTime &startTime, const QTime &endTime, const QRect &box) const
Draws a (vertical) time scale from time startTime to endTime inside the given area of the painter...
Definition: calprintbase.cpp:583
void setStartTime(const QTime &time)
Sets the printout starting time.
Definition: calprintday.cpp:115
int hour() const
void setRangeOptions(RangeOptions flags)
Sets time-range options for printing.
Definition: calprintbase.cpp:351
int headerHeight() const
Returns the current height of the page header.
bool newPage()
QDate startDate() const
Returns the current print starting date.
void setInfoOptions(InfoOptions flags)
Sets information options for printing.
Definition: calprintbase.cpp:331
int drawHeader(QPainter &p, const QRect &box, const QString &title, const QDate &leftMonth=QDate(), const QDate &rightMonth=QDate(), const bool expand=false, const QColor &backColor=QColor()) const
Draws the gray header bar of the printout to the QPainter.
Definition: calprintbase.cpp:497
int footerHeight() const
Returns the current height of the page footer.
void drawDayBox(QPainter &p, const QRect &box, const QDate &date, const QTime &startTime, const QTime &endTime, bool fullDate=false) const
Draws the box containing a list of all events and to-dos of the given day.
Definition: calprintbase.cpp:1141
int width() const
bool useLandscape() const
Returns if the current printed page orientation is landscape.
QFontMetrics fontMetrics() const
void setTypeOptions(TypeOptions flags)
Sets type options for printing.
Definition: calprintbase.cpp:341
int bottom() const
int pageHeight() const
Returns the current printed page height.
CalPrintDay(QPrinter *printer)
Definition: calprintday.cpp:51
QString cleanString(const QString &str) const
Cleans a string of newlines and other characters that shouldn't be printed.
Definition: calprintbase.cpp:1336
QDate addDays(int ndays) const
QTime endTime() const
Returns the current print ending time.
void setLeft(int x)
int lineSpacing() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.