/usr/include/kdeprintdialog.h is in kdelibs5-dev 4:4.13.3-0ubuntu0.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | /*
* This file is part of the KDE libraries
* Copyright (c) 2007 Alex Merry <alex.merry@kdemail.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
**/
#ifndef KDEPRINTDIALOG_H
#define KDEPRINTDIALOG_H
#include <kdeui_export.h>
#include <QtCore/QList>
class QPrintDialog;
class QPrinter;
class QWidget;
/**
* Namespace for the KDE printing system
*/
namespace KdePrint
{
/**
* Whether pages to be printed are selected by the application or the print system.
*
* If ApplicationSelectsPages is set then the Application paints only the
* pages selected by the user in the Print Dialog and the Print System prints
* all the pages.
*
* If SystemSelectsPages is set then the Application paints all the pages
* and the Server will attempt to select the user requested pages. This
* only works in CUPS, not LPR, Windows, or OSX.
*/
enum PageSelectPolicy { ApplicationSelectsPages, SystemSelectsPages };
/**
* @since 4.4
*
* Creates a printer dialog for a QPrinter with the given custom widgets.
*
* If ApplicationSelectsPages is set then the Application paints only the
* pages selected by the user in the Print Dialog and the Print System prints
* all the pages.
*
* If SystemSelectsPages is set then the Application paints all the pages
* and the Server will attempt to select the user requested pages. On
* platforms where the Server does not support the selection of pages
* (i.e. Windows, OSX, and LPR) then the Page Range input will be disabled
* on the print dialog.
*
* Note that the custom widgets are only supported on X11
* and will @b not be shown on Qt versions prior to 4.3.2.
* On non-X11 systems it is preferred to provide the widgets
* within configuration dialog of the application.
*
* Setting the widgets will transfer their ownership to the print dialog
* even on non-X11 systems.
*
* The caller takes ownership of the dialog and is responsible
* for deleting it.
*
* @param printer the QPrinter to apply settings to
* @param pageSelectPolicy whether the Application or the System does the page selection
* @param customTabs a list of custom widgets to show as tabs, the name printed on the tab will
* be taken from the widgets windowTitle().
* @param parent the parent for the dialog
* @see QWidget::setWindowTitle()
* @see QAbstractPrintDialog::setOptionTabs()
*/
KDEUI_EXPORT QPrintDialog *createPrintDialog(QPrinter *printer,
PageSelectPolicy pageSelectPolicy,
const QList<QWidget*> &customTabs,
QWidget *parent = 0);
/**
* Creates a printer dialog for a QPrinter with the given custom widgets.
*
* Convenience method, assumes PageSelectionMode of ApplicationSelectsPages,
* see full version method for full documentation.
*
* The caller takes ownership of the dialog and is responsible
* for deleting it.
*
* @param printer the QPrinter to apply settings to
* @param parent the parent for the dialog
* @param customTabs a list of custom widgets to show as tabs, the name printed on the tab will
* be taken from the widgets windowTitle().
*/
KDEUI_EXPORT QPrintDialog *createPrintDialog(QPrinter *printer,
const QList<QWidget*> &customTabs,
QWidget *parent = 0);
/**
* @since 4.4
*
* Creates a printer dialog for a QPrinter with the given custom widgets.
*
* Convenience method, see full version method for full documentation.
*
* The caller takes ownership of the dialog and is responsible
* for deleting it.
*
* @param printer the QPrinter to apply settings to
* @param pageSelectPolicy whether the Application or the System does the page selection
* @param parent the parent for the dialog
*/
KDEUI_EXPORT QPrintDialog *createPrintDialog(QPrinter *printer,
PageSelectPolicy pageSelectPolicy,
QWidget *parent = 0);
/**
* Creates a printer dialog for a QPrinter
*
* Convenience method, assumes PageSelectionMode of ApplicationSelectsPages,
* see full version method for full documentation.
*
* The caller takes ownership of the dialog and is responsible
* for deleting it.
*
* @param printer the QPrinter to apply settings to
* @param parent the parent for the dialog
*/
KDEUI_EXPORT QPrintDialog *createPrintDialog(QPrinter *printer,
QWidget *parent = 0);
}
#endif // KDEPRINTDIALOG_H
|