• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

calendarsupport

  • CalendarSupport
  • CalPrintYear
Public Member Functions | Protected Attributes | List of all members
CalendarSupport::CalPrintYear Class Reference

#include <yearprint.h>

Inheritance diagram for CalendarSupport::CalPrintYear:
Inheritance graph
[legend]

Public Member Functions

 CalPrintYear ()
 
virtual ~CalPrintYear ()
 
virtual QWidget * createConfigWidget (QWidget *)
 
virtual QPrinter::Orientation defaultOrientation ()
 
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 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

int mHolidaysEvents
 
int mPages
 
int mSubDaysEvents
 
int mYear
 
- 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 yearprint.h.

Constructor & Destructor Documentation

CalendarSupport::CalPrintYear::CalPrintYear ( )
inline

Definition at line 35 of file yearprint.h.

virtual CalendarSupport::CalPrintYear::~CalPrintYear ( )
inlinevirtual

Definition at line 36 of file yearprint.h.

Member Function Documentation

QWidget * CalPrintYear::createConfigWidget ( QWidget *  w)
virtual

Returns widget for configuring the print format.

Reimplemented from CalendarSupport::CalPrintPluginBase.

Definition at line 34 of file yearprint.cpp.

QPrinter::Orientation CalPrintYear::defaultOrientation ( )
virtual

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 CalendarSupport::PrintPlugin.

Definition at line 103 of file yearprint.cpp.

virtual QString CalendarSupport::CalPrintYear::description ( )
inlinevirtual

Returns short description of print format.

Implements CalendarSupport::PrintPlugin.

Definition at line 38 of file yearprint.h.

virtual bool CalendarSupport::CalPrintYear::enabled ( )
inlinevirtual

Returns true if the plugin should be enabled; false otherwise.

Reimplemented from CalendarSupport::PrintPlugin.

Definition at line 41 of file yearprint.h.

virtual QString CalendarSupport::CalPrintYear::groupName ( )
inlinevirtual

Returns KConfig group name where store settings.

Implements CalendarSupport::PrintPlugin.

Definition at line 37 of file yearprint.h.

virtual QString CalendarSupport::CalPrintYear::info ( ) const
inlinevirtual

Returns long description of print format.

Implements CalendarSupport::PrintPlugin.

Definition at line 39 of file yearprint.h.

void CalPrintYear::loadConfig ( )
virtual

Load print format configuration from config file.

Implements CalendarSupport::CalPrintPluginBase.

Definition at line 76 of file yearprint.cpp.

void CalPrintYear::print ( QPainter &  p,
int  width,
int  height 
)
virtual

Actually do the printing.

Parameters
pQPainter the print result is painted to
widthWidth of printable area
heightHeight of printable area

Implements CalendarSupport::CalPrintPluginBase.

Definition at line 117 of file yearprint.cpp.

void CalPrintYear::readSettingsWidget ( )
virtual

Read settings from configuration widget and apply them to current object.

Reimplemented from CalendarSupport::PrintPlugin.

Definition at line 39 of file yearprint.cpp.

void CalPrintYear::saveConfig ( )
virtual

Write print format configuration to config file.

Implements CalendarSupport::CalPrintPluginBase.

Definition at line 88 of file yearprint.cpp.

void CalPrintYear::setDateRange ( const QDate &  from,
const QDate &  to 
)
virtual

Set date range which should be printed.

Reimplemented from CalendarSupport::PrintPlugin.

Definition at line 108 of file yearprint.cpp.

void CalPrintYear::setSettingsWidget ( )
virtual

Set configuration widget to reflect settings of current object.

Reimplemented from CalendarSupport::PrintPlugin.

Definition at line 50 of file yearprint.cpp.

virtual int CalendarSupport::CalPrintYear::sortID ( )
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 40 of file yearprint.h.

Member Data Documentation

int CalendarSupport::CalPrintYear::mHolidaysEvents
protected

Definition at line 56 of file yearprint.h.

int CalendarSupport::CalPrintYear::mPages
protected

Definition at line 55 of file yearprint.h.

int CalendarSupport::CalPrintYear::mSubDaysEvents
protected

Definition at line 56 of file yearprint.h.

int CalendarSupport::CalPrintYear::mYear
protected

Definition at line 54 of file yearprint.h.


The documentation for this class was generated from the following files:
  • yearprint.h
  • yearprint.cpp
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

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal