• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

kateprinter.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2002 Michael Goffioul <kdeprint@swing.be>
00004  *  Complete rewrite on Sat Jun 15 2002 (c) Anders Lund <anders@alweb.dk>
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Library General Public
00008  *  License version 2 as published by the Free Software Foundation.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
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 //BEGIN Text settings
00043 /*
00044   Text settings page:
00045   - [ ] Print Selection (enabled if there is a selection in the view)
00046   - Print Line Numbers
00047     () Smart () Yes () No
00048 */
00049 class KatePrintTextSettings : public QWidget
00050 {
00051   Q_OBJECT
00052   public:
00053     explicit KatePrintTextSettings( QWidget *parent=0 );
00054     ~KatePrintTextSettings(){}
00055 
00056 //     bool printSelection();
00057     bool printLineNumbers();
00058     bool printGuide();
00059 
00060     /* call if view has a selection, enables the seelction checkbox according to the arg */
00061 //     void enableSelection( bool );
00062 
00063   private:
00064     QCheckBox /* *cbSelection,*/ *cbLineNumbers, *cbGuide;
00065 };
00066 //END Text Settings
00067 
00068 //BEGIN Header/Footer
00069 /*
00070   Header & Footer page:
00071   - enable header/footer
00072   - header/footer props
00073     o formats
00074     o colors
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 //END Header/Footer
00114 
00115 //BEGIN Layout
00116 /*
00117   Layout page:
00118   - Color scheme
00119   - Use Box
00120   - Box properties
00121     o Width
00122     o Margin
00123     o Color
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 //END Layout
00147 
00148 #endif

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal