korganizer Library API Documentation

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 Member Functions

 HtmlExport (Calendar *calendar)
 Create new HTML exporter for calendar.

bool save (const QString &fileName)
 writes out the calendar in HTML format.

bool save (QTextStream *)
 writes out calendar to file.

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 ()

Protected Member Functions

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 39 of file htmlexport.h.


Constructor & Destructor Documentation

HtmlExport::HtmlExport Calendar *  calendar  )  [inline]
 

Create new HTML exporter for calendar.

Definition at line 42 of file htmlexport.h.


Member Function Documentation

bool HtmlExport::save const QString fileName  ) 
 

writes out the calendar in HTML format.

Definition at line 45 of file htmlexport.cpp.

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

bool HtmlExport::save QTextStream  ) 
 

writes out calendar to file.

The QFile has to already be opened for writing.

Definition at line 57 of file htmlexport.cpp.

References QTextStream::setEncoding().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:11 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001