Go to the documentation of this file.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 <q4banking/qbanking.h>
00017
00018 #include "qbprintdialog.ui.h"
00019
00020 #include <qstring.h>
00021
00022 class QPrinter;
00023
00024
00025 class Q4BANKING_API QBPrintDialog : public QDialog, public Ui_QBPrintDialogUi {
00026 Q_OBJECT
00027 public:
00028 QBPrintDialog(QBanking *app,
00029 const char *docTitle,
00030 const char *docType,
00031 const char *descr,
00032 const char *text,
00033 QWidget* parent=0,
00034 const char* name=0,
00035 bool modal=FALSE,
00036 Qt::WFlags fl=0);
00037 ~QBPrintDialog();
00038
00039 void accept();
00040
00041 public slots:
00042 void slotPrint();
00043 void slotSetup();
00044 void slotFont();
00045 void slotHelpClicked();
00046
00047 private:
00048 QBanking *_banking;
00049 const char *_docTitle;
00050 const char *_docType;
00051 const char *_descr;
00052 const char *_text;
00053 QString _fontFamily;
00054 int _fontSize;
00055 int _fontWeight;
00056
00057 void loadPrinterSetup(QPrinter *printer);
00058 void savePrinterSetup(QPrinter *printer);
00059
00060 void loadGuiSetup();
00061 void saveGuiSetup();
00062
00063 };
00064
00065
00066
00067
00068 #endif