kaddressbook
mikesstyle.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef MIKESSTYLE_H
00026 #define MIKESSTYLE_H
00027
00028 #include <qfont.h>
00029
00030 #include "printstyle.h"
00031
00032 namespace KABPrinting {
00033
00034 class PrintProgress;
00035
00036 class MikesStyle : public PrintStyle
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 MikesStyle( PrintingWizard *parent, const char *name );
00042 ~MikesStyle();
00043
00044 void print( const KABC::Addressee::List&, PrintProgress* );
00045
00046 protected:
00047 void doPaint( QPainter &painter, const KABC::Addressee &addr, int maxHeight,
00048 const QFont &font, const QFont &bFont );
00049 int calcHeight( const KABC::Addressee &addr, const QFont &font, const QFont &bFont);
00050 void paintTagLine( QPainter &p, const QFont &font);
00051 QString trimString( const QString &text, int width, QFontMetrics &fm);
00052 };
00053
00054 class MikesStyleFactory : public PrintStyleFactory
00055 {
00056 public:
00057 MikesStyleFactory( PrintingWizard *parent, const char *name = 0 );
00058
00059 PrintStyle *create() const;
00060 QString description() const;
00061 };
00062
00063 }
00064
00065 #endif
|