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

KCalUtils Library

htmlexport.h
00001 /*
00002   This file is part of the kcalutils library.
00003 
00004   Copyright (c) 2000-2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00022 #ifndef KCALUTILS_HTMLEXPORT_H
00023 #define KCALUTILS_HTMLEXPORT_H
00024 
00025 #include "kcalutils_export.h"
00026 
00027 #include <kcalcore/event.h>
00028 #include <kcalcore/incidence.h>
00029 #include <kcalcore/todo.h>
00030 
00031 #include <QtCore/QDateTime>
00032 #include <QtCore/QString>
00033 
00034 namespace KCalCore {
00035   class MemoryCalendar;
00036 }
00037 
00038 class QTextStream;
00039 
00040 namespace KCalUtils {
00041 
00042 class HTMLExportSettings;
00043 
00047 class KCALUTILS_EXPORT HtmlExport
00048 {
00049   public:
00053     HtmlExport( KCalCore::MemoryCalendar *calendar, HTMLExportSettings *settings );
00054     virtual ~HtmlExport();
00055 
00059     bool save( const QString &fileName = QString() );
00060 
00064     bool save( QTextStream *ts );
00065 
00066     void addHoliday( const QDate &date, const QString &name );
00067 
00068   protected:
00069     void createWeekView( QTextStream *ts );
00070     void createMonthView( QTextStream *ts );
00071     void createEventList( QTextStream *ts );
00072     void createTodoList( QTextStream *ts );
00073     void createJournalView( QTextStream *ts );
00074     void createFreeBusyView( QTextStream *ts );
00075 
00076     void createTodo( QTextStream *ts, const KCalCore::Todo::Ptr &todo );
00077 
00078     void createEvent( QTextStream *ts, const KCalCore::Event::Ptr &event,
00079                       const QDate &date, bool withDescription = true );
00080 
00081     void createFooter( QTextStream *ts );
00082 
00083     bool checkSecrecy( const KCalCore::Incidence::Ptr &incidence );
00084 
00085     void formatLocation( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
00086 
00087     void formatCategories( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
00088 
00089     void formatAttendees( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
00090 
00091     QString breakString( const QString &text );
00092 
00093     QDate fromDate() const;
00094     QDate toDate() const;
00095     QString styleSheet() const;
00096 
00097   private:
00098     //@cond PRIVATE
00099     Q_DISABLE_COPY( HtmlExport )
00100     class Private;
00101     Private *const d;
00102     //@endcond
00103 };
00104 
00105 }
00106 
00107 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:18:01 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalUtils Library

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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