21 #ifndef __KATE_PRINTER_H__
22 #define __KATE_PRINTER_H__
24 #include <kprintdialogpage.h>
40 static bool print (KateDocument *doc);
51 class KatePrintTextSettings :
public KPrintDialogPage
55 KatePrintTextSettings( KPrinter *printer, TQWidget *parent=0,
const char *name=0 );
56 ~KatePrintTextSettings(){};
58 void getOptions(TQMap<TQString,TQString>& opts,
bool incldef =
false);
59 void setOptions(
const TQMap<TQString,TQString>& opts);
62 void enableSelection(
bool );
65 TQCheckBox *cbSelection, *cbLineNumbers, *cbGuide;
78 class KatePrintHeaderFooter :
public KPrintDialogPage
82 KatePrintHeaderFooter( KPrinter *printer, TQWidget *parent=0,
const char *name=0 );
83 ~KatePrintHeaderFooter(){};
85 void getOptions(TQMap<TQString,TQString>& opts,
bool incldef =
false);
86 void setOptions(
const TQMap<TQString,TQString>& opts);
92 TQCheckBox *cbEnableHeader, *cbEnableFooter;
93 TQLabel *lFontPreview;
95 TQGroupBox *gbHeader, *gbFooter;
96 TQLineEdit *leHeaderLeft, *leHeaderCenter, *leHeaderRight;
98 TQCheckBox *cbHeaderEnableBgColor;
99 TQLineEdit *leFooterLeft, *leFooterCenter, *leFooterRight;
101 TQCheckBox *cbFooterEnableBgColor;
116 class KatePrintLayout :
public KPrintDialogPage
120 KatePrintLayout( KPrinter *printer, TQWidget *parent=0,
const char *name=0 );
121 ~KatePrintLayout(){};
123 void getOptions(TQMap<TQString,TQString>& opts,
bool incldef =
false);
124 void setOptions(
const TQMap<TQString,TQString>& opts);
127 TQComboBox *cmbSchema;
128 TQCheckBox *cbEnableBox, *cbDrawBackground;
129 TQGroupBox *gbBoxProps;
130 TQSpinBox *sbBoxWidth, *sbBoxMargin;
const TDEShortcut & print()