20 #ifndef KPRINTDIALOG_H
21 #define KPRINTDIALOG_H
23 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a TDEPrint developer
28 #include <tqptrlist.h>
29 #include <tdeprint/kpreloadobject.h>
41 class TDEPRINT_EXPORT KPrintDialog :
public KDialog,
public KPReloadObject
45 KPrintDialog(TQWidget *parent = 0,
const char *name = 0);
49 void setDialogPages(TQPtrList<KPrintDialogPage> *pages);
50 void enableDialogPage(
int index,
bool flag =
true );
53 static KPrintDialog* printerDialog(
KPrinter*, TQWidget*,
const TQString& caption = TQString::null,
bool forceExpand =
false);
59 void slotPrinterSelected(
int);
60 void slotProperties();
61 void slotSetDefault();
63 virtual void done(
int);
65 void slotExtensionClicked();
66 void slotToggleFilter(
bool);
68 void slotOutputFileSelected(
const TQString&);
69 void slotUpdatePossible(
bool );
70 void slotOpenFileDialog();
73 bool checkOutputFile();
74 void enableSpecial(
bool on);
75 void enableOutputFile(
bool on);
76 void setOutputFileExtension(
const TQString&);
79 void expandDialog(
bool on =
true);
84 class KPrintDialogPrivate;
85 KPrintDialogPrivate *d;
This class is intended to be used as base class for customized print dialog page.
This class is the main interface to access the TDE print framework.