kaddressbook
printingwizard.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 PRINTINGWIZARD_H
00026 #define PRINTINGWIZARD_H
00027
00028 #include <tqptrlist.h>
00029 #include <tqstringlist.h>
00030
00031 #include <kwizard.h>
00032
00033 #include "common/filter.h"
00034 #include "tdeabc/addressbook.h"
00035 #include "printstyle.h"
00036
00037 #include "selectionpage.h"
00038 #include "stylepage.h"
00039
00040
00041 class KPrinter;
00042 class TQVBoxLayout;
00043
00044 namespace KABPrinting {
00045
00050 class PrintingWizard : public KWizard
00051 {
00052 Q_OBJECT
00053
00054
00055 public:
00059 PrintingWizard( KPrinter *printer,
00060 TDEABC::AddressBook* ab,
00061 const TQStringList& selection,
00062 TQWidget *parent = 0, const char *name = 0 );
00063 ~PrintingWizard();
00064
00068 void registerStyles();
00069
00073 void print();
00074
00078 TDEABC::AddressBook *addressBook();
00079
00083 KPrinter* printer();
00084
00085 protected slots:
00090 void slotStyleSelected(int);
00091
00092 protected:
00093 TQPtrList<PrintStyleFactory> mStyleFactories;
00094 TQPtrList<PrintStyle> mStyleList;
00095 Filter::List mFilters;
00096 KPrinter *mPrinter;
00097 TDEABC::AddressBook *mAddressBook;
00098 TQStringList mSelection;
00099 PrintStyle *mStyle;
00100
00101 StylePage *mStylePage;
00102 SelectionPage *mSelectionPage;
00103
00111 void accept();
00112 };
00113
00114 }
00115
00116 #endif
|