calendarsupport
#include <journalprint.h>
Public Member Functions | |
CalPrintJournal () | |
virtual | ~CalPrintJournal () |
virtual QWidget * | createConfigWidget (QWidget *) |
virtual QString | description () |
virtual bool | enabled () |
virtual QString | groupName () |
virtual QString | info () const |
virtual void | loadConfig () |
virtual void | print (QPainter &p, int width, int height) |
virtual void | readSettingsWidget () |
virtual void | saveConfig () |
virtual void | setDateRange (const QDate &from, const QDate &to) |
virtual void | setSettingsWidget () |
virtual int | sortID () |
Public Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
CalPrintPluginBase () | |
virtual | ~CalPrintPluginBase () |
int | borderWidth () const |
const KCalendarSystem * | calendarSystem () |
void | doLoadConfig () |
virtual void | doPrint (QPrinter *printer) |
void | doSaveConfig () |
void | drawAgendaDayBox (QPainter &p, const KCalCore::Event::List &eventList, const QDate &qd, bool expandable, const QTime &fromTime, const QTime &toTime, const QRect &box, bool includeDescription, bool excludeTime, bool excludeConfidential, bool excludePrivate, const QList< QDate > &workDays) |
void | drawAgendaItem (PrintCellItem *item, QPainter &p, const KDateTime &startPrintDate, const KDateTime &endPrintDate, float minlen, const QRect &box, bool includeDescription, bool excludeTime) |
int | drawAllDayBox (QPainter &p, const KCalCore::Event::List &eventList, const QDate &qd, bool expandable, const QRect &box, bool excludeConfidential, bool excludePrivate) |
int | drawBoxWithCaption (QPainter &p, const QRect &box, const QString &caption, const QString &contents, bool sameLine, bool expand, const QFont &captionFont, const QFont &textFont, bool richContents=false) |
void | drawDayBox (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, const QRect &box, bool fullDate=false, bool printRecurDaily=true, bool printRecurWeekly=true, bool singleLineLimit=true, bool showNoteLines=false, bool includeDescription=false, bool excludeDescription=true, bool excludePrivate=true) |
void | drawDays (QPainter &p, const QDate &start, const QDate &end, const QTime &fromTime, const QTime &toTime, const QRect &box, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate) |
void | drawDaysOfWeek (QPainter &p, const QDate &fromDate, const QDate &toDate, const QRect &box) |
void | drawDaysOfWeekBox (QPainter &p, const QDate &qd, const QRect &box) |
int | drawFooter (QPainter &p, const QRect &box) |
int | drawHeader (QPainter &p, const QString &title, const QDate &month1, const QDate &month2, const QRect &box, bool expand=false, QColor backColor=QColor()) |
void | drawJournal (const KCalCore::Journal::Ptr &journal, QPainter &p, int x, int &y, int width, int pageHeight) |
void | drawMonth (QPainter &p, const QDate &dt, const QRect &box, int maxdays=-1, int subDailyFlags=TimeBoxes, int holidaysFlags=Text, bool excludeConfidential=false, bool excludePrivate=false) |
void | drawMonthTable (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, bool weeknumbers, bool recurDaily, bool recurWeekly, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate, const QRect &box) |
void | drawNoteLines (QPainter &p, const QRect &box, int startY) |
void | drawSmallMonth (QPainter &p, const QDate &qd, const QRect &box) |
void | drawSplitHeaderRight (QPainter &p, const QDate &fd, const QDate &td, const QDate &cd, int width, int height) |
void | drawSubHeaderBox (QPainter &p, const QString &str, const QRect &box) |
void | drawTextLines (QPainter &p, const QString &entry, int x, int &y, int width, int pageHeight, bool richTextEntry) |
void | drawTimeLine (QPainter &p, const QTime &fromTime, const QTime &toTime, const QRect &box) |
void | drawTimeTable (QPainter &p, const QDate &fromDate, const QDate &toDate, bool expandable, const QTime &fromTime, const QTime &toTime, const QRect &box, bool includeDescription, bool excludeTime, bool excludeConfidential, bool excludePrivate) |
void | drawTodo (int &count, const KCalCore::Todo::Ptr &todo, QPainter &p, KCalCore::TodoSortField sortField, KCalCore::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 KCalCore::Todo::List &todoList, TodoParentStart *r, bool excludeConfidential, bool excludePrivate) |
void | drawVerticalBox (QPainter &p, int linewidth, const QRect &box, const QString &str, int flags=-1) |
void | drawWeek (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, const QRect &box, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate) |
int | footerHeight () const |
int | headerHeight () const |
int | margin () const |
QPrinter::Orientation | orientation () const |
int | padding () const |
void | printEventString (QPainter &p, const QRect &box, const QString &str, int flags=-1) |
bool | printFooter () const |
void | setBorderWidth (const int border) |
void | setCalendarSystem (const KCalendarSystem *calsys) |
void | setFooterHeight (const int height) |
void | setHeaderHeight (const int height) |
void | setMargin (const int margin) |
void | setPadding (const int margin) |
void | setPrintFooter (bool printFooter) |
void | setSubHeaderHeight (const int height) |
void | setUseColors (bool useColors) |
void | showEventBox (QPainter &p, int linewidth, const QRect &box, const KCalCore::Incidence::Ptr &incidence, const QString &str, int flags=-1) |
int | subHeaderHeight () const |
bool | useColors () const |
Public Member Functions inherited from CalendarSupport::PrintPlugin | |
PrintPlugin () | |
virtual | ~PrintPlugin () |
QWidget * | configWidget (QWidget *w) |
virtual QPrinter::Orientation | defaultOrientation () |
virtual KCalCore::Incidence::List | selectedIncidences () const |
virtual void | setCalendar (const Akonadi::ETMCalendar::Ptr &cal) |
virtual void | setConfig (KConfig *cfg) |
virtual void | setSelectedIncidences (KCalCore::Incidence::List inc) |
Public Member Functions inherited from CalendarSupport::Plugin | |
Plugin () | |
virtual | ~Plugin () |
virtual void | configure (QWidget *) |
Protected Attributes | |
bool | mUseDateRange |
Protected Attributes inherited from CalendarSupport::CalPrintPluginBase | |
int | mBorder |
const KCalendarSystem * | mCalSys |
int | mFooterHeight |
int | mHeaderHeight |
int | mMargin |
int | mPadding |
bool | mPrintFooter |
bool | mShowNoteLines |
int | mSubHeaderHeight |
bool | mUseColors |
Protected Attributes inherited from CalendarSupport::PrintPlugin | |
Akonadi::ETMCalendar::Ptr | mCalendar |
KConfig * | mConfig |
QPointer< QWidget > | mConfigWidget |
QDate | mFromDate |
QPrinter * | mPrinter |
KCalCore::Incidence::List | mSelectedIncidences |
QDate | mToDate |
Additional Inherited Members | |
Public Types inherited from CalendarSupport::CalPrintPluginBase | |
enum | DisplayFlags { Text =0x0001, TimeBoxes =0x0002 } |
Public Types inherited from CalendarSupport::PrintPlugin | |
typedef QList< PrintPlugin * > | List |
Static Public Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
static void | drawBox (QPainter &p, int linewidth, const QRect &rect) |
static void | drawShadedBox (QPainter &p, int linewidth, const QBrush &brush, const QRect &rect) |
static int | weekdayColumn (int weekday) |
Static Public Member Functions inherited from CalendarSupport::PrintPlugin | |
static int | interfaceVersion () |
Static Public Member Functions inherited from CalendarSupport::Plugin | |
static int | interfaceVersion () |
static QString | serviceType () |
Protected Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
QColor | categoryBgColor (const KCalCore::Incidence::Ptr &incidence) const |
QTime | dayStart () const |
void | drawIncidence (QPainter &p, const QRect &dayBox, const QString &time, const QString &summary, const QString &description, int &textY, bool singleLineLimit, bool includeDescription, bool richDescription) |
void | drawTodoLines (QPainter &p, const QString &entry, int x, int &y, int width, int pageHeight, bool richTextEntry, QList< TodoParentStart * > &startPoints, bool connectSubTodos) |
QString | toPlainText (const QString &htmlText) |
Detailed Description
Definition at line 32 of file journalprint.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 35 of file journalprint.h.
|
inlinevirtual |
Definition at line 36 of file journalprint.h.
Member Function Documentation
Returns widget for configuring the print format.
Reimplemented from CalendarSupport::CalPrintPluginBase.
Definition at line 32 of file journalprint.cpp.
|
inlinevirtual |
Returns short description of print format.
Implements CalendarSupport::PrintPlugin.
Definition at line 39 of file journalprint.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 43 of file journalprint.h.
|
inlinevirtual |
Returns KConfig group name where store settings.
Implements CalendarSupport::PrintPlugin.
Definition at line 38 of file journalprint.h.
|
inlinevirtual |
Returns long description of print format.
Implements CalendarSupport::PrintPlugin.
Definition at line 40 of file journalprint.h.
|
virtual |
Load print format configuration from config file.
Implements CalendarSupport::CalPrintPluginBase.
Definition at line 72 of file journalprint.cpp.
|
virtual |
Actually do the printing.
- Parameters
-
p QPainter the print result is painted to width Width of printable area height Height of printable area
Implements CalendarSupport::CalPrintPluginBase.
Definition at line 103 of file journalprint.cpp.
|
virtual |
Read settings from configuration widget and apply them to current object.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 37 of file journalprint.cpp.
|
virtual |
Write print format configuration to config file.
Implements CalendarSupport::CalPrintPluginBase.
Definition at line 81 of file journalprint.cpp.
Set date range which should be printed.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 92 of file journalprint.cpp.
|
virtual |
Set configuration widget to reflect settings of current object.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 48 of file journalprint.cpp.
|
inlinevirtual |
Returns the sort ID of the plugin.
This value will be used to identify the config widget in the widget stack, and to sort the plugin name in the print style selection list. If another plugin uses the same ID or a value of -1 is returned, a unique (negative) ID will be automatically generated and thus the position of the plugin in the selection list is undefined.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 42 of file journalprint.h.
Member Data Documentation
|
protected |
Definition at line 54 of file journalprint.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.