knotes
knoteprinter.h
Go to the documentation of this file.00001 #ifndef KNOTEPRINTER_H
00002 #define KNOTEPRINTER_H
00003
00004 #include <QFont>
00005 #include <QString>
00006
00007 template <class T> class QList;
00008
00009 namespace KCal {
00010 class Journal;
00011 }
00012
00013
00014 class KNotePrinter
00015 {
00016 public:
00017 KNotePrinter();
00018
00019 void printNote( const QString &name,
00020 const QString &htmlText ) const;
00021
00022 void printNotes( const QList<KCal::Journal *> &journals ) const;
00023
00024 void setDefaultFont( const QFont &font );
00025 QFont defaultFont() const;
00026
00027 private:
00028 void doPrint( const QString &content, const QString &dialogCaption ) const;
00029 inline QString ensureHtmlText( const QString &maybeRichText ) const;
00030
00031 QFont m_defaultFont;
00032 };
00033
00034 #endif // KNOTEPRINTER