korganizer
#include <calprintdefaultplugins.h>
Public Member Functions | |
CalPrintIncidence () | |
virtual | ~CalPrintIncidence () |
virtual QWidget * | createConfigWidget (QWidget *) |
virtual QPrinter::Orientation | defaultOrientation () |
virtual QString | description () |
virtual bool | enabled () |
virtual QString | groupName () |
virtual QString | info () const |
virtual void | loadConfig () |
void | print (QPainter &p, int width, int height) |
virtual void | readSettingsWidget () |
virtual void | saveConfig () |
virtual void | setSettingsWidget () |
virtual int | sortID () |
Public Member Functions inherited from CalPrintPluginBase | |
CalPrintPluginBase () | |
virtual | ~CalPrintPluginBase () |
int | borderWidth () const |
const KCalendarSystem * | calendarSystem () const |
QColor | categoryBgColor (const Incidence::Ptr &incidence) |
QTime | dayStart () |
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 mExcludeConfidential, bool mExcludePrivate, 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 mExcludeConfidential, bool mExcludePrivate) |
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 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) |
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 |
Event::Ptr | holiday (const QDate &dt) |
QString | holidayString (const QDate &dt) |
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 | setCategoryColors (QPainter &p, const Incidence::Ptr &incidence) |
void | setFooterHeight (const int height) |
void | setHeaderHeight (const int height) |
void | setKOrgCoreHelper (KOrg::CoreHelper *helper) |
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 Incidence::Ptr &incidence, const QString &str, int flags=-1) |
int | subHeaderHeight () const |
bool | useColors () const |
Public Member Functions inherited from KOrg::PrintPlugin | |
PrintPlugin () | |
virtual | ~PrintPlugin () |
QWidget * | configWidget (QWidget *w) |
virtual KCalCore::Incidence::List | selectedIncidences () const |
virtual void | setCalendar (const Akonadi::ETMCalendar::Ptr &cal) |
virtual void | setConfig (KConfig *cfg) |
virtual void | setDateRange (const QDate &from, const QDate &to) |
virtual void | setSelectedIncidences (KCalCore::Incidence::List inc) |
Protected Member Functions | |
int | printCaptionAndText (QPainter &p, const QRect &box, const QString &caption, const QString &text, QFont captionFont, QFont textFont) |
Protected Member Functions inherited from CalPrintPluginBase | |
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) |
Protected Attributes | |
bool | mShowAttachments |
bool | mShowAttendees |
bool | mShowNoteLines |
bool | mShowOptions |
bool | mShowSubitemsNotes |
Protected Attributes inherited from CalPrintPluginBase | |
int | mBorder |
const KCalendarSystem * | mCalSys |
bool | mExcludeConfidential |
bool | mExcludePrivate |
int | mFooterHeight |
int | mHeaderHeight |
int | mMargin |
int | mPadding |
bool | mPrintFooter |
bool | mShowNoteLines |
int | mSubHeaderHeight |
bool | mUseColors |
Protected Attributes inherited from KOrg::PrintPlugin | |
Akonadi::ETMCalendar::Ptr | mCalendar |
KConfig * | mConfig |
QPointer< QWidget > | mConfigWidget |
KOrg::CoreHelper * | mCoreHelper |
QDate | mFromDate |
QPrinter * | mPrinter |
KCalCore::Incidence::List | mSelectedIncidences |
QDate | mToDate |
Additional Inherited Members | |
Public Types inherited from CalPrintPluginBase | |
enum | DisplayFlags { Text =0x0001, TimeBoxes =0x0002 } |
Public Types inherited from KOrg::PrintPlugin | |
typedef QList< PrintPlugin * > | List |
Static Public Member Functions inherited from 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 KOrg::PrintPlugin | |
static int | interfaceVersion () |
static QString | serviceType () |
Detailed Description
Definition at line 43 of file calprintdefaultplugins.h.
Constructor & Destructor Documentation
CalPrintIncidence::CalPrintIncidence | ( | ) |
Definition at line 63 of file calprintdefaultplugins.cpp.
|
virtual |
Definition at line 67 of file calprintdefaultplugins.cpp.
Member Function Documentation
Returns widget for configuring the print format.
Reimplemented from CalPrintPluginBase.
Definition at line 71 of file calprintdefaultplugins.cpp.
|
inlinevirtual |
Orientation of printout.
Default is Portrait. If your plugin wants to use some other orientation as default (e.g. depending on some config settings), implement this function in your subclass and return the desired orientation.
Reimplemented from KOrg::PrintPlugin.
Definition at line 75 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns short description of print format.
Implements KOrg::PrintPlugin.
Definition at line 52 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented from KOrg::PrintPlugin.
Definition at line 66 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns KConfig group name where store settings.
Implements KOrg::PrintPlugin.
Definition at line 48 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns long description of print format.
Implements KOrg::PrintPlugin.
Definition at line 56 of file calprintdefaultplugins.h.
|
virtual |
Load print format configuration from config file.
Implements CalPrintPluginBase.
Definition at line 106 of file calprintdefaultplugins.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 CalPrintPluginBase.
Definition at line 231 of file calprintdefaultplugins.cpp.
|
protected |
Definition at line 209 of file calprintdefaultplugins.cpp.
|
virtual |
Read settings from configuration widget and apply them to current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 76 of file calprintdefaultplugins.cpp.
|
virtual |
Write print format configuration to config file.
Implements CalPrintPluginBase.
Definition at line 119 of file calprintdefaultplugins.cpp.
|
virtual |
Set configuration widget to reflect settings of current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 91 of file calprintdefaultplugins.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 KOrg::PrintPlugin.
Definition at line 60 of file calprintdefaultplugins.h.
Member Data Documentation
|
protected |
Definition at line 94 of file calprintdefaultplugins.h.
|
protected |
Definition at line 93 of file calprintdefaultplugins.h.
|
protected |
Definition at line 95 of file calprintdefaultplugins.h.
|
protected |
Definition at line 91 of file calprintdefaultplugins.h.
|
protected |
Definition at line 92 of file calprintdefaultplugins.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.