kateprinter.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KATE_PRINTER_H__
00022 #define __KATE_PRINTER_H__
00023
00024 #include <kprintdialogpage.h>
00025
00026 class KateDocument;
00027
00028 class KColorButton;
00029 class KPrinter;
00030 class QCheckBox;
00031 class QComboBox;
00032 class QGroupBox;
00033 class QLabel;
00034 class QLineEdit;
00035 class QSpinBox;
00036
00037 class KatePrinter
00038 {
00039 public:
00040 static bool print (KateDocument *doc);
00041 };
00042
00043
00044
00045
00046
00047
00048
00049
00050 class KatePrintTextSettings : public KPrintDialogPage
00051 {
00052 Q_OBJECT
00053 public:
00054 KatePrintTextSettings( KPrinter *printer, QWidget *parent=0, const char *name=0 );
00055 ~KatePrintTextSettings(){};
00056
00057 void getOptions(QMap<QString,QString>& opts, bool incldef = false);
00058 void setOptions(const QMap<QString,QString>& opts);
00059
00060
00061 void enableSelection( bool );
00062
00063 private:
00064 QCheckBox *cbSelection, *cbLineNumbers, *cbGuide;
00065 };
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 class KatePrintHeaderFooter : public KPrintDialogPage
00078 {
00079 Q_OBJECT
00080 public:
00081 KatePrintHeaderFooter( KPrinter *printer, QWidget *parent=0, const char *name=0 );
00082 ~KatePrintHeaderFooter(){};
00083
00084 void getOptions(QMap<QString,QString>& opts, bool incldef = false);
00085 void setOptions(const QMap<QString,QString>& opts);
00086
00087 public slots:
00088 void setHFFont();
00089
00090 private:
00091 QCheckBox *cbEnableHeader, *cbEnableFooter;
00092 QLabel *lFontPreview;
00093 QString strFont;
00094 QGroupBox *gbHeader, *gbFooter;
00095 QLineEdit *leHeaderLeft, *leHeaderCenter, *leHeaderRight;
00096 KColorButton *kcbtnHeaderFg, *kcbtnHeaderBg;
00097 QCheckBox *cbHeaderEnableBgColor;
00098 QLineEdit *leFooterLeft, *leFooterCenter, *leFooterRight;
00099 KColorButton *kcbtnFooterFg, *kcbtnFooterBg;
00100 QCheckBox *cbFooterEnableBgColor;
00101 };
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 class KatePrintLayout : public KPrintDialogPage
00116 {
00117 Q_OBJECT
00118 public:
00119 KatePrintLayout( KPrinter *printer, QWidget *parent=0, const char *name=0 );
00120 ~KatePrintLayout(){};
00121
00122 void getOptions(QMap<QString,QString>& opts, bool incldef = false);
00123 void setOptions(const QMap<QString,QString>& opts);
00124
00125 private:
00126 QComboBox *cmbSchema;
00127 QCheckBox *cbEnableBox, *cbDrawBackground;
00128 QGroupBox *gbBoxProps;
00129 QSpinBox *sbBoxWidth, *sbBoxMargin;
00130 KColorButton* kcbtnBoxColor;
00131 };
00132
00133
00134 #endif
This file is part of the documentation for kate Library Version 3.3.2.