knotes

knoteprinter.h
1#ifndef KNOTEPRINTER_H
2#define KNOTEPRINTER_H
3
4#include <tqfont.h>
5#include <tqpalette.h>
6#include <tqstring.h>
7
8class TQMimeSourceFactory;
9class TQStyleSheet;
10template <class T> class TQValueList;
11class KPrinter;
12
13namespace KCal {
14 class Journal;
15}
16
17class KNotePrinter {
18public:
19
20 KNotePrinter();
21
22 void printNote( const TQString& name,
23 const TQString& content ) const;
24
25 void printNotes( const TQValueList<KCal::Journal*>& journals ) const;
26
27 void setFont( const TQFont& font );
28 TQFont font() const;
29
30 void setColorGroup( const TQColorGroup& colorGroup );
31 TQColorGroup colorGroup() const;
32
33 void setStyleSheet( TQStyleSheet* styleSheet );
34 TQStyleSheet* styleSheet() const;
35
36 void setContext( const TQString& context );
37 TQString context() const;
38
39 void setMimeSourceFactory( TQMimeSourceFactory* factory );
40 TQMimeSourceFactory* mimeSourceFactory() const;
41
42private:
43 void doPrint( KPrinter& printer, TQPainter& painter,
44 const TQString& content ) const;
45
46 TQColorGroup m_colorGroup;
47 TQFont m_font;
48 TQStyleSheet* m_styleSheet;
49 TQMimeSourceFactory* m_mimeSourceFactory;
50 TQString m_context;
51};
52
53#endif // KNOTEPRINTER