summaryrefslogtreecommitdiffstats
path: root/knotes/knoteprinter.h
blob: 632dd85a40b02fd6183ae544e9384040359feece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef KNOTEPRINTER_H
#define KNOTEPRINTER_H

#include <tqfont.h>
#include <tqpalette.h>
#include <tqstring.h>

class TQMimeSourceFactory;
class TQStyleSheet;
template <class T> class TQValueList;
class KPrinter;

namespace KCal {
    class Journal;
}

class KNotePrinter {
public:

    KNotePrinter();

    void printNote( const TQString& name,
                    const TQString& content ) const;

    void printNotes( const TQValueList<KCal::Journal*>& journals ) const;

    void setFont( const TQFont& font );
    TQFont font() const;

    void setColorGroup( const TQColorGroup& colorGroup );
    TQColorGroup colorGroup() const;

    void setStyleSheet( TQStyleSheet* styleSheet );
    TQStyleSheet* styleSheet() const;

    void setContext( const TQString& context );
    TQString context() const;

    void setMimeSourceFactory( TQMimeSourceFactory* factory );
    TQMimeSourceFactory* mimeSourceFactory() const;

private:
    void doPrint( KPrinter& printer, TQPainter& painter,
                  const TQString& content ) const;

    TQColorGroup m_colorGroup;
    TQFont m_font;
    TQStyleSheet* m_styleSheet;
    TQMimeSourceFactory* m_mimeSourceFactory;
    TQString m_context;
};

#endif // KNOTEPRINTER