• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • part
kateprinter.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2002 Michael Goffioul <tdeprint@swing.be>
4  * Complete rewrite on Sat Jun 15 2002 (c) Anders Lund <anders@alweb.dk>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  **/
20 
21 #ifndef __KATE_PRINTER_H__
22 #define __KATE_PRINTER_H__
23 
24 #include <kprintdialogpage.h>
25 
26 class KateDocument;
27 
28 class KColorButton;
29 class KPrinter;
30 class TQCheckBox;
31 class TQComboBox;
32 class TQGroupBox;
33 class TQLabel;
34 class TQLineEdit;
35 class TQSpinBox;
36 
37 class KatePrinter
38 {
39  public:
40  static bool print (KateDocument *doc);
41 };
42 
43 #ifndef Q_WS_WIN //TODO: reenable
44 //BEGIN Text settings
45 /*
46  Text settings page:
47  - [ ] Print Selection (enabled if there is a selection in the view)
48  - Print Line Numbers
49  () Smart () Yes () No
50 */
51 class KatePrintTextSettings : public KPrintDialogPage
52 {
53  Q_OBJECT
54  public:
55  KatePrintTextSettings( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
56  ~KatePrintTextSettings(){};
57 
58  void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
59  void setOptions(const TQMap<TQString,TQString>& opts);
60 
61  /* call if view has a selection, enables the seelction checkbox according to the arg */
62  void enableSelection( bool );
63 
64  private:
65  TQCheckBox *cbSelection, *cbLineNumbers, *cbGuide;
66 };
67 //END Text Settings
68 
69 //BEGIN Header/Footer
70 /*
71  Header & Footer page:
72  - enable header/footer
73  - header/footer props
74  o formats
75  o colors
76 */
77 
78 class KatePrintHeaderFooter : public KPrintDialogPage
79 {
80  Q_OBJECT
81  public:
82  KatePrintHeaderFooter( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
83  ~KatePrintHeaderFooter(){};
84 
85  void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
86  void setOptions(const TQMap<TQString,TQString>& opts);
87 
88  public slots:
89  void setHFFont();
90 
91  private:
92  TQCheckBox *cbEnableHeader, *cbEnableFooter;
93  TQLabel *lFontPreview;
94  TQString strFont;
95  TQGroupBox *gbHeader, *gbFooter;
96  TQLineEdit *leHeaderLeft, *leHeaderCenter, *leHeaderRight;
97  KColorButton *kcbtnHeaderFg, *kcbtnHeaderBg;
98  TQCheckBox *cbHeaderEnableBgColor;
99  TQLineEdit *leFooterLeft, *leFooterCenter, *leFooterRight;
100  KColorButton *kcbtnFooterFg, *kcbtnFooterBg;
101  TQCheckBox *cbFooterEnableBgColor;
102 };
103 
104 //END Header/Footer
105 
106 //BEGIN Layout
107 /*
108  Layout page:
109  - Color scheme
110  - Use Box
111  - Box properties
112  o Width
113  o Margin
114  o Color
115 */
116 class KatePrintLayout : public KPrintDialogPage
117 {
118  Q_OBJECT
119  public:
120  KatePrintLayout( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
121  ~KatePrintLayout(){};
122 
123  void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
124  void setOptions(const TQMap<TQString,TQString>& opts);
125 
126  private:
127  TQComboBox *cmbSchema;
128  TQCheckBox *cbEnableBox, *cbDrawBackground;
129  TQGroupBox *gbBoxProps;
130  TQSpinBox *sbBoxWidth, *sbBoxMargin;
131  KColorButton* kcbtnBoxColor;
132 };
133 //END Layout
134 #endif
135 
136 #endif
KColorButton
TDEStdAccel::print
const TDEShortcut & print()

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.8.8
This website is maintained by Timothy Pearson.