calendarsupport
calprintdefaultplugins.cpp
Go to the documentation of this file.
626 optionsString += i18n( "Status: %1", KCalUtils::Stringify::incidenceStatus( (*it)->status() ) );
630 optionsString += i18n( "Secrecy: %1", KCalUtils::Stringify::incidenceSecrecy( (*it)->secrecy() ) );
1641 if ( ( mExcludeConfidential && todo->secrecy() == KCalCore::Incidence::SecrecyConfidential ) ||
CalPrintMonth()
Definition: calprintdefaultplugins.cpp:1211
bool mExcludeTime
Definition: calprintdefaultplugins.h:198
const_iterator constBegin() const
void setBottom(int y)
bool mExcludeConfidential
Definition: calprintdefaultplugins.h:249
virtual ~CalPrintWeek()
Definition: calprintdefaultplugins.cpp:954
QString & append(QChar ch)
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: calprintdefaultplugins.cpp:678
void truncate(int position)
enum CalendarSupport::CalPrintDay::eDayPrintType mDayPrintType
bool mIncludeTodos
Definition: calprintdefaultplugins.h:140
bool mIncludeDescription
Definition: calprintdefaultplugins.h:197
bool mIncludeDescription
Definition: calprintdefaultplugins.h:248
int drawFooter(QPainter &p, const QRect &box)
Draw a page footer containing the printing date and possibly other things, like a page number...
Definition: calprintpluginbase.cpp:640
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: calprintdefaultplugins.cpp:1301
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: calprintdefaultplugins.cpp:68
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)
Draw the week (filofax) table of the week containing the date qd.
Definition: calprintpluginbase.cpp:1360
int right() const
int daysInMonth() const
void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: calprintdefaultplugins.cpp:1086
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: calprintdefaultplugins.cpp:1246
enum CalendarSupport::CalPrintTodos::eTodoPrintType mTodoPrintType
bool mExcludeConfidential
Definition: calprintdefaultplugins.h:320
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: calprintdefaultplugins.cpp:1388
const QFont & font() const
QString mPageTitle
Definition: calprintdefaultplugins.h:289
bool mIncludeDescription
Definition: calprintdefaultplugins.h:138
void setTime(const QTime &time)
bool mIncludePriority
Definition: calprintdefaultplugins.h:313
virtual ~CalPrintMonth()
Definition: calprintdefaultplugins.cpp:1215
virtual void loadConfig()
Load print format configuration from config file.
Definition: calprintdefaultplugins.cpp:1267
int height() const
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: printplugin.h:153
virtual void loadConfig()
Load print format configuration from config file.
Definition: calprintdefaultplugins.cpp:742
int headerHeight() const
Returns the height of the page header.
Definition: calprintpluginbase.cpp:327
virtual ~CalPrintDay()
Definition: calprintdefaultplugins.cpp:674
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: calprintdefaultplugins.h:101
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: calprintdefaultplugins.cpp:88
bool mSingleLineLimit
Definition: calprintdefaultplugins.h:139
int month() const
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: calprintdefaultplugins.cpp:715
CALENDARSUPPORT_EXPORT KCalCore::Incidence::Ptr incidence(const Akonadi::Item &item)
returns the incidence from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:78
int weekNumber(int *yearNumber) const
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:2085
const KCalendarSystem * calendarSystem()
Definition: calprintpluginbase.cpp:314
enum CalendarSupport::CalPrintTodos::eTodoSortDirection mTodoSortDirection
eTodoSortField
Definition: calprintdefaultplugins.h:297
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: calprintdefaultplugins.cpp:963
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)
Draw the timetable view of the given time range from fromDate to toDate.
Definition: calprintpluginbase.cpp:1440
bool mIncludeAllEvents
Definition: calprintdefaultplugins.h:141
int x() const
bool mShowNoteLines
Definition: calprintdefaultplugins.h:93
void drawNoteLines(QPainter &p, const QRect &box, int startY)
Draws dotted lines for notes in a box.
Definition: calprintpluginbase.cpp:2216
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: calprintdefaultplugins.h:259
int padding() const
Definition: calprintpluginbase.cpp:383
bool mConnectSubTodos
Definition: calprintdefaultplugins.h:316
void clear()
CALENDARSUPPORT_EXPORT KCalCore::Todo::Ptr todo(const Akonadi::Item &item)
returns the todo from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:124
int dayOfWeek() const
virtual void loadConfig()
Load print format configuration from config file.
Definition: calprintdefaultplugins.cpp:1473
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: calprintdefaultplugins.cpp:1219
virtual void saveConfig()
Write print format configuration to config file.
Definition: calprintdefaultplugins.cpp:1284
void setFont(const QFont &font)
bool mIncludeDescription
Definition: calprintdefaultplugins.h:312
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: calprintdefaultplugins.cpp:958
bool mSingleLineLimit
Definition: calprintdefaultplugins.h:195
QDate addMonths(int nmonths) const
int top() const
bool mIncludeTodos
Definition: calprintdefaultplugins.h:196
bool mWeekNumbers
Definition: calprintdefaultplugins.h:243
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)
Draw a component box with a heading (printed in bold).
Definition: calprintpluginbase.cpp:482
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: calprintdefaultplugins.cpp:1075
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: calprintdefaultplugins.cpp:995
void setTop(int y)
int left() const
bool mExcludePrivate
Definition: calprintdefaultplugins.h:321
KCalCore::Incidence::List mSelectedIncidences
Definition: printplugin.h:169
void setWidth(int width)
bool isEmpty() const
bool mExcludePrivate
Definition: calprintdefaultplugins.h:144
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: calprintdefaultplugins.h:46
int day() const
Akonadi::ETMCalendar::Ptr mCalendar
Definition: printplugin.h:168
QPrinter::Orientation orientation() const
Definition: calprintpluginbase.cpp:225
int printCaptionAndText(QPainter &p, const QRect &box, const QString &caption, const QString &text, QFont captionFont, QFont textFont)
Definition: calprintdefaultplugins.cpp:206
QTime addSecs(int s) const
void drawText(const QPointF &position, const QString &text)
QPoint center() const
void drawSplitHeaderRight(QPainter &p, const QDate &fd, const QDate &td, const QDate &cd, int width, int height)
Definition: calprintpluginbase.cpp:2162
enum CalendarSupport::CalPrintTodos::eTodoSortField mTodoSortField
bool mShowAttachments
Definition: calprintdefaultplugins.h:92
int year() const
virtual void saveConfig()
Write print format configuration to config file.
Definition: calprintdefaultplugins.cpp:1495
virtual ~CalPrintIncidence()
Definition: calprintdefaultplugins.cpp:64
static void drawBox(QPainter &p, int linewidth, const QRect &rect)
Draw a box with given width at the given coordinates.
Definition: calprintpluginbase.cpp:403
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: calprintdefaultplugins.cpp:1393
virtual void loadConfig()
Load print format configuration from config file.
Definition: calprintdefaultplugins.cpp:103
virtual ~CalPrintTodos()
Definition: calprintdefaultplugins.cpp:1384
bool mExcludeConfidential
Definition: calprintdefaultplugins.h:143
bool mShowAttendees
Definition: calprintdefaultplugins.h:91
Base class for Calendar printing classes.
Definition: calprintpluginbase.h:62
CalPrintIncidence()
Definition: calprintdefaultplugins.cpp:60
int hour() const
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: calprintdefaultplugins.h:208
bool mRecurWeekly
Definition: calprintdefaultplugins.h:245
virtual QPrinter::Orientation defaultOrientation()
Returns the default orientation for the eWeekPrintType.
Definition: calprintdefaultplugins.cpp:1064
bool mExcludePrivate
Definition: calprintdefaultplugins.h:250
void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: calprintdefaultplugins.cpp:1515
void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: calprintdefaultplugins.cpp:228
int width(const QString &text, int len) const
void drawVerticalBox(QPainter &p, int linewidth, const QRect &box, const QString &str, int flags=-1)
Draw an event box with vertical text.
Definition: calprintpluginbase.cpp:466
QPointer< QWidget > mConfigWidget
Definition: printplugin.h:164
bool newPage()
bool mIncludeDueDate
Definition: calprintdefaultplugins.h:314
int drawHeader(QPainter &p, const QString &title, const QDate &month1, const QDate &month2, const QRect &box, bool expand=false, QColor backColor=QColor())
Draw the gray header bar of the printout to the QPainter.
Definition: calprintpluginbase.cpp:565
bool mShowSubitemsNotes
Definition: calprintdefaultplugins.h:90
QString & replace(int position, int n, QChar after)
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)
Draw the month table of the month containing the date qd.
Definition: calprintpluginbase.cpp:1756
void setRight(int x)
virtual void saveConfig()
Write print format configuration to config file.
Definition: calprintdefaultplugins.cpp:116
eTodoPrintType
Definition: calprintdefaultplugins.h:291
bool mIncludePercentComplete
Definition: calprintdefaultplugins.h:315
QDateTime currentDateTime()
int width() const
void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: calprintdefaultplugins.cpp:1325
enum CalendarSupport::CalPrintWeek::eWeekPrintType mWeekPrintType
void printEventString(QPainter &p, const QRect &box, const QString &str, int flags=-1)
Print the given string (event summary) in the given rectangle.
Definition: calprintpluginbase.cpp:427
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)
Draw the agenda box for the day print style (the box showing all events of that day).
Definition: calprintpluginbase.cpp:870
QFontMetrics fontMetrics() const
void setHeight(int height)
QColor categoryBgColor(const KCalCore::Incidence::Ptr &incidence) const
Definition: calprintpluginbase.cpp:274
int footerHeight() const
Returns the height of the page footer.
Definition: calprintpluginbase.cpp:353
QDate currentDate()
virtual void saveConfig()
Write print format configuration to config file.
Definition: calprintdefaultplugins.cpp:1043
int bottom() const
void drawTimeLine(QPainter &p, const QTime &fromTime, const QTime &toTime, const QRect &box)
Draw a (vertical) time scale from time fromTime to toTime inside the given area of the painter...
Definition: calprintpluginbase.cpp:738
bool mSingleLineLimit
Definition: calprintdefaultplugins.h:247
bool mPrintFooter
Definition: calprintpluginbase.h:643
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: calprintdefaultplugins.cpp:73
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)
Draw the (filofax) table for a bunch of days, using drawDayBox.
Definition: calprintpluginbase.cpp:1399
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: calprintdefaultplugins.cpp:1429
bool mShowOptions
Definition: calprintdefaultplugins.h:89
bool mExcludeConfidential
Definition: calprintdefaultplugins.h:199
CALENDARSUPPORT_EXPORT QList< QDate > workDays(const QDate &start, const QDate &end)
Returns a list containing work days between start and .
Definition: utils.cpp:642
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: calprintdefaultplugins.cpp:1224
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: calprintdefaultplugins.cpp:787
QDate addDays(int ndays) const
void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: calprintdefaultplugins.cpp:798
CALENDARSUPPORT_EXPORT KCalCore::Journal::Ptr journal(const Akonadi::Item &item)
returns the journal from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:137
CALENDARSUPPORT_EXPORT KCalCore::Event::Ptr event(const Akonadi::Item &item)
returns the event from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:88
virtual void saveConfig()
Write print format configuration to config file.
Definition: calprintdefaultplugins.cpp:765
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: calprintdefaultplugins.cpp:683
bool mExcludePrivate
Definition: calprintdefaultplugins.h:200
bool mShowNoteLines
Definition: calprintpluginbase.h:644
void setLeft(int x)
bool mIncludeTodos
Definition: calprintdefaultplugins.h:246
virtual void loadConfig()
Load print format configuration from config file.
Definition: calprintdefaultplugins.cpp:1021
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: calprintdefaultplugins.h:153
int lineSpacing() const
QTime dayStart() const
Definition: calprintpluginbase.cpp:236
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)
Draws single to-do and its (intented) sub-to-dos, optionally connects them by a tree-like line...
Definition: calprintpluginbase.cpp:1883
CalPrintTodos()
Definition: calprintdefaultplugins.cpp:1378
bool mStrikeOutCompleted
Definition: calprintdefaultplugins.h:317
eTodoSortDirection
Definition: calprintdefaultplugins.h:306
This file is part of the KDE documentation.
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
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.