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 <kaction.h>
00024
00025
class KPrinter;
00026
00027
class KPrintAction :
public KActionMenu
00028 {
00029 Q_OBJECT
00030
public:
00031
enum PrinterType { All, Regular, Specials };
00032
00033 KPrintAction(
const QString& text, PrinterType type = All,
QWidget *parentWidget = 0,
QObject *parent = 0,
const char *name = 0);
00034 KPrintAction(
const QString& text,
const QIconSet& icon, PrinterType type = All,
QWidget *parentWidget = 0,
QObject *parent = 0,
const char *name = 0);
00035 KPrintAction(
const QString& text,
const QString& icon, PrinterType type = All,
QWidget *parentWidget = 0,
QObject *parent = 0,
const char *name = 0);
00036
virtual ~KPrintAction();
00037
00038
static KPrintAction* exportAll(
QWidget *parentWidget = 0,
QObject *parent = 0,
const char *name = 0);
00039
static KPrintAction* exportRegular(
QWidget *parentWidget = 0,
QObject *parent = 0,
const char *name = 0);
00040
static KPrintAction* exportSpecial(
QWidget *parentWidget = 0,
QObject *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,
QWidget *parentWidget);
00051
00052
private:
00053
class KPrintActionPrivate;
00054 KPrintActionPrivate *d;
00055 };
00056
00057
#endif
This file is part of the documentation for kdeprint Library Version 3.3.0.