libkcal Library API Documentation

KCal::HtmlExport Class Reference

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

#include <htmlexport.h>

List of all members.

Public Methods

 HtmlExport (Calendar *calendar)
virtual ~HtmlExport ()
bool save (const QString &fileName)
bool save (QTextStream *)
void setTitle (QString title)
QString title ()
void setTitleTodo (QString title)
QString titleTodo ()
void setFullName (QString name)
QString fullName ()
void setEmail (QString email)
QString email ()
void setCredit (QString name, QString url)
QString creditName ()
QString creditURL ()
void setMonthViewEnabled (bool enable=true)
bool monthViewEnabled ()
void setEventsEnabled (bool enable=true)
bool eventsEnabled ()
void setTodosEnabled (bool enable=true)
bool todosEnabled ()
void setCategoriesTodoEnabled (bool enable=true)
bool categoriesTodoEnabled ()
void setAttendeesTodoEnabled (bool enable=true)
bool attendeesTodoEnabled ()
void setExcludePrivateTodoEnabled (bool enable=true)
bool excludePrivateTodoEnabled ()
void setExcludeConfidentialTodoEnabled (bool enable=true)
bool excludeConfidentialTodoEnabled ()
void setCategoriesEventEnabled (bool enable=true)
bool categoriesEventEnabled ()
void setAttendeesEventEnabled (bool enable=true)
bool attendeesEventEnabled ()
void setExcludePrivateEventEnabled (bool enable=true)
bool excludePrivateEventEnabled ()
void setExcludeConfidentialEventEnabled (bool enable=true)
bool excludeConfidentialEventEnabled ()
void setDueDateEnabled (bool enable=true)
bool dueDateEnabled ()
void setDateRange (const QDate &from, const QDate &to)
QDate fromDate ()
QDate toDate ()
void setStyleSheet (const QString &)
QString styleSheet ()
void addHoliday (QDate date, QString name)

Protected Methods

void createHtmlMonthView (QTextStream *ts)
void createHtmlEventList (QTextStream *ts)
void createHtmlTodoList (QTextStream *ts)
void createHtmlTodo (QTextStream *ts, Todo *todo)
void createHtmlEvent (QTextStream *ts, Event *event, QDate date, bool withDescription=true)
bool checkSecrecy (Incidence *)
void formatHtmlCategories (QTextStream *ts, Incidence *event)
void formatHtmlAttendees (QTextStream *ts, Incidence *event)
QString breakString (const QString &text)


Detailed Description

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

Definition at line 41 of file htmlexport.h.


Constructor & Destructor Documentation

HtmlExport::HtmlExport Calendar   calendar
 

Create new HTML exporter for calendar.

Definition at line 47 of file htmlexport.cpp.


Member Function Documentation

bool HtmlExport::save const QString   fileName
 

Writes out the calendar in HTML format.

Definition at line 64 of file htmlexport.cpp.

References QFile::close(), and QFile::open().

bool HtmlExport::save QTextStream  
 

Writes out calendar to text stream.

Definition at line 76 of file htmlexport.cpp.

References QString::arg(), QString::isEmpty(), and QTextStream::setEncoding().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkcal Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:24 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003