Changeset View
Changeset View
Standalone View
Standalone View
interfaces/printinterface.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | 2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | ||
3 | * * | 3 | * * | ||
4 | * This program is free software; you can redistribute it and/or modify * | 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 * | 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 * | 6 | * the Free Software Foundation; either version 2 of the License, or * | ||
7 | * (at your option) any later version. * | 7 | * (at your option) any later version. * | ||
8 | ***************************************************************************/ | 8 | ***************************************************************************/ | ||
9 | 9 | | |||
10 | #ifndef _OKULAR_PRINTINTERFACE_H_ | 10 | #ifndef _OKULAR_PRINTINTERFACE_H_ | ||
11 | #define _OKULAR_PRINTINTERFACE_H_ | 11 | #define _OKULAR_PRINTINTERFACE_H_ | ||
12 | 12 | | |||
13 | #include "../core/okularcore_export.h" | 13 | #include "../core/okularcore_export.h" | ||
14 | 14 | | |||
15 | #include <QObject> | 15 | #include <QObject> | ||
16 | 16 | | |||
17 | class QWidget; | | |||
18 | | ||||
19 | namespace Okular { | 17 | namespace Okular { | ||
20 | 18 | | |||
19 | class PrintOptionsWidget; | ||||
20 | | ||||
21 | /** | 21 | /** | ||
22 | * @short Abstract interface for advanced printing control | 22 | * @short Abstract interface for advanced printing control | ||
23 | * | 23 | * | ||
24 | * This interface defines an advanced way of interfacing with the print | 24 | * This interface defines an advanced way of interfacing with the print | ||
25 | * process. | 25 | * process. | ||
26 | * | 26 | * | ||
27 | * How to use it in a custom Generator: | 27 | * How to use it in a custom Generator: | ||
28 | * @code | 28 | * @code | ||
Show All 16 Lines | 41 | public: | |||
45 | virtual ~PrintInterface() {} | 45 | virtual ~PrintInterface() {} | ||
46 | 46 | | |||
47 | /** | 47 | /** | ||
48 | * Builds and returns a new printing configuration widget. | 48 | * Builds and returns a new printing configuration widget. | ||
49 | * | 49 | * | ||
50 | * @note don't keep a pointer to the new constructed widget, as it | 50 | * @note don't keep a pointer to the new constructed widget, as it | ||
51 | * will be handled elsewhere (in the Okular KPart) | 51 | * will be handled elsewhere (in the Okular KPart) | ||
52 | */ | 52 | */ | ||
53 | virtual QWidget* printConfigurationWidget() const = 0; | 53 | virtual PrintOptionsWidget* printConfigurationWidget() const = 0; | ||
54 | }; | 54 | }; | ||
55 | 55 | | |||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | Q_DECLARE_INTERFACE( Okular::PrintInterface, "org.kde.okular.PrintInterface/0.1" ) | 58 | Q_DECLARE_INTERFACE( Okular::PrintInterface, "org.kde.okular.PrintInterface/0.1" ) | ||
59 | 59 | | |||
60 | #endif | 60 | #endif |