korganizer
#include <calprintdefaultplugins.h>
Public Member Functions | |
CalPrintWeek () | |
virtual | ~CalPrintWeek () |
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 | setDateRange (const QDate &from, const QDate &to) |
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 | setSelectedIncidences (KCalCore::Incidence::List inc) |
Protected Types | |
enum | eWeekPrintType { Filofax =0, Timetable, SplitWeek } |
Protected Attributes | |
QTime | mEndTime |
bool | mExcludeTime |
bool | mIncludeDescription |
bool | mIncludeTodos |
bool | mSingleLineLimit |
QTime | mStartTime |
enum CalPrintWeek::eWeekPrintType | mWeekPrintType |
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 () |
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) |
Detailed Description
Definition at line 147 of file calprintdefaultplugins.h.
Member Enumeration Documentation
|
protected |
Enumerator | |
---|---|
Filofax | |
Timetable | |
SplitWeek |
Definition at line 189 of file calprintdefaultplugins.h.
Constructor & Destructor Documentation
CalPrintWeek::CalPrintWeek | ( | ) |
Definition at line 949 of file calprintdefaultplugins.cpp.
|
virtual |
Definition at line 953 of file calprintdefaultplugins.cpp.
Member Function Documentation
Returns widget for configuring the print format.
Reimplemented from CalPrintPluginBase.
Definition at line 957 of file calprintdefaultplugins.cpp.
|
virtual |
Returns the default orientation for the eWeekPrintType.
Reimplemented from KOrg::PrintPlugin.
Definition at line 1059 of file calprintdefaultplugins.cpp.
|
inlinevirtual |
Returns short description of print format.
Implements KOrg::PrintPlugin.
Definition at line 157 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented from KOrg::PrintPlugin.
Definition at line 169 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns KConfig group name where store settings.
Implements KOrg::PrintPlugin.
Definition at line 153 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns long description of print format.
Implements KOrg::PrintPlugin.
Definition at line 161 of file calprintdefaultplugins.h.
|
virtual |
Load print format configuration from config file.
Implements CalPrintPluginBase.
Definition at line 1020 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 1081 of file calprintdefaultplugins.cpp.
|
virtual |
Read settings from configuration widget and apply them to current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 962 of file calprintdefaultplugins.cpp.
|
virtual |
Write print format configuration to config file.
Implements CalPrintPluginBase.
Definition at line 1040 of file calprintdefaultplugins.cpp.
|
virtual |
Set date range which should be printed.
Reimplemented from KOrg::PrintPlugin.
Definition at line 1070 of file calprintdefaultplugins.cpp.
|
virtual |
Set configuration widget to reflect settings of current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 994 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 165 of file calprintdefaultplugins.h.
Member Data Documentation
|
protected |
Definition at line 194 of file calprintdefaultplugins.h.
|
protected |
Definition at line 198 of file calprintdefaultplugins.h.
|
protected |
Definition at line 197 of file calprintdefaultplugins.h.
|
protected |
Definition at line 196 of file calprintdefaultplugins.h.
|
protected |
Definition at line 195 of file calprintdefaultplugins.h.
|
protected |
Definition at line 194 of file calprintdefaultplugins.h.
|
protected |
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.