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

tdeprint

  • tdeprint
kprintdialog.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (c) 2001 Michael Goffioul <tdeprint@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( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24#warning internal header, do not use except if you are a TDEPrint developer
25#endif
26
27#include <kdialog.h>
28#include <tqptrlist.h>
29#include <tdeprint/kpreloadobject.h>
30
31class KPrinter;
32class KPrintDialogPage;
33
41class TDEPRINT_EXPORT KPrintDialog : public KDialog, public KPReloadObject
42{
43 TQ_OBJECT
44public:
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
55signals:
56 void printRequested(KPrinter*);
57
58protected 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
72protected:
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
83protected:
84 class KPrintDialogPrivate;
85 KPrintDialogPrivate *d;
86};
87
88#endif
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page.
Definition: kprintdialogpage.h:91
KPrinter
This class is the main interface to access the TDE print framework.
Definition: kprinter.h:89

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.4
This website is maintained by Timothy Pearson.