kaddressbook
detailledstyle.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef DETAILLEDSTYLE_H
00025 #define DETAILLEDSTYLE_H
00026
00027 #include <kabc/addressee.h>
00028
00029 #include "printstyle.h"
00030 #include "kabentrypainter.h"
00031
00032 class QPrinter;
00033
00034 namespace KABPrinting {
00035
00036 class AppearancePage;
00037
00038 class DetailledPrintStyle : public PrintStyle
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 DetailledPrintStyle( PrintingWizard *parent, const char *name = 0 );
00044 ~DetailledPrintStyle();
00045
00046 void print( const KABC::Addressee::List &contacts, PrintProgress* );
00047
00048 protected:
00049 bool printEntries( const KABC::Addressee::List &contacts, QPrinter *printer,
00050 QPainter *painter, const QRect &window );
00051 bool printEntry( const KABC::Addressee &contact, const QRect &window,
00052 QPainter *painter, int top, bool fake, QRect *brect );
00053 private:
00054 AppearancePage *mPageAppearance;
00055 KABEntryPainter *mPainter;
00056 PrintProgress *mPrintProgress;
00057 };
00058
00059 class DetailledPrintStyleFactory : public PrintStyleFactory
00060 {
00061 public:
00062 DetailledPrintStyleFactory( PrintingWizard *parent, const char *name = 0 );
00063
00064 PrintStyle *create() const;
00065 QString description() const;
00066 };
00067
00068 }
00069
00070 #endif