1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_PRINTINTERFACE_H_
11 #define _OKULAR_PRINTINTERFACE_H_
13 #include <okular/core/okular_export.h>
15 #include <QtCore/QObject>
22 * @short Abstract interface for advanced printing control
24 * This interface defines an advanced way of interfacing with the print
27 * How to use it in a custom Generator:
29 class MyGenerator : public Okular::Generator, public Okular::PrintInterface
32 Q_INTERFACES( Okular::PrintInterface )
37 * and - of course - implementing its methods.
39 class OKULAR_EXPORT PrintInterface
43 * Destroys the printer interface.
45 virtual ~PrintInterface() {}
48 * Builds and returns a new printing configuration widget.
50 * @note don't keep a pointer to the new constructed widget, as it
51 * will be handled elsewhere (in the Okular KPart)
53 virtual QWidget
* printConfigurationWidget() const = 0;
58 Q_DECLARE_INTERFACE( Okular::PrintInterface
, "org.kde.okular.PrintInterface/0.1" )