summaryrefslogtreecommitdiffstats
path: root/knotes/knoteprinter.h
blob: 148a2ec45bdeab8f33de835ff53255f8d331b023 (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 tqsetColorGroup( const TQColorGroup& tqcolorGroup );
    TQColorGroup tqcolorGroup() 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_tqcolorGroup;
    TQFont m_font;
    TQStyleSheet* m_styleSheet;
    TQMimeSourceFactory* m_mimeSourceFactory;
    TQString m_context;
};

#endif // KNOTEPRINTER