Changeset View
Changeset View
Standalone View
Standalone View
core/fileprinter.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 30 | public: | |||
---|---|---|---|---|---|
84 | * -6 if invalid printer state | 84 | * -6 if invalid printer state | ||
85 | * -5 if print to file copy failed | 85 | * -5 if print to file copy failed | ||
86 | * -2 if the KProcess could not be started | 86 | * -2 if the KProcess could not be started | ||
87 | * -1 if the KProcess crashed | 87 | * -1 if the KProcess crashed | ||
88 | * otherwise the KProcess exit code | 88 | * otherwise the KProcess exit code | ||
89 | * | 89 | * | ||
90 | * @since 1.8 | 90 | * @since 1.8 | ||
91 | */ | 91 | */ | ||
92 | static int printFile( QPrinter &printer, const QString file, | 92 | static int printFile( QPrinter &printer, const QString &file, | ||
aacid: This breaks ABI | |||||
93 | QPrinter::Orientation documentOrientation, | 93 | QPrinter::Orientation documentOrientation, | ||
94 | FileDeletePolicy fileDeletePolicy, | 94 | FileDeletePolicy fileDeletePolicy, | ||
95 | PageSelectPolicy pageSelectPolicy, | 95 | PageSelectPolicy pageSelectPolicy, | ||
96 | const QString &pageRange, | 96 | const QString &pageRange, | ||
97 | ScaleMode scaleMode | 97 | ScaleMode scaleMode | ||
98 | ); | 98 | ); | ||
99 | 99 | | |||
100 | /** Print a file using the settings in QPrinter | 100 | /** Print a file using the settings in QPrinter | ||
101 | * | 101 | * | ||
102 | * Same as 'printFile()' with 7 parameters, but always using a 'scaleMode' of | 102 | * Same as 'printFile()' with 7 parameters, but always using a 'scaleMode' of | ||
103 | * 'FitToPrintArea'. | 103 | * 'FitToPrintArea'. | ||
104 | * | 104 | * | ||
105 | * @since 0.14 (KDE 4.8) | 105 | * @since 0.14 (KDE 4.8) | ||
106 | */ | 106 | */ | ||
107 | // TODO merge with function above when a BIC change happens somehwere else | 107 | // TODO merge with function above when a BIC change happens somehwere else | ||
108 | static int printFile( QPrinter &printer, const QString file, | 108 | static int printFile( QPrinter &printer, const QString &file, | ||
109 | QPrinter::Orientation documentOrientation, | 109 | QPrinter::Orientation documentOrientation, | ||
110 | FileDeletePolicy fileDeletePolicy = FilePrinter::ApplicationDeletesFiles, | 110 | FileDeletePolicy fileDeletePolicy = FilePrinter::ApplicationDeletesFiles, | ||
111 | PageSelectPolicy pageSelectPolicy = FilePrinter::ApplicationSelectsPages, | 111 | PageSelectPolicy pageSelectPolicy = FilePrinter::ApplicationSelectsPages, | ||
112 | const QString &pageRange = QString() ); | 112 | const QString &pageRange = QString() ); | ||
113 | 113 | | |||
114 | /** Return the list of pages selected by the user in the Print Dialog | 114 | /** Return the list of pages selected by the user in the Print Dialog | ||
115 | * | 115 | * | ||
116 | * @param printer the print settings to use | 116 | * @param printer the print settings to use | ||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
177 | */ | 177 | */ | ||
178 | static Generator::PrintError printError( int c ); | 178 | static Generator::PrintError printError( int c ); | ||
179 | 179 | | |||
180 | protected: | 180 | protected: | ||
181 | 181 | | |||
182 | bool detectCupsService(); | 182 | bool detectCupsService(); | ||
183 | bool detectCupsConfig(); | 183 | bool detectCupsConfig(); | ||
184 | 184 | | |||
185 | int doPrintFiles( QPrinter &printer, const QStringList fileList, | 185 | int doPrintFiles( QPrinter &printer, const QStringList &fileList, | ||
186 | FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, | 186 | FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, | ||
187 | const QString &pageRange, | 187 | const QString &pageRange, | ||
188 | QPrinter::Orientation documentOrientation ); | 188 | QPrinter::Orientation documentOrientation ); | ||
189 | // TODO merge with function above when a BIC change happens somehwere else | 189 | // TODO merge with function above when a BIC change happens somehwere else | ||
190 | /// @since 1.8 | 190 | /// @since 1.8 | ||
191 | int doPrintFiles( QPrinter &printer, const QStringList fileList, | 191 | int doPrintFiles( QPrinter &printer, const QStringList fileList, | ||
192 | FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, | 192 | FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, | ||
193 | const QString &pageRange, | 193 | const QString &pageRange, | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
This breaks ABI