tdeprint
kprintaction.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KPRINTACTION_H
00021 #define KPRINTACTION_H
00022
00023 #include <tdeaction.h>
00024
00025 class KPrinter;
00026
00027 class TDEPRINT_EXPORT KPrintAction : public TDEActionMenu
00028 {
00029 Q_OBJECT
00030 public:
00031 enum PrinterType { All, Regular, Specials };
00032
00033 KPrintAction(const TQString& text, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00034 KPrintAction(const TQString& text, const TQIconSet& icon, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00035 KPrintAction(const TQString& text, const TQString& icon, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00036 virtual ~KPrintAction();
00037
00038 static KPrintAction* exportAll(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00039 static KPrintAction* exportRegular(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00040 static KPrintAction* exportSpecial(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
00041
00042 signals:
00043 void print(KPrinter*);
00044
00045 protected slots:
00046 void slotAboutToShow();
00047 void slotActivated(int);
00048
00049 protected:
00050 void initialize(PrinterType type, TQWidget *parentWidget);
00051
00052 private:
00053 class KPrintActionPrivate;
00054 KPrintActionPrivate *d;
00055 };
00056
00057 #endif