00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef QBANKING_PRINTDIALOG_H
00014 #define QBANKING_PRINTDIALOG_H
00015
00016 #include "qbprintdialog.ui.h"
00017 #include "qbanking.h"
00018
00019 #include <qstring.h>
00020
00021 class QPrinter;
00022
00023
00024 class QBANKING_API QBPrintDialog : public QBPrintDialogUi {
00025 Q_OBJECT
00026 public:
00027 QBPrintDialog(QBanking *app,
00028 const char *docTitle,
00029 const char *docType,
00030 const char *descr,
00031 const char *text,
00032 QWidget* parent=0,
00033 const char* name=0,
00034 bool modal=FALSE,
00035 WFlags fl=0);
00036 ~QBPrintDialog();
00037
00038 void accept();
00039
00040 public slots:
00041 void slotPrint();
00042 void slotSetup();
00043 void slotFont();
00044 void slotHelpClicked();
00045
00046 private:
00047 QBanking *_banking;
00048 const char *_docTitle;
00049 const char *_docType;
00050 const char *_descr;
00051 const char *_text;
00052 QPrinter *_printer;
00053 QString _fontFamily;
00054 int _fontSize;
00055 int _fontWeight;
00056
00057 void loadPrinterSetup();
00058 void savePrinterSetup();
00059
00060 void loadGuiSetup();
00061 void saveGuiSetup();
00062
00063 };
00064
00065
00066
00067
00068 #endif