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

kdeprint

  • kdeprint
kprintdialog.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License version 2 as published by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  **/
19 
20 #ifndef KPRINTDIALOG_H
21 #define KPRINTDIALOG_H
22 
23 #if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a KDEPrint developer
25 #endif
26 
27 #include <kdialog.h>
28 #include <tqptrlist.h>
29 #include <kdeprint/kpreloadobject.h>
30 
31 class KPrinter;
32 class KPrintDialogPage;
33 
41 class KDEPRINT_EXPORT KPrintDialog : public KDialog, public KPReloadObject
42 {
43  Q_OBJECT
44 public:
45  KPrintDialog(TQWidget *parent = 0, const char *name = 0);
46  ~KPrintDialog();
47 
48  void setFlags(int f);
49  void setDialogPages(TQPtrList<KPrintDialogPage> *pages);
50  void enableDialogPage( int index, bool flag = true );
51  KPrinter* printer() const;
52 
53  static KPrintDialog* printerDialog(KPrinter*, TQWidget*, const TQString& caption = TQString::null, bool forceExpand = false);
54 
55 signals:
56  void printRequested(KPrinter*);
57 
58 protected slots:
59  void slotPrinterSelected(int);
60  void slotProperties();
61  void slotSetDefault();
62  void slotOptions();
63  virtual void done(int);
64  void slotWizard();
65  void slotExtensionClicked();
66  void slotToggleFilter(bool);
67  void slotHelp();
68  void slotOutputFileSelected(const TQString&);
69  void slotUpdatePossible( bool );
70  void slotOpenFileDialog();
71 
72 protected:
73  bool checkOutputFile();
74  void enableSpecial(bool on);
75  void enableOutputFile(bool on);
76  void setOutputFileExtension(const TQString&);
77  void reload();
78  void configChanged();
79  void expandDialog(bool on = true);
80  void initialize( KPrinter* );
81  void init();
82 
83 protected:
84  class KPrintDialogPrivate;
85  KPrintDialogPrivate *d;
86 };
87 
88 #endif
KPrinter
This class is the main interface to access the KDE print framework.
Definition: kprinter.h:88
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page. ...
Definition: kprintdialogpage.h:90

kdeprint

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

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |