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

tdeprint

  • tdeprint
kprintdialogpage.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4  *
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 KPRINTDIALOGPAGE_H
22 #define KPRINTDIALOGPAGE_H
23 
24 #include <tqwidget.h>
25 #include <tqmap.h>
26 
27 #include <tdelibs_export.h>
28 
29 class KMPrinter;
30 class DrMain;
31 
90 class TDEPRINT_EXPORT KPrintDialogPage : public TQWidget
91 {
92  TQ_OBJECT
93 public:
97  KPrintDialogPage(TQWidget *parent = 0, const char *name = 0);
101  KPrintDialogPage(KMPrinter *pr, DrMain *dr = 0, TQWidget *parent = 0, const char *name = 0);
105  virtual ~KPrintDialogPage();
106 
115  virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
121  virtual void setOptions(const TQMap<TQString,TQString>& opts);
129  virtual bool isValid(TQString& msg);
135  int id() const { return m_ID; }
141  void setId(int ID) { m_ID = ID; }
147  TQString title() const { return m_title; }
154  void setTitle(const TQString& txt) { m_title = txt; }
164  bool onlyRealPrinters() const { return m_onlyreal; }
172  void setOnlyRealPrinters(bool on = true) { m_onlyreal = on; }
176  DrMain* driver() { return m_driver; }
180  KMPrinter* printer() { return m_printer; }
181 
182 protected:
183  KMPrinter *m_printer;
184  DrMain *m_driver;
185  int m_ID;
186  TQString m_title;
187  bool m_onlyreal;
188 };
189 
190 #endif
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page.
Definition: kprintdialogpage.h:91
KPrintDialogPage::driver
DrMain * driver()
For internal use only.
Definition: kprintdialogpage.h:176
KPrintDialogPage::printer
KMPrinter * printer()
For internal use only.
Definition: kprintdialogpage.h:180
KPrintDialogPage::onlyRealPrinters
bool onlyRealPrinters() const
Tell wether or not the page should be disable if a non real printer (special printer) is selected in ...
Definition: kprintdialogpage.h:164
KPrintDialogPage::title
TQString title() const
Get the page title.
Definition: kprintdialogpage.h:147
KPrintDialogPage::setTitle
void setTitle(const TQString &txt)
Set the page title.
Definition: kprintdialogpage.h:154
KPrintDialogPage::setOnlyRealPrinters
void setOnlyRealPrinters(bool on=true)
Change the page state when a non real printer is selected in the print dialog.
Definition: kprintdialogpage.h:172
KPrintDialogPage::setId
void setId(int ID)
Set the ID of the page.
Definition: kprintdialogpage.h:141
KPrintDialogPage::id
int id() const
Get the ID of the page.
Definition: kprintdialogpage.h:135

tdeprint

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

tdeprint

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