You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
#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
|