• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • HtmlExport
Public Member Functions | Protected Member Functions | List of all members
KCal::HtmlExport Class Reference

#include <htmlexport.h>

Public Member Functions

 HtmlExport (Calendar *calendar, HTMLExportSettings *settings)
 
void addHoliday (const QDate &date, const QString &name)
 
bool save (const QString &fileName=QString())
 
bool save (QTextStream *ts)
 

Protected Member Functions

QString breakString (const QString &text)
 
bool checkSecrecy (Incidence *incidence)
 
void createEvent (QTextStream *ts, Event *event, QDate date, bool withDescription=true)
 
void createEventList (QTextStream *ts)
 
void createFooter (QTextStream *ts)
 
void createFreeBusyView (QTextStream *ts)
 
void createJournalView (QTextStream *ts)
 
void createMonthView (QTextStream *ts)
 
void createTodo (QTextStream *ts, Todo *todo)
 
void createTodoList (QTextStream *ts)
 
void createWeekView (QTextStream *ts)
 
void formatAttendees (QTextStream *ts, Incidence *incidence)
 
void formatCategories (QTextStream *ts, Incidence *incidence)
 
void formatLocation (QTextStream *ts, Incidence *incidence)
 
QDate fromDate () const
 
QString styleSheet () const
 
QDate toDate () const
 

Detailed Description

This class provides the functions to export a calendar as a HTML page.

Definition at line 44 of file htmlexport.h.

Constructor & Destructor Documentation

◆ HtmlExport()

HtmlExport::HtmlExport ( Calendar *  calendar,
HTMLExportSettings *  settings 
)

Create new HTML exporter for calendar.

Definition at line 64 of file htmlexport.cpp.

◆ ~HtmlExport()

HtmlExport::~HtmlExport ( )
virtual

Definition at line 69 of file htmlexport.cpp.

Member Function Documentation

◆ addHoliday()

void HtmlExport::addHoliday ( const QDate &  date,
const QString &  name 
)

Definition at line 767 of file htmlexport.cpp.

◆ breakString()

QString HtmlExport::breakString ( const QString &  text)
protected

Definition at line 654 of file htmlexport.cpp.

◆ checkSecrecy()

bool HtmlExport::checkSecrecy ( Incidence *  incidence)
protected

Definition at line 582 of file htmlexport.cpp.

◆ createEvent()

void HtmlExport::createEvent ( QTextStream *  ts,
Event *  event,
QDate  date,
bool  withDescription = true 
)
protected

Definition at line 309 of file htmlexport.cpp.

◆ createEventList()

void HtmlExport::createEventList ( QTextStream *  ts)
protected

Definition at line 257 of file htmlexport.cpp.

◆ createFooter()

void HtmlExport::createFooter ( QTextStream *  ts)
protected

Definition at line 674 of file htmlexport.cpp.

◆ createFreeBusyView()

void HtmlExport::createFreeBusyView ( QTextStream *  ts)
protected

Definition at line 576 of file htmlexport.cpp.

◆ createJournalView()

void HtmlExport::createJournalView ( QTextStream *  ts)
protected

Definition at line 569 of file htmlexport.cpp.

◆ createMonthView()

void HtmlExport::createMonthView ( QTextStream *  ts)
protected

Definition at line 168 of file htmlexport.cpp.

◆ createTodo()

void HtmlExport::createTodo ( QTextStream *  ts,
Todo *  todo 
)
protected

Definition at line 475 of file htmlexport.cpp.

◆ createTodoList()

void HtmlExport::createTodoList ( QTextStream *  ts)
protected

Definition at line 362 of file htmlexport.cpp.

◆ createWeekView()

void HtmlExport::createWeekView ( QTextStream *  ts)
protected

Definition at line 563 of file htmlexport.cpp.

◆ formatAttendees()

void HtmlExport::formatAttendees ( QTextStream *  ts,
Incidence *  incidence 
)
protected

Definition at line 616 of file htmlexport.cpp.

◆ formatCategories()

void HtmlExport::formatCategories ( QTextStream *  ts,
Incidence *  incidence 
)
protected

Definition at line 607 of file htmlexport.cpp.

◆ formatLocation()

void HtmlExport::formatLocation ( QTextStream *  ts,
Incidence *  incidence 
)
protected

Definition at line 598 of file htmlexport.cpp.

◆ fromDate()

QDate HtmlExport::fromDate ( ) const
protected

Definition at line 777 of file htmlexport.cpp.

◆ save() [1/2]

bool HtmlExport::save ( const QString &  fileName = QString())

Writes out the calendar in HTML format.

Definition at line 74 of file htmlexport.cpp.

◆ save() [2/2]

bool HtmlExport::save ( QTextStream *  ts)

Writes out calendar to text stream.

Definition at line 93 of file htmlexport.cpp.

◆ styleSheet()

QString HtmlExport::styleSheet ( ) const
protected

Definition at line 732 of file htmlexport.cpp.

◆ toDate()

QDate HtmlExport::toDate ( ) const
protected

Definition at line 782 of file htmlexport.cpp.


The documentation for this class was generated from the following files:
  • htmlexport.h
  • htmlexport.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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