TDE personal information management applications
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

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