Kate
kateprinter.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 #ifndef __KATE_PRINTER_H__
00022 #define __KATE_PRINTER_H__
00023
00024 #include <QtGui/QWidget>
00025
00026 class KateDocument;
00027
00028 class KColorButton;
00029 class QCheckBox;
00030 class QComboBox;
00031 class QGroupBox;
00032 class QLabel;
00033 class KLineEdit;
00034 class QSpinBox;
00035
00036 class KatePrinter
00037 {
00038 public:
00039 static bool print (KateDocument *doc);
00040 };
00041
00042
00043
00044
00045
00046
00047
00048
00049 class KatePrintTextSettings : public QWidget
00050 {
00051 Q_OBJECT
00052 public:
00053 explicit KatePrintTextSettings( QWidget *parent=0 );
00054 ~KatePrintTextSettings(){}
00055
00056
00057 bool printLineNumbers();
00058 bool printGuide();
00059
00060
00061
00062
00063 private:
00064 QCheckBox *cbLineNumbers, *cbGuide;
00065 };
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 class KatePrintHeaderFooter : public QWidget
00078 {
00079 Q_OBJECT
00080 public:
00081 explicit KatePrintHeaderFooter( QWidget *parent=0 );
00082 ~KatePrintHeaderFooter(){}
00083
00084 QFont font();
00085
00086 bool useHeader();
00087 QStringList headerFormat();
00088 QColor headerForeground();
00089 QColor headerBackground();
00090 bool useHeaderBackground();
00091
00092 bool useFooter();
00093 QStringList footerFormat();
00094 QColor footerForeground();
00095 QColor footerBackground();
00096 bool useFooterBackground();
00097
00098 public Q_SLOTS:
00099 void setHFFont();
00100
00101 private:
00102 QCheckBox *cbEnableHeader, *cbEnableFooter;
00103 QLabel *lFontPreview;
00104 QGroupBox *gbHeader, *gbFooter;
00105 KLineEdit *leHeaderLeft, *leHeaderCenter, *leHeaderRight;
00106 KColorButton *kcbtnHeaderFg, *kcbtnHeaderBg;
00107 QCheckBox *cbHeaderEnableBgColor;
00108 KLineEdit *leFooterLeft, *leFooterCenter, *leFooterRight;
00109 KColorButton *kcbtnFooterFg, *kcbtnFooterBg;
00110 QCheckBox *cbFooterEnableBgColor;
00111 };
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 class KatePrintLayout : public QWidget
00126 {
00127 Q_OBJECT
00128 public:
00129 explicit KatePrintLayout( QWidget *parent=0 );
00130 ~KatePrintLayout(){}
00131
00132 QString colorScheme();
00133 bool useBackground();
00134 bool useBox();
00135 int boxWidth();
00136 int boxMargin();
00137 QColor boxColor();
00138
00139 private:
00140 QComboBox *cmbSchema;
00141 QCheckBox *cbEnableBox, *cbDrawBackground;
00142 QGroupBox *gbBoxProps;
00143 QSpinBox *sbBoxWidth, *sbBoxMargin;
00144 KColorButton* kcbtnBoxColor;
00145 };
00146
00147
00148 #endif