1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIPrintSettings.idl
3 : */
4 :
5 : #ifndef __gen_nsIPrintSettings_h__
6 : #define __gen_nsIPrintSettings_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : #include "nsMargin.h"
18 : #include "nsTArray.h"
19 : class nsIPrintSession; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIPrintSettings */
23 : #define NS_IPRINTSETTINGS_IID_STR "4404c94b-0506-4255-9e3c-4582dba6cfbb"
24 :
25 : #define NS_IPRINTSETTINGS_IID \
26 : {0x4404c94b, 0x0506, 0x4255, \
27 : { 0x9e, 0x3c, 0x45, 0x82, 0xdb, 0xa6, 0xcf, 0xbb }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrintSettings : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTSETTINGS_IID)
33 :
34 : enum {
35 : kInitSaveOddEvenPages = 1U,
36 : kInitSaveHeaderLeft = 2U,
37 : kInitSaveHeaderCenter = 4U,
38 : kInitSaveHeaderRight = 8U,
39 : kInitSaveFooterLeft = 16U,
40 : kInitSaveFooterCenter = 32U,
41 : kInitSaveFooterRight = 64U,
42 : kInitSaveBGColors = 128U,
43 : kInitSaveBGImages = 256U,
44 : kInitSavePaperSize = 512U,
45 : kInitSavePaperData = 8192U,
46 : kInitSaveUnwriteableMargins = 16384U,
47 : kInitSaveEdges = 32768U,
48 : kInitSaveReversed = 65536U,
49 : kInitSaveInColor = 131072U,
50 : kInitSaveOrientation = 262144U,
51 : kInitSavePrintCommand = 524288U,
52 : kInitSavePrinterName = 1048576U,
53 : kInitSavePrintToFile = 2097152U,
54 : kInitSaveToFileName = 4194304U,
55 : kInitSavePageDelay = 8388608U,
56 : kInitSaveMargins = 16777216U,
57 : kInitSaveNativeData = 33554432U,
58 : kInitSavePlexName = 67108864U,
59 : kInitSaveShrinkToFit = 134217728U,
60 : kInitSaveScaling = 268435456U,
61 : kInitSaveColorspace = 536870912U,
62 : kInitSaveResolutionName = 1073741824U,
63 : kInitSaveDownloadFonts = 2147483648U,
64 : kInitSaveAll = 4294967295U,
65 : kPrintOddPages = 1,
66 : kPrintEvenPages = 2,
67 : kEnableSelectionRB = 4,
68 : kRangeAllPages = 0,
69 : kRangeSpecifiedPageRange = 1,
70 : kRangeSelection = 2,
71 : kRangeFocusFrame = 3,
72 : kJustLeft = 0,
73 : kJustCenter = 1,
74 : kJustRight = 2,
75 : kUseInternalDefault = 0,
76 : kUseSettingWhenPossible = 1,
77 : kPaperSizeNativeData = 0,
78 : kPaperSizeDefined = 1,
79 : kPaperSizeInches = 0,
80 : kPaperSizeMillimeters = 1,
81 : kPortraitOrientation = 0,
82 : kLandscapeOrientation = 1,
83 : kNoFrames = 0,
84 : kFramesAsIs = 1,
85 : kSelectedFrame = 2,
86 : kEachFrameSep = 3,
87 : kFrameEnableNone = 0,
88 : kFrameEnableAll = 1,
89 : kFrameEnableAsIsAndEach = 2,
90 : kOutputFormatNative = 0,
91 : kOutputFormatPS = 1,
92 : kOutputFormatPDF = 2
93 : };
94 :
95 : /* void SetPrintOptions (in PRInt32 aType, in boolean aTurnOnOff); */
96 : NS_SCRIPTABLE NS_IMETHOD SetPrintOptions(PRInt32 aType, bool aTurnOnOff) = 0;
97 :
98 : /* boolean GetPrintOptions (in PRInt32 aType); */
99 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptions(PRInt32 aType, bool *_retval NS_OUTPARAM) = 0;
100 :
101 : /* PRInt32 GetPrintOptionsBits (); */
102 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval NS_OUTPARAM) = 0;
103 :
104 : /* void GetEffectivePageSize (out double aWidth, out double aHeight); */
105 : NS_SCRIPTABLE NS_IMETHOD GetEffectivePageSize(double *aWidth NS_OUTPARAM, double *aHeight NS_OUTPARAM) = 0;
106 :
107 : /* nsIPrintSettings clone (); */
108 : NS_SCRIPTABLE NS_IMETHOD Clone(nsIPrintSettings * *_retval NS_OUTPARAM) = 0;
109 :
110 : /* void assign (in nsIPrintSettings aPS); */
111 : NS_SCRIPTABLE NS_IMETHOD Assign(nsIPrintSettings *aPS) = 0;
112 :
113 : /* [noscript] attribute nsIPrintSession printSession; */
114 : NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) = 0;
115 : NS_IMETHOD SetPrintSession(nsIPrintSession *aPrintSession) = 0;
116 :
117 : /* attribute long startPageRange; */
118 : NS_SCRIPTABLE NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) = 0;
119 : NS_SCRIPTABLE NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) = 0;
120 :
121 : /* attribute long endPageRange; */
122 : NS_SCRIPTABLE NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) = 0;
123 : NS_SCRIPTABLE NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) = 0;
124 :
125 : /* attribute double edgeTop; */
126 : NS_SCRIPTABLE NS_IMETHOD GetEdgeTop(double *aEdgeTop) = 0;
127 : NS_SCRIPTABLE NS_IMETHOD SetEdgeTop(double aEdgeTop) = 0;
128 :
129 : /* attribute double edgeLeft; */
130 : NS_SCRIPTABLE NS_IMETHOD GetEdgeLeft(double *aEdgeLeft) = 0;
131 : NS_SCRIPTABLE NS_IMETHOD SetEdgeLeft(double aEdgeLeft) = 0;
132 :
133 : /* attribute double edgeBottom; */
134 : NS_SCRIPTABLE NS_IMETHOD GetEdgeBottom(double *aEdgeBottom) = 0;
135 : NS_SCRIPTABLE NS_IMETHOD SetEdgeBottom(double aEdgeBottom) = 0;
136 :
137 : /* attribute double edgeRight; */
138 : NS_SCRIPTABLE NS_IMETHOD GetEdgeRight(double *aEdgeRight) = 0;
139 : NS_SCRIPTABLE NS_IMETHOD SetEdgeRight(double aEdgeRight) = 0;
140 :
141 : /* attribute double marginTop; */
142 : NS_SCRIPTABLE NS_IMETHOD GetMarginTop(double *aMarginTop) = 0;
143 : NS_SCRIPTABLE NS_IMETHOD SetMarginTop(double aMarginTop) = 0;
144 :
145 : /* attribute double marginLeft; */
146 : NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(double *aMarginLeft) = 0;
147 : NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(double aMarginLeft) = 0;
148 :
149 : /* attribute double marginBottom; */
150 : NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(double *aMarginBottom) = 0;
151 : NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(double aMarginBottom) = 0;
152 :
153 : /* attribute double marginRight; */
154 : NS_SCRIPTABLE NS_IMETHOD GetMarginRight(double *aMarginRight) = 0;
155 : NS_SCRIPTABLE NS_IMETHOD SetMarginRight(double aMarginRight) = 0;
156 :
157 : /* attribute double unwriteableMarginTop; */
158 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginTop(double *aUnwriteableMarginTop) = 0;
159 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop) = 0;
160 :
161 : /* attribute double unwriteableMarginLeft; */
162 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft) = 0;
163 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft) = 0;
164 :
165 : /* attribute double unwriteableMarginBottom; */
166 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom) = 0;
167 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom) = 0;
168 :
169 : /* attribute double unwriteableMarginRight; */
170 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginRight(double *aUnwriteableMarginRight) = 0;
171 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight) = 0;
172 :
173 : /* attribute double scaling; */
174 : NS_SCRIPTABLE NS_IMETHOD GetScaling(double *aScaling) = 0;
175 : NS_SCRIPTABLE NS_IMETHOD SetScaling(double aScaling) = 0;
176 :
177 : /* attribute boolean printBGColors; */
178 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGColors(bool *aPrintBGColors) = 0;
179 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGColors(bool aPrintBGColors) = 0;
180 :
181 : /* attribute boolean printBGImages; */
182 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGImages(bool *aPrintBGImages) = 0;
183 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGImages(bool aPrintBGImages) = 0;
184 :
185 : /* attribute short printRange; */
186 : NS_SCRIPTABLE NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) = 0;
187 : NS_SCRIPTABLE NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) = 0;
188 :
189 : /* attribute wstring title; */
190 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
191 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
192 :
193 : /* attribute wstring docURL; */
194 : NS_SCRIPTABLE NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) = 0;
195 : NS_SCRIPTABLE NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) = 0;
196 :
197 : /* attribute wstring headerStrLeft; */
198 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) = 0;
199 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) = 0;
200 :
201 : /* attribute wstring headerStrCenter; */
202 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) = 0;
203 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) = 0;
204 :
205 : /* attribute wstring headerStrRight; */
206 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) = 0;
207 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) = 0;
208 :
209 : /* attribute wstring footerStrLeft; */
210 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) = 0;
211 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) = 0;
212 :
213 : /* attribute wstring footerStrCenter; */
214 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) = 0;
215 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) = 0;
216 :
217 : /* attribute wstring footerStrRight; */
218 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) = 0;
219 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) = 0;
220 :
221 : /* attribute short howToEnableFrameUI; */
222 : NS_SCRIPTABLE NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) = 0;
223 : NS_SCRIPTABLE NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) = 0;
224 :
225 : /* attribute boolean isCancelled; */
226 : NS_SCRIPTABLE NS_IMETHOD GetIsCancelled(bool *aIsCancelled) = 0;
227 : NS_SCRIPTABLE NS_IMETHOD SetIsCancelled(bool aIsCancelled) = 0;
228 :
229 : /* attribute short printFrameTypeUsage; */
230 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) = 0;
231 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) = 0;
232 :
233 : /* attribute short printFrameType; */
234 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) = 0;
235 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) = 0;
236 :
237 : /* attribute boolean printSilent; */
238 : NS_SCRIPTABLE NS_IMETHOD GetPrintSilent(bool *aPrintSilent) = 0;
239 : NS_SCRIPTABLE NS_IMETHOD SetPrintSilent(bool aPrintSilent) = 0;
240 :
241 : /* attribute boolean shrinkToFit; */
242 : NS_SCRIPTABLE NS_IMETHOD GetShrinkToFit(bool *aShrinkToFit) = 0;
243 : NS_SCRIPTABLE NS_IMETHOD SetShrinkToFit(bool aShrinkToFit) = 0;
244 :
245 : /* attribute boolean showPrintProgress; */
246 : NS_SCRIPTABLE NS_IMETHOD GetShowPrintProgress(bool *aShowPrintProgress) = 0;
247 : NS_SCRIPTABLE NS_IMETHOD SetShowPrintProgress(bool aShowPrintProgress) = 0;
248 :
249 : /* attribute wstring paperName; */
250 : NS_SCRIPTABLE NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) = 0;
251 : NS_SCRIPTABLE NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) = 0;
252 :
253 : /* attribute short paperSizeType; */
254 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) = 0;
255 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) = 0;
256 :
257 : /* attribute short paperData; */
258 : NS_SCRIPTABLE NS_IMETHOD GetPaperData(PRInt16 *aPaperData) = 0;
259 : NS_SCRIPTABLE NS_IMETHOD SetPaperData(PRInt16 aPaperData) = 0;
260 :
261 : /* attribute double paperWidth; */
262 : NS_SCRIPTABLE NS_IMETHOD GetPaperWidth(double *aPaperWidth) = 0;
263 : NS_SCRIPTABLE NS_IMETHOD SetPaperWidth(double aPaperWidth) = 0;
264 :
265 : /* attribute double paperHeight; */
266 : NS_SCRIPTABLE NS_IMETHOD GetPaperHeight(double *aPaperHeight) = 0;
267 : NS_SCRIPTABLE NS_IMETHOD SetPaperHeight(double aPaperHeight) = 0;
268 :
269 : /* attribute short paperSizeUnit; */
270 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) = 0;
271 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) = 0;
272 :
273 : /* attribute wstring plexName; */
274 : NS_SCRIPTABLE NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) = 0;
275 : NS_SCRIPTABLE NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) = 0;
276 :
277 : /* attribute wstring colorspace; */
278 : NS_SCRIPTABLE NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) = 0;
279 : NS_SCRIPTABLE NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) = 0;
280 :
281 : /* attribute wstring resolutionName; */
282 : NS_SCRIPTABLE NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) = 0;
283 : NS_SCRIPTABLE NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) = 0;
284 :
285 : /* attribute boolean downloadFonts; */
286 : NS_SCRIPTABLE NS_IMETHOD GetDownloadFonts(bool *aDownloadFonts) = 0;
287 : NS_SCRIPTABLE NS_IMETHOD SetDownloadFonts(bool aDownloadFonts) = 0;
288 :
289 : /* attribute boolean printReversed; */
290 : NS_SCRIPTABLE NS_IMETHOD GetPrintReversed(bool *aPrintReversed) = 0;
291 : NS_SCRIPTABLE NS_IMETHOD SetPrintReversed(bool aPrintReversed) = 0;
292 :
293 : /* attribute boolean printInColor; */
294 : NS_SCRIPTABLE NS_IMETHOD GetPrintInColor(bool *aPrintInColor) = 0;
295 : NS_SCRIPTABLE NS_IMETHOD SetPrintInColor(bool aPrintInColor) = 0;
296 :
297 : /* attribute long orientation; */
298 : NS_SCRIPTABLE NS_IMETHOD GetOrientation(PRInt32 *aOrientation) = 0;
299 : NS_SCRIPTABLE NS_IMETHOD SetOrientation(PRInt32 aOrientation) = 0;
300 :
301 : /* attribute wstring printCommand; */
302 : NS_SCRIPTABLE NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) = 0;
303 : NS_SCRIPTABLE NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) = 0;
304 :
305 : /* attribute long numCopies; */
306 : NS_SCRIPTABLE NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) = 0;
307 : NS_SCRIPTABLE NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) = 0;
308 :
309 : /* attribute wstring printerName; */
310 : NS_SCRIPTABLE NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) = 0;
311 : NS_SCRIPTABLE NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) = 0;
312 :
313 : /* attribute boolean printToFile; */
314 : NS_SCRIPTABLE NS_IMETHOD GetPrintToFile(bool *aPrintToFile) = 0;
315 : NS_SCRIPTABLE NS_IMETHOD SetPrintToFile(bool aPrintToFile) = 0;
316 :
317 : /* attribute wstring toFileName; */
318 : NS_SCRIPTABLE NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) = 0;
319 : NS_SCRIPTABLE NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) = 0;
320 :
321 : /* attribute short outputFormat; */
322 : NS_SCRIPTABLE NS_IMETHOD GetOutputFormat(PRInt16 *aOutputFormat) = 0;
323 : NS_SCRIPTABLE NS_IMETHOD SetOutputFormat(PRInt16 aOutputFormat) = 0;
324 :
325 : /* attribute long printPageDelay; */
326 : NS_SCRIPTABLE NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) = 0;
327 : NS_SCRIPTABLE NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) = 0;
328 :
329 : /* attribute boolean isInitializedFromPrinter; */
330 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter) = 0;
331 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter) = 0;
332 :
333 : /* attribute boolean isInitializedFromPrefs; */
334 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs) = 0;
335 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs) = 0;
336 :
337 : /* [noscript] void SetMarginInTwips (in nsNativeIntMarginRef aMargin); */
338 : NS_IMETHOD SetMarginInTwips(nsIntMargin & aMargin) = 0;
339 :
340 : /* [noscript] void SetEdgeInTwips (in nsNativeIntMarginRef aEdge); */
341 : NS_IMETHOD SetEdgeInTwips(nsIntMargin & aEdge) = 0;
342 :
343 : /* [noscript] void GetMarginInTwips (in nsNativeIntMarginRef aMargin); */
344 : NS_IMETHOD GetMarginInTwips(nsIntMargin & aMargin) = 0;
345 :
346 : /* [noscript] void GetEdgeInTwips (in nsNativeIntMarginRef aEdge); */
347 : NS_IMETHOD GetEdgeInTwips(nsIntMargin & aEdge) = 0;
348 :
349 : /* [noscript] void SetupSilentPrinting (); */
350 : NS_IMETHOD SetupSilentPrinting(void) = 0;
351 :
352 : /* [noscript] void SetUnwriteableMarginInTwips (in nsNativeIntMarginRef aEdge); */
353 : NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin & aEdge) = 0;
354 :
355 : /* [noscript] void GetUnwriteableMarginInTwips (in nsNativeIntMarginRef aEdge); */
356 : NS_IMETHOD GetUnwriteableMarginInTwips(nsIntMargin & aEdge) = 0;
357 :
358 : /* [noscript] void GetPageRanges (in IntegerArray aPages); */
359 : NS_IMETHOD GetPageRanges(nsTArray<PRInt32> & aPages) = 0;
360 :
361 : };
362 :
363 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintSettings, NS_IPRINTSETTINGS_IID)
364 :
365 : /* Use this macro when declaring classes that implement this interface. */
366 : #define NS_DECL_NSIPRINTSETTINGS \
367 : NS_SCRIPTABLE NS_IMETHOD SetPrintOptions(PRInt32 aType, bool aTurnOnOff); \
368 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptions(PRInt32 aType, bool *_retval NS_OUTPARAM); \
369 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval NS_OUTPARAM); \
370 : NS_SCRIPTABLE NS_IMETHOD GetEffectivePageSize(double *aWidth NS_OUTPARAM, double *aHeight NS_OUTPARAM); \
371 : NS_SCRIPTABLE NS_IMETHOD Clone(nsIPrintSettings * *_retval NS_OUTPARAM); \
372 : NS_SCRIPTABLE NS_IMETHOD Assign(nsIPrintSettings *aPS); \
373 : NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession); \
374 : NS_IMETHOD SetPrintSession(nsIPrintSession *aPrintSession); \
375 : NS_SCRIPTABLE NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange); \
376 : NS_SCRIPTABLE NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange); \
377 : NS_SCRIPTABLE NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange); \
378 : NS_SCRIPTABLE NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange); \
379 : NS_SCRIPTABLE NS_IMETHOD GetEdgeTop(double *aEdgeTop); \
380 : NS_SCRIPTABLE NS_IMETHOD SetEdgeTop(double aEdgeTop); \
381 : NS_SCRIPTABLE NS_IMETHOD GetEdgeLeft(double *aEdgeLeft); \
382 : NS_SCRIPTABLE NS_IMETHOD SetEdgeLeft(double aEdgeLeft); \
383 : NS_SCRIPTABLE NS_IMETHOD GetEdgeBottom(double *aEdgeBottom); \
384 : NS_SCRIPTABLE NS_IMETHOD SetEdgeBottom(double aEdgeBottom); \
385 : NS_SCRIPTABLE NS_IMETHOD GetEdgeRight(double *aEdgeRight); \
386 : NS_SCRIPTABLE NS_IMETHOD SetEdgeRight(double aEdgeRight); \
387 : NS_SCRIPTABLE NS_IMETHOD GetMarginTop(double *aMarginTop); \
388 : NS_SCRIPTABLE NS_IMETHOD SetMarginTop(double aMarginTop); \
389 : NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(double *aMarginLeft); \
390 : NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(double aMarginLeft); \
391 : NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(double *aMarginBottom); \
392 : NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(double aMarginBottom); \
393 : NS_SCRIPTABLE NS_IMETHOD GetMarginRight(double *aMarginRight); \
394 : NS_SCRIPTABLE NS_IMETHOD SetMarginRight(double aMarginRight); \
395 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginTop(double *aUnwriteableMarginTop); \
396 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop); \
397 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft); \
398 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft); \
399 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom); \
400 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom); \
401 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginRight(double *aUnwriteableMarginRight); \
402 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight); \
403 : NS_SCRIPTABLE NS_IMETHOD GetScaling(double *aScaling); \
404 : NS_SCRIPTABLE NS_IMETHOD SetScaling(double aScaling); \
405 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGColors(bool *aPrintBGColors); \
406 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGColors(bool aPrintBGColors); \
407 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGImages(bool *aPrintBGImages); \
408 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGImages(bool aPrintBGImages); \
409 : NS_SCRIPTABLE NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange); \
410 : NS_SCRIPTABLE NS_IMETHOD SetPrintRange(PRInt16 aPrintRange); \
411 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
412 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle); \
413 : NS_SCRIPTABLE NS_IMETHOD GetDocURL(PRUnichar * *aDocURL); \
414 : NS_SCRIPTABLE NS_IMETHOD SetDocURL(const PRUnichar * aDocURL); \
415 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft); \
416 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft); \
417 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter); \
418 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter); \
419 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight); \
420 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight); \
421 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft); \
422 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft); \
423 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter); \
424 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter); \
425 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight); \
426 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight); \
427 : NS_SCRIPTABLE NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI); \
428 : NS_SCRIPTABLE NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI); \
429 : NS_SCRIPTABLE NS_IMETHOD GetIsCancelled(bool *aIsCancelled); \
430 : NS_SCRIPTABLE NS_IMETHOD SetIsCancelled(bool aIsCancelled); \
431 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage); \
432 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage); \
433 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType); \
434 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType); \
435 : NS_SCRIPTABLE NS_IMETHOD GetPrintSilent(bool *aPrintSilent); \
436 : NS_SCRIPTABLE NS_IMETHOD SetPrintSilent(bool aPrintSilent); \
437 : NS_SCRIPTABLE NS_IMETHOD GetShrinkToFit(bool *aShrinkToFit); \
438 : NS_SCRIPTABLE NS_IMETHOD SetShrinkToFit(bool aShrinkToFit); \
439 : NS_SCRIPTABLE NS_IMETHOD GetShowPrintProgress(bool *aShowPrintProgress); \
440 : NS_SCRIPTABLE NS_IMETHOD SetShowPrintProgress(bool aShowPrintProgress); \
441 : NS_SCRIPTABLE NS_IMETHOD GetPaperName(PRUnichar * *aPaperName); \
442 : NS_SCRIPTABLE NS_IMETHOD SetPaperName(const PRUnichar * aPaperName); \
443 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType); \
444 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType); \
445 : NS_SCRIPTABLE NS_IMETHOD GetPaperData(PRInt16 *aPaperData); \
446 : NS_SCRIPTABLE NS_IMETHOD SetPaperData(PRInt16 aPaperData); \
447 : NS_SCRIPTABLE NS_IMETHOD GetPaperWidth(double *aPaperWidth); \
448 : NS_SCRIPTABLE NS_IMETHOD SetPaperWidth(double aPaperWidth); \
449 : NS_SCRIPTABLE NS_IMETHOD GetPaperHeight(double *aPaperHeight); \
450 : NS_SCRIPTABLE NS_IMETHOD SetPaperHeight(double aPaperHeight); \
451 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit); \
452 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit); \
453 : NS_SCRIPTABLE NS_IMETHOD GetPlexName(PRUnichar * *aPlexName); \
454 : NS_SCRIPTABLE NS_IMETHOD SetPlexName(const PRUnichar * aPlexName); \
455 : NS_SCRIPTABLE NS_IMETHOD GetColorspace(PRUnichar * *aColorspace); \
456 : NS_SCRIPTABLE NS_IMETHOD SetColorspace(const PRUnichar * aColorspace); \
457 : NS_SCRIPTABLE NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName); \
458 : NS_SCRIPTABLE NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName); \
459 : NS_SCRIPTABLE NS_IMETHOD GetDownloadFonts(bool *aDownloadFonts); \
460 : NS_SCRIPTABLE NS_IMETHOD SetDownloadFonts(bool aDownloadFonts); \
461 : NS_SCRIPTABLE NS_IMETHOD GetPrintReversed(bool *aPrintReversed); \
462 : NS_SCRIPTABLE NS_IMETHOD SetPrintReversed(bool aPrintReversed); \
463 : NS_SCRIPTABLE NS_IMETHOD GetPrintInColor(bool *aPrintInColor); \
464 : NS_SCRIPTABLE NS_IMETHOD SetPrintInColor(bool aPrintInColor); \
465 : NS_SCRIPTABLE NS_IMETHOD GetOrientation(PRInt32 *aOrientation); \
466 : NS_SCRIPTABLE NS_IMETHOD SetOrientation(PRInt32 aOrientation); \
467 : NS_SCRIPTABLE NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand); \
468 : NS_SCRIPTABLE NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand); \
469 : NS_SCRIPTABLE NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies); \
470 : NS_SCRIPTABLE NS_IMETHOD SetNumCopies(PRInt32 aNumCopies); \
471 : NS_SCRIPTABLE NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName); \
472 : NS_SCRIPTABLE NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName); \
473 : NS_SCRIPTABLE NS_IMETHOD GetPrintToFile(bool *aPrintToFile); \
474 : NS_SCRIPTABLE NS_IMETHOD SetPrintToFile(bool aPrintToFile); \
475 : NS_SCRIPTABLE NS_IMETHOD GetToFileName(PRUnichar * *aToFileName); \
476 : NS_SCRIPTABLE NS_IMETHOD SetToFileName(const PRUnichar * aToFileName); \
477 : NS_SCRIPTABLE NS_IMETHOD GetOutputFormat(PRInt16 *aOutputFormat); \
478 : NS_SCRIPTABLE NS_IMETHOD SetOutputFormat(PRInt16 aOutputFormat); \
479 : NS_SCRIPTABLE NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay); \
480 : NS_SCRIPTABLE NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay); \
481 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter); \
482 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter); \
483 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs); \
484 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs); \
485 : NS_IMETHOD SetMarginInTwips(nsIntMargin & aMargin); \
486 : NS_IMETHOD SetEdgeInTwips(nsIntMargin & aEdge); \
487 : NS_IMETHOD GetMarginInTwips(nsIntMargin & aMargin); \
488 : NS_IMETHOD GetEdgeInTwips(nsIntMargin & aEdge); \
489 : NS_IMETHOD SetupSilentPrinting(void); \
490 : NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin & aEdge); \
491 : NS_IMETHOD GetUnwriteableMarginInTwips(nsIntMargin & aEdge); \
492 : NS_IMETHOD GetPageRanges(nsTArray<PRInt32> & aPages);
493 :
494 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
495 : #define NS_FORWARD_NSIPRINTSETTINGS(_to) \
496 : NS_SCRIPTABLE NS_IMETHOD SetPrintOptions(PRInt32 aType, bool aTurnOnOff) { return _to SetPrintOptions(aType, aTurnOnOff); } \
497 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptions(PRInt32 aType, bool *_retval NS_OUTPARAM) { return _to GetPrintOptions(aType, _retval); } \
498 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval NS_OUTPARAM) { return _to GetPrintOptionsBits(_retval); } \
499 : NS_SCRIPTABLE NS_IMETHOD GetEffectivePageSize(double *aWidth NS_OUTPARAM, double *aHeight NS_OUTPARAM) { return _to GetEffectivePageSize(aWidth, aHeight); } \
500 : NS_SCRIPTABLE NS_IMETHOD Clone(nsIPrintSettings * *_retval NS_OUTPARAM) { return _to Clone(_retval); } \
501 : NS_SCRIPTABLE NS_IMETHOD Assign(nsIPrintSettings *aPS) { return _to Assign(aPS); } \
502 : NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) { return _to GetPrintSession(aPrintSession); } \
503 : NS_IMETHOD SetPrintSession(nsIPrintSession *aPrintSession) { return _to SetPrintSession(aPrintSession); } \
504 : NS_SCRIPTABLE NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) { return _to GetStartPageRange(aStartPageRange); } \
505 : NS_SCRIPTABLE NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) { return _to SetStartPageRange(aStartPageRange); } \
506 : NS_SCRIPTABLE NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) { return _to GetEndPageRange(aEndPageRange); } \
507 : NS_SCRIPTABLE NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) { return _to SetEndPageRange(aEndPageRange); } \
508 : NS_SCRIPTABLE NS_IMETHOD GetEdgeTop(double *aEdgeTop) { return _to GetEdgeTop(aEdgeTop); } \
509 : NS_SCRIPTABLE NS_IMETHOD SetEdgeTop(double aEdgeTop) { return _to SetEdgeTop(aEdgeTop); } \
510 : NS_SCRIPTABLE NS_IMETHOD GetEdgeLeft(double *aEdgeLeft) { return _to GetEdgeLeft(aEdgeLeft); } \
511 : NS_SCRIPTABLE NS_IMETHOD SetEdgeLeft(double aEdgeLeft) { return _to SetEdgeLeft(aEdgeLeft); } \
512 : NS_SCRIPTABLE NS_IMETHOD GetEdgeBottom(double *aEdgeBottom) { return _to GetEdgeBottom(aEdgeBottom); } \
513 : NS_SCRIPTABLE NS_IMETHOD SetEdgeBottom(double aEdgeBottom) { return _to SetEdgeBottom(aEdgeBottom); } \
514 : NS_SCRIPTABLE NS_IMETHOD GetEdgeRight(double *aEdgeRight) { return _to GetEdgeRight(aEdgeRight); } \
515 : NS_SCRIPTABLE NS_IMETHOD SetEdgeRight(double aEdgeRight) { return _to SetEdgeRight(aEdgeRight); } \
516 : NS_SCRIPTABLE NS_IMETHOD GetMarginTop(double *aMarginTop) { return _to GetMarginTop(aMarginTop); } \
517 : NS_SCRIPTABLE NS_IMETHOD SetMarginTop(double aMarginTop) { return _to SetMarginTop(aMarginTop); } \
518 : NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(double *aMarginLeft) { return _to GetMarginLeft(aMarginLeft); } \
519 : NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(double aMarginLeft) { return _to SetMarginLeft(aMarginLeft); } \
520 : NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(double *aMarginBottom) { return _to GetMarginBottom(aMarginBottom); } \
521 : NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(double aMarginBottom) { return _to SetMarginBottom(aMarginBottom); } \
522 : NS_SCRIPTABLE NS_IMETHOD GetMarginRight(double *aMarginRight) { return _to GetMarginRight(aMarginRight); } \
523 : NS_SCRIPTABLE NS_IMETHOD SetMarginRight(double aMarginRight) { return _to SetMarginRight(aMarginRight); } \
524 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginTop(double *aUnwriteableMarginTop) { return _to GetUnwriteableMarginTop(aUnwriteableMarginTop); } \
525 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop) { return _to SetUnwriteableMarginTop(aUnwriteableMarginTop); } \
526 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft) { return _to GetUnwriteableMarginLeft(aUnwriteableMarginLeft); } \
527 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft) { return _to SetUnwriteableMarginLeft(aUnwriteableMarginLeft); } \
528 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom) { return _to GetUnwriteableMarginBottom(aUnwriteableMarginBottom); } \
529 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom) { return _to SetUnwriteableMarginBottom(aUnwriteableMarginBottom); } \
530 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginRight(double *aUnwriteableMarginRight) { return _to GetUnwriteableMarginRight(aUnwriteableMarginRight); } \
531 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight) { return _to SetUnwriteableMarginRight(aUnwriteableMarginRight); } \
532 : NS_SCRIPTABLE NS_IMETHOD GetScaling(double *aScaling) { return _to GetScaling(aScaling); } \
533 : NS_SCRIPTABLE NS_IMETHOD SetScaling(double aScaling) { return _to SetScaling(aScaling); } \
534 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGColors(bool *aPrintBGColors) { return _to GetPrintBGColors(aPrintBGColors); } \
535 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGColors(bool aPrintBGColors) { return _to SetPrintBGColors(aPrintBGColors); } \
536 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGImages(bool *aPrintBGImages) { return _to GetPrintBGImages(aPrintBGImages); } \
537 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGImages(bool aPrintBGImages) { return _to SetPrintBGImages(aPrintBGImages); } \
538 : NS_SCRIPTABLE NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) { return _to GetPrintRange(aPrintRange); } \
539 : NS_SCRIPTABLE NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) { return _to SetPrintRange(aPrintRange); } \
540 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
541 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); } \
542 : NS_SCRIPTABLE NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) { return _to GetDocURL(aDocURL); } \
543 : NS_SCRIPTABLE NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) { return _to SetDocURL(aDocURL); } \
544 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) { return _to GetHeaderStrLeft(aHeaderStrLeft); } \
545 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) { return _to SetHeaderStrLeft(aHeaderStrLeft); } \
546 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) { return _to GetHeaderStrCenter(aHeaderStrCenter); } \
547 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) { return _to SetHeaderStrCenter(aHeaderStrCenter); } \
548 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) { return _to GetHeaderStrRight(aHeaderStrRight); } \
549 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) { return _to SetHeaderStrRight(aHeaderStrRight); } \
550 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) { return _to GetFooterStrLeft(aFooterStrLeft); } \
551 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) { return _to SetFooterStrLeft(aFooterStrLeft); } \
552 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) { return _to GetFooterStrCenter(aFooterStrCenter); } \
553 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) { return _to SetFooterStrCenter(aFooterStrCenter); } \
554 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) { return _to GetFooterStrRight(aFooterStrRight); } \
555 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) { return _to SetFooterStrRight(aFooterStrRight); } \
556 : NS_SCRIPTABLE NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) { return _to GetHowToEnableFrameUI(aHowToEnableFrameUI); } \
557 : NS_SCRIPTABLE NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) { return _to SetHowToEnableFrameUI(aHowToEnableFrameUI); } \
558 : NS_SCRIPTABLE NS_IMETHOD GetIsCancelled(bool *aIsCancelled) { return _to GetIsCancelled(aIsCancelled); } \
559 : NS_SCRIPTABLE NS_IMETHOD SetIsCancelled(bool aIsCancelled) { return _to SetIsCancelled(aIsCancelled); } \
560 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) { return _to GetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
561 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) { return _to SetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
562 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) { return _to GetPrintFrameType(aPrintFrameType); } \
563 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) { return _to SetPrintFrameType(aPrintFrameType); } \
564 : NS_SCRIPTABLE NS_IMETHOD GetPrintSilent(bool *aPrintSilent) { return _to GetPrintSilent(aPrintSilent); } \
565 : NS_SCRIPTABLE NS_IMETHOD SetPrintSilent(bool aPrintSilent) { return _to SetPrintSilent(aPrintSilent); } \
566 : NS_SCRIPTABLE NS_IMETHOD GetShrinkToFit(bool *aShrinkToFit) { return _to GetShrinkToFit(aShrinkToFit); } \
567 : NS_SCRIPTABLE NS_IMETHOD SetShrinkToFit(bool aShrinkToFit) { return _to SetShrinkToFit(aShrinkToFit); } \
568 : NS_SCRIPTABLE NS_IMETHOD GetShowPrintProgress(bool *aShowPrintProgress) { return _to GetShowPrintProgress(aShowPrintProgress); } \
569 : NS_SCRIPTABLE NS_IMETHOD SetShowPrintProgress(bool aShowPrintProgress) { return _to SetShowPrintProgress(aShowPrintProgress); } \
570 : NS_SCRIPTABLE NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) { return _to GetPaperName(aPaperName); } \
571 : NS_SCRIPTABLE NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) { return _to SetPaperName(aPaperName); } \
572 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) { return _to GetPaperSizeType(aPaperSizeType); } \
573 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) { return _to SetPaperSizeType(aPaperSizeType); } \
574 : NS_SCRIPTABLE NS_IMETHOD GetPaperData(PRInt16 *aPaperData) { return _to GetPaperData(aPaperData); } \
575 : NS_SCRIPTABLE NS_IMETHOD SetPaperData(PRInt16 aPaperData) { return _to SetPaperData(aPaperData); } \
576 : NS_SCRIPTABLE NS_IMETHOD GetPaperWidth(double *aPaperWidth) { return _to GetPaperWidth(aPaperWidth); } \
577 : NS_SCRIPTABLE NS_IMETHOD SetPaperWidth(double aPaperWidth) { return _to SetPaperWidth(aPaperWidth); } \
578 : NS_SCRIPTABLE NS_IMETHOD GetPaperHeight(double *aPaperHeight) { return _to GetPaperHeight(aPaperHeight); } \
579 : NS_SCRIPTABLE NS_IMETHOD SetPaperHeight(double aPaperHeight) { return _to SetPaperHeight(aPaperHeight); } \
580 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) { return _to GetPaperSizeUnit(aPaperSizeUnit); } \
581 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) { return _to SetPaperSizeUnit(aPaperSizeUnit); } \
582 : NS_SCRIPTABLE NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) { return _to GetPlexName(aPlexName); } \
583 : NS_SCRIPTABLE NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) { return _to SetPlexName(aPlexName); } \
584 : NS_SCRIPTABLE NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) { return _to GetColorspace(aColorspace); } \
585 : NS_SCRIPTABLE NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) { return _to SetColorspace(aColorspace); } \
586 : NS_SCRIPTABLE NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) { return _to GetResolutionName(aResolutionName); } \
587 : NS_SCRIPTABLE NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) { return _to SetResolutionName(aResolutionName); } \
588 : NS_SCRIPTABLE NS_IMETHOD GetDownloadFonts(bool *aDownloadFonts) { return _to GetDownloadFonts(aDownloadFonts); } \
589 : NS_SCRIPTABLE NS_IMETHOD SetDownloadFonts(bool aDownloadFonts) { return _to SetDownloadFonts(aDownloadFonts); } \
590 : NS_SCRIPTABLE NS_IMETHOD GetPrintReversed(bool *aPrintReversed) { return _to GetPrintReversed(aPrintReversed); } \
591 : NS_SCRIPTABLE NS_IMETHOD SetPrintReversed(bool aPrintReversed) { return _to SetPrintReversed(aPrintReversed); } \
592 : NS_SCRIPTABLE NS_IMETHOD GetPrintInColor(bool *aPrintInColor) { return _to GetPrintInColor(aPrintInColor); } \
593 : NS_SCRIPTABLE NS_IMETHOD SetPrintInColor(bool aPrintInColor) { return _to SetPrintInColor(aPrintInColor); } \
594 : NS_SCRIPTABLE NS_IMETHOD GetOrientation(PRInt32 *aOrientation) { return _to GetOrientation(aOrientation); } \
595 : NS_SCRIPTABLE NS_IMETHOD SetOrientation(PRInt32 aOrientation) { return _to SetOrientation(aOrientation); } \
596 : NS_SCRIPTABLE NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) { return _to GetPrintCommand(aPrintCommand); } \
597 : NS_SCRIPTABLE NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) { return _to SetPrintCommand(aPrintCommand); } \
598 : NS_SCRIPTABLE NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) { return _to GetNumCopies(aNumCopies); } \
599 : NS_SCRIPTABLE NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) { return _to SetNumCopies(aNumCopies); } \
600 : NS_SCRIPTABLE NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) { return _to GetPrinterName(aPrinterName); } \
601 : NS_SCRIPTABLE NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) { return _to SetPrinterName(aPrinterName); } \
602 : NS_SCRIPTABLE NS_IMETHOD GetPrintToFile(bool *aPrintToFile) { return _to GetPrintToFile(aPrintToFile); } \
603 : NS_SCRIPTABLE NS_IMETHOD SetPrintToFile(bool aPrintToFile) { return _to SetPrintToFile(aPrintToFile); } \
604 : NS_SCRIPTABLE NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) { return _to GetToFileName(aToFileName); } \
605 : NS_SCRIPTABLE NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) { return _to SetToFileName(aToFileName); } \
606 : NS_SCRIPTABLE NS_IMETHOD GetOutputFormat(PRInt16 *aOutputFormat) { return _to GetOutputFormat(aOutputFormat); } \
607 : NS_SCRIPTABLE NS_IMETHOD SetOutputFormat(PRInt16 aOutputFormat) { return _to SetOutputFormat(aOutputFormat); } \
608 : NS_SCRIPTABLE NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) { return _to GetPrintPageDelay(aPrintPageDelay); } \
609 : NS_SCRIPTABLE NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) { return _to SetPrintPageDelay(aPrintPageDelay); } \
610 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter) { return _to GetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
611 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter) { return _to SetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
612 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs) { return _to GetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
613 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs) { return _to SetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
614 : NS_IMETHOD SetMarginInTwips(nsIntMargin & aMargin) { return _to SetMarginInTwips(aMargin); } \
615 : NS_IMETHOD SetEdgeInTwips(nsIntMargin & aEdge) { return _to SetEdgeInTwips(aEdge); } \
616 : NS_IMETHOD GetMarginInTwips(nsIntMargin & aMargin) { return _to GetMarginInTwips(aMargin); } \
617 : NS_IMETHOD GetEdgeInTwips(nsIntMargin & aEdge) { return _to GetEdgeInTwips(aEdge); } \
618 : NS_IMETHOD SetupSilentPrinting(void) { return _to SetupSilentPrinting(); } \
619 : NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin & aEdge) { return _to SetUnwriteableMarginInTwips(aEdge); } \
620 : NS_IMETHOD GetUnwriteableMarginInTwips(nsIntMargin & aEdge) { return _to GetUnwriteableMarginInTwips(aEdge); } \
621 : NS_IMETHOD GetPageRanges(nsTArray<PRInt32> & aPages) { return _to GetPageRanges(aPages); }
622 :
623 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
624 : #define NS_FORWARD_SAFE_NSIPRINTSETTINGS(_to) \
625 : NS_SCRIPTABLE NS_IMETHOD SetPrintOptions(PRInt32 aType, bool aTurnOnOff) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintOptions(aType, aTurnOnOff); } \
626 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptions(PRInt32 aType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintOptions(aType, _retval); } \
627 : NS_SCRIPTABLE NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintOptionsBits(_retval); } \
628 : NS_SCRIPTABLE NS_IMETHOD GetEffectivePageSize(double *aWidth NS_OUTPARAM, double *aHeight NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectivePageSize(aWidth, aHeight); } \
629 : NS_SCRIPTABLE NS_IMETHOD Clone(nsIPrintSettings * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
630 : NS_SCRIPTABLE NS_IMETHOD Assign(nsIPrintSettings *aPS) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assign(aPS); } \
631 : NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintSession(aPrintSession); } \
632 : NS_IMETHOD SetPrintSession(nsIPrintSession *aPrintSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintSession(aPrintSession); } \
633 : NS_SCRIPTABLE NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartPageRange(aStartPageRange); } \
634 : NS_SCRIPTABLE NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartPageRange(aStartPageRange); } \
635 : NS_SCRIPTABLE NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndPageRange(aEndPageRange); } \
636 : NS_SCRIPTABLE NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndPageRange(aEndPageRange); } \
637 : NS_SCRIPTABLE NS_IMETHOD GetEdgeTop(double *aEdgeTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEdgeTop(aEdgeTop); } \
638 : NS_SCRIPTABLE NS_IMETHOD SetEdgeTop(double aEdgeTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEdgeTop(aEdgeTop); } \
639 : NS_SCRIPTABLE NS_IMETHOD GetEdgeLeft(double *aEdgeLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEdgeLeft(aEdgeLeft); } \
640 : NS_SCRIPTABLE NS_IMETHOD SetEdgeLeft(double aEdgeLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEdgeLeft(aEdgeLeft); } \
641 : NS_SCRIPTABLE NS_IMETHOD GetEdgeBottom(double *aEdgeBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEdgeBottom(aEdgeBottom); } \
642 : NS_SCRIPTABLE NS_IMETHOD SetEdgeBottom(double aEdgeBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEdgeBottom(aEdgeBottom); } \
643 : NS_SCRIPTABLE NS_IMETHOD GetEdgeRight(double *aEdgeRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEdgeRight(aEdgeRight); } \
644 : NS_SCRIPTABLE NS_IMETHOD SetEdgeRight(double aEdgeRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEdgeRight(aEdgeRight); } \
645 : NS_SCRIPTABLE NS_IMETHOD GetMarginTop(double *aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginTop(aMarginTop); } \
646 : NS_SCRIPTABLE NS_IMETHOD SetMarginTop(double aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginTop(aMarginTop); } \
647 : NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(double *aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginLeft(aMarginLeft); } \
648 : NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(double aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginLeft(aMarginLeft); } \
649 : NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(double *aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginBottom(aMarginBottom); } \
650 : NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(double aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginBottom(aMarginBottom); } \
651 : NS_SCRIPTABLE NS_IMETHOD GetMarginRight(double *aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginRight(aMarginRight); } \
652 : NS_SCRIPTABLE NS_IMETHOD SetMarginRight(double aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginRight(aMarginRight); } \
653 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginTop(double *aUnwriteableMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnwriteableMarginTop(aUnwriteableMarginTop); } \
654 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnwriteableMarginTop(aUnwriteableMarginTop); } \
655 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnwriteableMarginLeft(aUnwriteableMarginLeft); } \
656 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnwriteableMarginLeft(aUnwriteableMarginLeft); } \
657 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnwriteableMarginBottom(aUnwriteableMarginBottom); } \
658 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnwriteableMarginBottom(aUnwriteableMarginBottom); } \
659 : NS_SCRIPTABLE NS_IMETHOD GetUnwriteableMarginRight(double *aUnwriteableMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnwriteableMarginRight(aUnwriteableMarginRight); } \
660 : NS_SCRIPTABLE NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnwriteableMarginRight(aUnwriteableMarginRight); } \
661 : NS_SCRIPTABLE NS_IMETHOD GetScaling(double *aScaling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScaling(aScaling); } \
662 : NS_SCRIPTABLE NS_IMETHOD SetScaling(double aScaling) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScaling(aScaling); } \
663 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGColors(bool *aPrintBGColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintBGColors(aPrintBGColors); } \
664 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGColors(bool aPrintBGColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintBGColors(aPrintBGColors); } \
665 : NS_SCRIPTABLE NS_IMETHOD GetPrintBGImages(bool *aPrintBGImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintBGImages(aPrintBGImages); } \
666 : NS_SCRIPTABLE NS_IMETHOD SetPrintBGImages(bool aPrintBGImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintBGImages(aPrintBGImages); } \
667 : NS_SCRIPTABLE NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintRange(aPrintRange); } \
668 : NS_SCRIPTABLE NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintRange(aPrintRange); } \
669 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
670 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
671 : NS_SCRIPTABLE NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocURL(aDocURL); } \
672 : NS_SCRIPTABLE NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocURL(aDocURL); } \
673 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrLeft(aHeaderStrLeft); } \
674 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrLeft(aHeaderStrLeft); } \
675 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrCenter(aHeaderStrCenter); } \
676 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrCenter(aHeaderStrCenter); } \
677 : NS_SCRIPTABLE NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrRight(aHeaderStrRight); } \
678 : NS_SCRIPTABLE NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrRight(aHeaderStrRight); } \
679 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrLeft(aFooterStrLeft); } \
680 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrLeft(aFooterStrLeft); } \
681 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrCenter(aFooterStrCenter); } \
682 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrCenter(aFooterStrCenter); } \
683 : NS_SCRIPTABLE NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrRight(aFooterStrRight); } \
684 : NS_SCRIPTABLE NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrRight(aFooterStrRight); } \
685 : NS_SCRIPTABLE NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHowToEnableFrameUI(aHowToEnableFrameUI); } \
686 : NS_SCRIPTABLE NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHowToEnableFrameUI(aHowToEnableFrameUI); } \
687 : NS_SCRIPTABLE NS_IMETHOD GetIsCancelled(bool *aIsCancelled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCancelled(aIsCancelled); } \
688 : NS_SCRIPTABLE NS_IMETHOD SetIsCancelled(bool aIsCancelled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCancelled(aIsCancelled); } \
689 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
690 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
691 : NS_SCRIPTABLE NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrameType(aPrintFrameType); } \
692 : NS_SCRIPTABLE NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintFrameType(aPrintFrameType); } \
693 : NS_SCRIPTABLE NS_IMETHOD GetPrintSilent(bool *aPrintSilent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintSilent(aPrintSilent); } \
694 : NS_SCRIPTABLE NS_IMETHOD SetPrintSilent(bool aPrintSilent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintSilent(aPrintSilent); } \
695 : NS_SCRIPTABLE NS_IMETHOD GetShrinkToFit(bool *aShrinkToFit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShrinkToFit(aShrinkToFit); } \
696 : NS_SCRIPTABLE NS_IMETHOD SetShrinkToFit(bool aShrinkToFit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShrinkToFit(aShrinkToFit); } \
697 : NS_SCRIPTABLE NS_IMETHOD GetShowPrintProgress(bool *aShowPrintProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowPrintProgress(aShowPrintProgress); } \
698 : NS_SCRIPTABLE NS_IMETHOD SetShowPrintProgress(bool aShowPrintProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowPrintProgress(aShowPrintProgress); } \
699 : NS_SCRIPTABLE NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperName(aPaperName); } \
700 : NS_SCRIPTABLE NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperName(aPaperName); } \
701 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperSizeType(aPaperSizeType); } \
702 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperSizeType(aPaperSizeType); } \
703 : NS_SCRIPTABLE NS_IMETHOD GetPaperData(PRInt16 *aPaperData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperData(aPaperData); } \
704 : NS_SCRIPTABLE NS_IMETHOD SetPaperData(PRInt16 aPaperData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperData(aPaperData); } \
705 : NS_SCRIPTABLE NS_IMETHOD GetPaperWidth(double *aPaperWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperWidth(aPaperWidth); } \
706 : NS_SCRIPTABLE NS_IMETHOD SetPaperWidth(double aPaperWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperWidth(aPaperWidth); } \
707 : NS_SCRIPTABLE NS_IMETHOD GetPaperHeight(double *aPaperHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperHeight(aPaperHeight); } \
708 : NS_SCRIPTABLE NS_IMETHOD SetPaperHeight(double aPaperHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperHeight(aPaperHeight); } \
709 : NS_SCRIPTABLE NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperSizeUnit(aPaperSizeUnit); } \
710 : NS_SCRIPTABLE NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperSizeUnit(aPaperSizeUnit); } \
711 : NS_SCRIPTABLE NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlexName(aPlexName); } \
712 : NS_SCRIPTABLE NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPlexName(aPlexName); } \
713 : NS_SCRIPTABLE NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorspace(aColorspace); } \
714 : NS_SCRIPTABLE NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColorspace(aColorspace); } \
715 : NS_SCRIPTABLE NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolutionName(aResolutionName); } \
716 : NS_SCRIPTABLE NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResolutionName(aResolutionName); } \
717 : NS_SCRIPTABLE NS_IMETHOD GetDownloadFonts(bool *aDownloadFonts) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadFonts(aDownloadFonts); } \
718 : NS_SCRIPTABLE NS_IMETHOD SetDownloadFonts(bool aDownloadFonts) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadFonts(aDownloadFonts); } \
719 : NS_SCRIPTABLE NS_IMETHOD GetPrintReversed(bool *aPrintReversed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintReversed(aPrintReversed); } \
720 : NS_SCRIPTABLE NS_IMETHOD SetPrintReversed(bool aPrintReversed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintReversed(aPrintReversed); } \
721 : NS_SCRIPTABLE NS_IMETHOD GetPrintInColor(bool *aPrintInColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintInColor(aPrintInColor); } \
722 : NS_SCRIPTABLE NS_IMETHOD SetPrintInColor(bool aPrintInColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintInColor(aPrintInColor); } \
723 : NS_SCRIPTABLE NS_IMETHOD GetOrientation(PRInt32 *aOrientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrientation(aOrientation); } \
724 : NS_SCRIPTABLE NS_IMETHOD SetOrientation(PRInt32 aOrientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOrientation(aOrientation); } \
725 : NS_SCRIPTABLE NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintCommand(aPrintCommand); } \
726 : NS_SCRIPTABLE NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintCommand(aPrintCommand); } \
727 : NS_SCRIPTABLE NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumCopies(aNumCopies); } \
728 : NS_SCRIPTABLE NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumCopies(aNumCopies); } \
729 : NS_SCRIPTABLE NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterName(aPrinterName); } \
730 : NS_SCRIPTABLE NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrinterName(aPrinterName); } \
731 : NS_SCRIPTABLE NS_IMETHOD GetPrintToFile(bool *aPrintToFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintToFile(aPrintToFile); } \
732 : NS_SCRIPTABLE NS_IMETHOD SetPrintToFile(bool aPrintToFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintToFile(aPrintToFile); } \
733 : NS_SCRIPTABLE NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToFileName(aToFileName); } \
734 : NS_SCRIPTABLE NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToFileName(aToFileName); } \
735 : NS_SCRIPTABLE NS_IMETHOD GetOutputFormat(PRInt16 *aOutputFormat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutputFormat(aOutputFormat); } \
736 : NS_SCRIPTABLE NS_IMETHOD SetOutputFormat(PRInt16 aOutputFormat) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutputFormat(aOutputFormat); } \
737 : NS_SCRIPTABLE NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintPageDelay(aPrintPageDelay); } \
738 : NS_SCRIPTABLE NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintPageDelay(aPrintPageDelay); } \
739 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
740 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
741 : NS_SCRIPTABLE NS_IMETHOD GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
742 : NS_SCRIPTABLE NS_IMETHOD SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
743 : NS_IMETHOD SetMarginInTwips(nsIntMargin & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginInTwips(aMargin); } \
744 : NS_IMETHOD SetEdgeInTwips(nsIntMargin & aEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEdgeInTwips(aEdge); } \
745 : NS_IMETHOD GetMarginInTwips(nsIntMargin & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginInTwips(aMargin); } \
746 : NS_IMETHOD GetEdgeInTwips(nsIntMargin & aEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEdgeInTwips(aEdge); } \
747 : NS_IMETHOD SetupSilentPrinting(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupSilentPrinting(); } \
748 : NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin & aEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnwriteableMarginInTwips(aEdge); } \
749 : NS_IMETHOD GetUnwriteableMarginInTwips(nsIntMargin & aEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnwriteableMarginInTwips(aEdge); } \
750 : NS_IMETHOD GetPageRanges(nsTArray<PRInt32> & aPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageRanges(aPages); }
751 :
752 : #if 0
753 : /* Use the code below as a template for the implementation class for this interface. */
754 :
755 : /* Header file */
756 : class nsPrintSettings : public nsIPrintSettings
757 : {
758 : public:
759 : NS_DECL_ISUPPORTS
760 : NS_DECL_NSIPRINTSETTINGS
761 :
762 : nsPrintSettings();
763 :
764 : private:
765 : ~nsPrintSettings();
766 :
767 : protected:
768 : /* additional members */
769 : };
770 :
771 : /* Implementation file */
772 : NS_IMPL_ISUPPORTS1(nsPrintSettings, nsIPrintSettings)
773 :
774 : nsPrintSettings::nsPrintSettings()
775 : {
776 : /* member initializers and constructor code */
777 : }
778 :
779 : nsPrintSettings::~nsPrintSettings()
780 : {
781 : /* destructor code */
782 : }
783 :
784 : /* void SetPrintOptions (in PRInt32 aType, in boolean aTurnOnOff); */
785 : NS_IMETHODIMP nsPrintSettings::SetPrintOptions(PRInt32 aType, bool aTurnOnOff)
786 : {
787 : return NS_ERROR_NOT_IMPLEMENTED;
788 : }
789 :
790 : /* boolean GetPrintOptions (in PRInt32 aType); */
791 : NS_IMETHODIMP nsPrintSettings::GetPrintOptions(PRInt32 aType, bool *_retval NS_OUTPARAM)
792 : {
793 : return NS_ERROR_NOT_IMPLEMENTED;
794 : }
795 :
796 : /* PRInt32 GetPrintOptionsBits (); */
797 : NS_IMETHODIMP nsPrintSettings::GetPrintOptionsBits(PRInt32 *_retval NS_OUTPARAM)
798 : {
799 : return NS_ERROR_NOT_IMPLEMENTED;
800 : }
801 :
802 : /* void GetEffectivePageSize (out double aWidth, out double aHeight); */
803 : NS_IMETHODIMP nsPrintSettings::GetEffectivePageSize(double *aWidth NS_OUTPARAM, double *aHeight NS_OUTPARAM)
804 : {
805 : return NS_ERROR_NOT_IMPLEMENTED;
806 : }
807 :
808 : /* nsIPrintSettings clone (); */
809 : NS_IMETHODIMP nsPrintSettings::Clone(nsIPrintSettings * *_retval NS_OUTPARAM)
810 : {
811 : return NS_ERROR_NOT_IMPLEMENTED;
812 : }
813 :
814 : /* void assign (in nsIPrintSettings aPS); */
815 : NS_IMETHODIMP nsPrintSettings::Assign(nsIPrintSettings *aPS)
816 : {
817 : return NS_ERROR_NOT_IMPLEMENTED;
818 : }
819 :
820 : /* [noscript] attribute nsIPrintSession printSession; */
821 : NS_IMETHODIMP nsPrintSettings::GetPrintSession(nsIPrintSession * *aPrintSession)
822 : {
823 : return NS_ERROR_NOT_IMPLEMENTED;
824 : }
825 : NS_IMETHODIMP nsPrintSettings::SetPrintSession(nsIPrintSession *aPrintSession)
826 : {
827 : return NS_ERROR_NOT_IMPLEMENTED;
828 : }
829 :
830 : /* attribute long startPageRange; */
831 : NS_IMETHODIMP nsPrintSettings::GetStartPageRange(PRInt32 *aStartPageRange)
832 : {
833 : return NS_ERROR_NOT_IMPLEMENTED;
834 : }
835 : NS_IMETHODIMP nsPrintSettings::SetStartPageRange(PRInt32 aStartPageRange)
836 : {
837 : return NS_ERROR_NOT_IMPLEMENTED;
838 : }
839 :
840 : /* attribute long endPageRange; */
841 : NS_IMETHODIMP nsPrintSettings::GetEndPageRange(PRInt32 *aEndPageRange)
842 : {
843 : return NS_ERROR_NOT_IMPLEMENTED;
844 : }
845 : NS_IMETHODIMP nsPrintSettings::SetEndPageRange(PRInt32 aEndPageRange)
846 : {
847 : return NS_ERROR_NOT_IMPLEMENTED;
848 : }
849 :
850 : /* attribute double edgeTop; */
851 : NS_IMETHODIMP nsPrintSettings::GetEdgeTop(double *aEdgeTop)
852 : {
853 : return NS_ERROR_NOT_IMPLEMENTED;
854 : }
855 : NS_IMETHODIMP nsPrintSettings::SetEdgeTop(double aEdgeTop)
856 : {
857 : return NS_ERROR_NOT_IMPLEMENTED;
858 : }
859 :
860 : /* attribute double edgeLeft; */
861 : NS_IMETHODIMP nsPrintSettings::GetEdgeLeft(double *aEdgeLeft)
862 : {
863 : return NS_ERROR_NOT_IMPLEMENTED;
864 : }
865 : NS_IMETHODIMP nsPrintSettings::SetEdgeLeft(double aEdgeLeft)
866 : {
867 : return NS_ERROR_NOT_IMPLEMENTED;
868 : }
869 :
870 : /* attribute double edgeBottom; */
871 : NS_IMETHODIMP nsPrintSettings::GetEdgeBottom(double *aEdgeBottom)
872 : {
873 : return NS_ERROR_NOT_IMPLEMENTED;
874 : }
875 : NS_IMETHODIMP nsPrintSettings::SetEdgeBottom(double aEdgeBottom)
876 : {
877 : return NS_ERROR_NOT_IMPLEMENTED;
878 : }
879 :
880 : /* attribute double edgeRight; */
881 : NS_IMETHODIMP nsPrintSettings::GetEdgeRight(double *aEdgeRight)
882 : {
883 : return NS_ERROR_NOT_IMPLEMENTED;
884 : }
885 : NS_IMETHODIMP nsPrintSettings::SetEdgeRight(double aEdgeRight)
886 : {
887 : return NS_ERROR_NOT_IMPLEMENTED;
888 : }
889 :
890 : /* attribute double marginTop; */
891 : NS_IMETHODIMP nsPrintSettings::GetMarginTop(double *aMarginTop)
892 : {
893 : return NS_ERROR_NOT_IMPLEMENTED;
894 : }
895 : NS_IMETHODIMP nsPrintSettings::SetMarginTop(double aMarginTop)
896 : {
897 : return NS_ERROR_NOT_IMPLEMENTED;
898 : }
899 :
900 : /* attribute double marginLeft; */
901 : NS_IMETHODIMP nsPrintSettings::GetMarginLeft(double *aMarginLeft)
902 : {
903 : return NS_ERROR_NOT_IMPLEMENTED;
904 : }
905 : NS_IMETHODIMP nsPrintSettings::SetMarginLeft(double aMarginLeft)
906 : {
907 : return NS_ERROR_NOT_IMPLEMENTED;
908 : }
909 :
910 : /* attribute double marginBottom; */
911 : NS_IMETHODIMP nsPrintSettings::GetMarginBottom(double *aMarginBottom)
912 : {
913 : return NS_ERROR_NOT_IMPLEMENTED;
914 : }
915 : NS_IMETHODIMP nsPrintSettings::SetMarginBottom(double aMarginBottom)
916 : {
917 : return NS_ERROR_NOT_IMPLEMENTED;
918 : }
919 :
920 : /* attribute double marginRight; */
921 : NS_IMETHODIMP nsPrintSettings::GetMarginRight(double *aMarginRight)
922 : {
923 : return NS_ERROR_NOT_IMPLEMENTED;
924 : }
925 : NS_IMETHODIMP nsPrintSettings::SetMarginRight(double aMarginRight)
926 : {
927 : return NS_ERROR_NOT_IMPLEMENTED;
928 : }
929 :
930 : /* attribute double unwriteableMarginTop; */
931 : NS_IMETHODIMP nsPrintSettings::GetUnwriteableMarginTop(double *aUnwriteableMarginTop)
932 : {
933 : return NS_ERROR_NOT_IMPLEMENTED;
934 : }
935 : NS_IMETHODIMP nsPrintSettings::SetUnwriteableMarginTop(double aUnwriteableMarginTop)
936 : {
937 : return NS_ERROR_NOT_IMPLEMENTED;
938 : }
939 :
940 : /* attribute double unwriteableMarginLeft; */
941 : NS_IMETHODIMP nsPrintSettings::GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft)
942 : {
943 : return NS_ERROR_NOT_IMPLEMENTED;
944 : }
945 : NS_IMETHODIMP nsPrintSettings::SetUnwriteableMarginLeft(double aUnwriteableMarginLeft)
946 : {
947 : return NS_ERROR_NOT_IMPLEMENTED;
948 : }
949 :
950 : /* attribute double unwriteableMarginBottom; */
951 : NS_IMETHODIMP nsPrintSettings::GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom)
952 : {
953 : return NS_ERROR_NOT_IMPLEMENTED;
954 : }
955 : NS_IMETHODIMP nsPrintSettings::SetUnwriteableMarginBottom(double aUnwriteableMarginBottom)
956 : {
957 : return NS_ERROR_NOT_IMPLEMENTED;
958 : }
959 :
960 : /* attribute double unwriteableMarginRight; */
961 : NS_IMETHODIMP nsPrintSettings::GetUnwriteableMarginRight(double *aUnwriteableMarginRight)
962 : {
963 : return NS_ERROR_NOT_IMPLEMENTED;
964 : }
965 : NS_IMETHODIMP nsPrintSettings::SetUnwriteableMarginRight(double aUnwriteableMarginRight)
966 : {
967 : return NS_ERROR_NOT_IMPLEMENTED;
968 : }
969 :
970 : /* attribute double scaling; */
971 : NS_IMETHODIMP nsPrintSettings::GetScaling(double *aScaling)
972 : {
973 : return NS_ERROR_NOT_IMPLEMENTED;
974 : }
975 : NS_IMETHODIMP nsPrintSettings::SetScaling(double aScaling)
976 : {
977 : return NS_ERROR_NOT_IMPLEMENTED;
978 : }
979 :
980 : /* attribute boolean printBGColors; */
981 : NS_IMETHODIMP nsPrintSettings::GetPrintBGColors(bool *aPrintBGColors)
982 : {
983 : return NS_ERROR_NOT_IMPLEMENTED;
984 : }
985 : NS_IMETHODIMP nsPrintSettings::SetPrintBGColors(bool aPrintBGColors)
986 : {
987 : return NS_ERROR_NOT_IMPLEMENTED;
988 : }
989 :
990 : /* attribute boolean printBGImages; */
991 : NS_IMETHODIMP nsPrintSettings::GetPrintBGImages(bool *aPrintBGImages)
992 : {
993 : return NS_ERROR_NOT_IMPLEMENTED;
994 : }
995 : NS_IMETHODIMP nsPrintSettings::SetPrintBGImages(bool aPrintBGImages)
996 : {
997 : return NS_ERROR_NOT_IMPLEMENTED;
998 : }
999 :
1000 : /* attribute short printRange; */
1001 : NS_IMETHODIMP nsPrintSettings::GetPrintRange(PRInt16 *aPrintRange)
1002 : {
1003 : return NS_ERROR_NOT_IMPLEMENTED;
1004 : }
1005 : NS_IMETHODIMP nsPrintSettings::SetPrintRange(PRInt16 aPrintRange)
1006 : {
1007 : return NS_ERROR_NOT_IMPLEMENTED;
1008 : }
1009 :
1010 : /* attribute wstring title; */
1011 : NS_IMETHODIMP nsPrintSettings::GetTitle(PRUnichar * *aTitle)
1012 : {
1013 : return NS_ERROR_NOT_IMPLEMENTED;
1014 : }
1015 : NS_IMETHODIMP nsPrintSettings::SetTitle(const PRUnichar * aTitle)
1016 : {
1017 : return NS_ERROR_NOT_IMPLEMENTED;
1018 : }
1019 :
1020 : /* attribute wstring docURL; */
1021 : NS_IMETHODIMP nsPrintSettings::GetDocURL(PRUnichar * *aDocURL)
1022 : {
1023 : return NS_ERROR_NOT_IMPLEMENTED;
1024 : }
1025 : NS_IMETHODIMP nsPrintSettings::SetDocURL(const PRUnichar * aDocURL)
1026 : {
1027 : return NS_ERROR_NOT_IMPLEMENTED;
1028 : }
1029 :
1030 : /* attribute wstring headerStrLeft; */
1031 : NS_IMETHODIMP nsPrintSettings::GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft)
1032 : {
1033 : return NS_ERROR_NOT_IMPLEMENTED;
1034 : }
1035 : NS_IMETHODIMP nsPrintSettings::SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft)
1036 : {
1037 : return NS_ERROR_NOT_IMPLEMENTED;
1038 : }
1039 :
1040 : /* attribute wstring headerStrCenter; */
1041 : NS_IMETHODIMP nsPrintSettings::GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter)
1042 : {
1043 : return NS_ERROR_NOT_IMPLEMENTED;
1044 : }
1045 : NS_IMETHODIMP nsPrintSettings::SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter)
1046 : {
1047 : return NS_ERROR_NOT_IMPLEMENTED;
1048 : }
1049 :
1050 : /* attribute wstring headerStrRight; */
1051 : NS_IMETHODIMP nsPrintSettings::GetHeaderStrRight(PRUnichar * *aHeaderStrRight)
1052 : {
1053 : return NS_ERROR_NOT_IMPLEMENTED;
1054 : }
1055 : NS_IMETHODIMP nsPrintSettings::SetHeaderStrRight(const PRUnichar * aHeaderStrRight)
1056 : {
1057 : return NS_ERROR_NOT_IMPLEMENTED;
1058 : }
1059 :
1060 : /* attribute wstring footerStrLeft; */
1061 : NS_IMETHODIMP nsPrintSettings::GetFooterStrLeft(PRUnichar * *aFooterStrLeft)
1062 : {
1063 : return NS_ERROR_NOT_IMPLEMENTED;
1064 : }
1065 : NS_IMETHODIMP nsPrintSettings::SetFooterStrLeft(const PRUnichar * aFooterStrLeft)
1066 : {
1067 : return NS_ERROR_NOT_IMPLEMENTED;
1068 : }
1069 :
1070 : /* attribute wstring footerStrCenter; */
1071 : NS_IMETHODIMP nsPrintSettings::GetFooterStrCenter(PRUnichar * *aFooterStrCenter)
1072 : {
1073 : return NS_ERROR_NOT_IMPLEMENTED;
1074 : }
1075 : NS_IMETHODIMP nsPrintSettings::SetFooterStrCenter(const PRUnichar * aFooterStrCenter)
1076 : {
1077 : return NS_ERROR_NOT_IMPLEMENTED;
1078 : }
1079 :
1080 : /* attribute wstring footerStrRight; */
1081 : NS_IMETHODIMP nsPrintSettings::GetFooterStrRight(PRUnichar * *aFooterStrRight)
1082 : {
1083 : return NS_ERROR_NOT_IMPLEMENTED;
1084 : }
1085 : NS_IMETHODIMP nsPrintSettings::SetFooterStrRight(const PRUnichar * aFooterStrRight)
1086 : {
1087 : return NS_ERROR_NOT_IMPLEMENTED;
1088 : }
1089 :
1090 : /* attribute short howToEnableFrameUI; */
1091 : NS_IMETHODIMP nsPrintSettings::GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI)
1092 : {
1093 : return NS_ERROR_NOT_IMPLEMENTED;
1094 : }
1095 : NS_IMETHODIMP nsPrintSettings::SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI)
1096 : {
1097 : return NS_ERROR_NOT_IMPLEMENTED;
1098 : }
1099 :
1100 : /* attribute boolean isCancelled; */
1101 : NS_IMETHODIMP nsPrintSettings::GetIsCancelled(bool *aIsCancelled)
1102 : {
1103 : return NS_ERROR_NOT_IMPLEMENTED;
1104 : }
1105 : NS_IMETHODIMP nsPrintSettings::SetIsCancelled(bool aIsCancelled)
1106 : {
1107 : return NS_ERROR_NOT_IMPLEMENTED;
1108 : }
1109 :
1110 : /* attribute short printFrameTypeUsage; */
1111 : NS_IMETHODIMP nsPrintSettings::GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage)
1112 : {
1113 : return NS_ERROR_NOT_IMPLEMENTED;
1114 : }
1115 : NS_IMETHODIMP nsPrintSettings::SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage)
1116 : {
1117 : return NS_ERROR_NOT_IMPLEMENTED;
1118 : }
1119 :
1120 : /* attribute short printFrameType; */
1121 : NS_IMETHODIMP nsPrintSettings::GetPrintFrameType(PRInt16 *aPrintFrameType)
1122 : {
1123 : return NS_ERROR_NOT_IMPLEMENTED;
1124 : }
1125 : NS_IMETHODIMP nsPrintSettings::SetPrintFrameType(PRInt16 aPrintFrameType)
1126 : {
1127 : return NS_ERROR_NOT_IMPLEMENTED;
1128 : }
1129 :
1130 : /* attribute boolean printSilent; */
1131 : NS_IMETHODIMP nsPrintSettings::GetPrintSilent(bool *aPrintSilent)
1132 : {
1133 : return NS_ERROR_NOT_IMPLEMENTED;
1134 : }
1135 : NS_IMETHODIMP nsPrintSettings::SetPrintSilent(bool aPrintSilent)
1136 : {
1137 : return NS_ERROR_NOT_IMPLEMENTED;
1138 : }
1139 :
1140 : /* attribute boolean shrinkToFit; */
1141 : NS_IMETHODIMP nsPrintSettings::GetShrinkToFit(bool *aShrinkToFit)
1142 : {
1143 : return NS_ERROR_NOT_IMPLEMENTED;
1144 : }
1145 : NS_IMETHODIMP nsPrintSettings::SetShrinkToFit(bool aShrinkToFit)
1146 : {
1147 : return NS_ERROR_NOT_IMPLEMENTED;
1148 : }
1149 :
1150 : /* attribute boolean showPrintProgress; */
1151 : NS_IMETHODIMP nsPrintSettings::GetShowPrintProgress(bool *aShowPrintProgress)
1152 : {
1153 : return NS_ERROR_NOT_IMPLEMENTED;
1154 : }
1155 : NS_IMETHODIMP nsPrintSettings::SetShowPrintProgress(bool aShowPrintProgress)
1156 : {
1157 : return NS_ERROR_NOT_IMPLEMENTED;
1158 : }
1159 :
1160 : /* attribute wstring paperName; */
1161 : NS_IMETHODIMP nsPrintSettings::GetPaperName(PRUnichar * *aPaperName)
1162 : {
1163 : return NS_ERROR_NOT_IMPLEMENTED;
1164 : }
1165 : NS_IMETHODIMP nsPrintSettings::SetPaperName(const PRUnichar * aPaperName)
1166 : {
1167 : return NS_ERROR_NOT_IMPLEMENTED;
1168 : }
1169 :
1170 : /* attribute short paperSizeType; */
1171 : NS_IMETHODIMP nsPrintSettings::GetPaperSizeType(PRInt16 *aPaperSizeType)
1172 : {
1173 : return NS_ERROR_NOT_IMPLEMENTED;
1174 : }
1175 : NS_IMETHODIMP nsPrintSettings::SetPaperSizeType(PRInt16 aPaperSizeType)
1176 : {
1177 : return NS_ERROR_NOT_IMPLEMENTED;
1178 : }
1179 :
1180 : /* attribute short paperData; */
1181 : NS_IMETHODIMP nsPrintSettings::GetPaperData(PRInt16 *aPaperData)
1182 : {
1183 : return NS_ERROR_NOT_IMPLEMENTED;
1184 : }
1185 : NS_IMETHODIMP nsPrintSettings::SetPaperData(PRInt16 aPaperData)
1186 : {
1187 : return NS_ERROR_NOT_IMPLEMENTED;
1188 : }
1189 :
1190 : /* attribute double paperWidth; */
1191 : NS_IMETHODIMP nsPrintSettings::GetPaperWidth(double *aPaperWidth)
1192 : {
1193 : return NS_ERROR_NOT_IMPLEMENTED;
1194 : }
1195 : NS_IMETHODIMP nsPrintSettings::SetPaperWidth(double aPaperWidth)
1196 : {
1197 : return NS_ERROR_NOT_IMPLEMENTED;
1198 : }
1199 :
1200 : /* attribute double paperHeight; */
1201 : NS_IMETHODIMP nsPrintSettings::GetPaperHeight(double *aPaperHeight)
1202 : {
1203 : return NS_ERROR_NOT_IMPLEMENTED;
1204 : }
1205 : NS_IMETHODIMP nsPrintSettings::SetPaperHeight(double aPaperHeight)
1206 : {
1207 : return NS_ERROR_NOT_IMPLEMENTED;
1208 : }
1209 :
1210 : /* attribute short paperSizeUnit; */
1211 : NS_IMETHODIMP nsPrintSettings::GetPaperSizeUnit(PRInt16 *aPaperSizeUnit)
1212 : {
1213 : return NS_ERROR_NOT_IMPLEMENTED;
1214 : }
1215 : NS_IMETHODIMP nsPrintSettings::SetPaperSizeUnit(PRInt16 aPaperSizeUnit)
1216 : {
1217 : return NS_ERROR_NOT_IMPLEMENTED;
1218 : }
1219 :
1220 : /* attribute wstring plexName; */
1221 : NS_IMETHODIMP nsPrintSettings::GetPlexName(PRUnichar * *aPlexName)
1222 : {
1223 : return NS_ERROR_NOT_IMPLEMENTED;
1224 : }
1225 : NS_IMETHODIMP nsPrintSettings::SetPlexName(const PRUnichar * aPlexName)
1226 : {
1227 : return NS_ERROR_NOT_IMPLEMENTED;
1228 : }
1229 :
1230 : /* attribute wstring colorspace; */
1231 : NS_IMETHODIMP nsPrintSettings::GetColorspace(PRUnichar * *aColorspace)
1232 : {
1233 : return NS_ERROR_NOT_IMPLEMENTED;
1234 : }
1235 : NS_IMETHODIMP nsPrintSettings::SetColorspace(const PRUnichar * aColorspace)
1236 : {
1237 : return NS_ERROR_NOT_IMPLEMENTED;
1238 : }
1239 :
1240 : /* attribute wstring resolutionName; */
1241 : NS_IMETHODIMP nsPrintSettings::GetResolutionName(PRUnichar * *aResolutionName)
1242 : {
1243 : return NS_ERROR_NOT_IMPLEMENTED;
1244 : }
1245 : NS_IMETHODIMP nsPrintSettings::SetResolutionName(const PRUnichar * aResolutionName)
1246 : {
1247 : return NS_ERROR_NOT_IMPLEMENTED;
1248 : }
1249 :
1250 : /* attribute boolean downloadFonts; */
1251 : NS_IMETHODIMP nsPrintSettings::GetDownloadFonts(bool *aDownloadFonts)
1252 : {
1253 : return NS_ERROR_NOT_IMPLEMENTED;
1254 : }
1255 : NS_IMETHODIMP nsPrintSettings::SetDownloadFonts(bool aDownloadFonts)
1256 : {
1257 : return NS_ERROR_NOT_IMPLEMENTED;
1258 : }
1259 :
1260 : /* attribute boolean printReversed; */
1261 : NS_IMETHODIMP nsPrintSettings::GetPrintReversed(bool *aPrintReversed)
1262 : {
1263 : return NS_ERROR_NOT_IMPLEMENTED;
1264 : }
1265 : NS_IMETHODIMP nsPrintSettings::SetPrintReversed(bool aPrintReversed)
1266 : {
1267 : return NS_ERROR_NOT_IMPLEMENTED;
1268 : }
1269 :
1270 : /* attribute boolean printInColor; */
1271 : NS_IMETHODIMP nsPrintSettings::GetPrintInColor(bool *aPrintInColor)
1272 : {
1273 : return NS_ERROR_NOT_IMPLEMENTED;
1274 : }
1275 : NS_IMETHODIMP nsPrintSettings::SetPrintInColor(bool aPrintInColor)
1276 : {
1277 : return NS_ERROR_NOT_IMPLEMENTED;
1278 : }
1279 :
1280 : /* attribute long orientation; */
1281 : NS_IMETHODIMP nsPrintSettings::GetOrientation(PRInt32 *aOrientation)
1282 : {
1283 : return NS_ERROR_NOT_IMPLEMENTED;
1284 : }
1285 : NS_IMETHODIMP nsPrintSettings::SetOrientation(PRInt32 aOrientation)
1286 : {
1287 : return NS_ERROR_NOT_IMPLEMENTED;
1288 : }
1289 :
1290 : /* attribute wstring printCommand; */
1291 : NS_IMETHODIMP nsPrintSettings::GetPrintCommand(PRUnichar * *aPrintCommand)
1292 : {
1293 : return NS_ERROR_NOT_IMPLEMENTED;
1294 : }
1295 : NS_IMETHODIMP nsPrintSettings::SetPrintCommand(const PRUnichar * aPrintCommand)
1296 : {
1297 : return NS_ERROR_NOT_IMPLEMENTED;
1298 : }
1299 :
1300 : /* attribute long numCopies; */
1301 : NS_IMETHODIMP nsPrintSettings::GetNumCopies(PRInt32 *aNumCopies)
1302 : {
1303 : return NS_ERROR_NOT_IMPLEMENTED;
1304 : }
1305 : NS_IMETHODIMP nsPrintSettings::SetNumCopies(PRInt32 aNumCopies)
1306 : {
1307 : return NS_ERROR_NOT_IMPLEMENTED;
1308 : }
1309 :
1310 : /* attribute wstring printerName; */
1311 : NS_IMETHODIMP nsPrintSettings::GetPrinterName(PRUnichar * *aPrinterName)
1312 : {
1313 : return NS_ERROR_NOT_IMPLEMENTED;
1314 : }
1315 : NS_IMETHODIMP nsPrintSettings::SetPrinterName(const PRUnichar * aPrinterName)
1316 : {
1317 : return NS_ERROR_NOT_IMPLEMENTED;
1318 : }
1319 :
1320 : /* attribute boolean printToFile; */
1321 : NS_IMETHODIMP nsPrintSettings::GetPrintToFile(bool *aPrintToFile)
1322 : {
1323 : return NS_ERROR_NOT_IMPLEMENTED;
1324 : }
1325 : NS_IMETHODIMP nsPrintSettings::SetPrintToFile(bool aPrintToFile)
1326 : {
1327 : return NS_ERROR_NOT_IMPLEMENTED;
1328 : }
1329 :
1330 : /* attribute wstring toFileName; */
1331 : NS_IMETHODIMP nsPrintSettings::GetToFileName(PRUnichar * *aToFileName)
1332 : {
1333 : return NS_ERROR_NOT_IMPLEMENTED;
1334 : }
1335 : NS_IMETHODIMP nsPrintSettings::SetToFileName(const PRUnichar * aToFileName)
1336 : {
1337 : return NS_ERROR_NOT_IMPLEMENTED;
1338 : }
1339 :
1340 : /* attribute short outputFormat; */
1341 : NS_IMETHODIMP nsPrintSettings::GetOutputFormat(PRInt16 *aOutputFormat)
1342 : {
1343 : return NS_ERROR_NOT_IMPLEMENTED;
1344 : }
1345 : NS_IMETHODIMP nsPrintSettings::SetOutputFormat(PRInt16 aOutputFormat)
1346 : {
1347 : return NS_ERROR_NOT_IMPLEMENTED;
1348 : }
1349 :
1350 : /* attribute long printPageDelay; */
1351 : NS_IMETHODIMP nsPrintSettings::GetPrintPageDelay(PRInt32 *aPrintPageDelay)
1352 : {
1353 : return NS_ERROR_NOT_IMPLEMENTED;
1354 : }
1355 : NS_IMETHODIMP nsPrintSettings::SetPrintPageDelay(PRInt32 aPrintPageDelay)
1356 : {
1357 : return NS_ERROR_NOT_IMPLEMENTED;
1358 : }
1359 :
1360 : /* attribute boolean isInitializedFromPrinter; */
1361 : NS_IMETHODIMP nsPrintSettings::GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter)
1362 : {
1363 : return NS_ERROR_NOT_IMPLEMENTED;
1364 : }
1365 : NS_IMETHODIMP nsPrintSettings::SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter)
1366 : {
1367 : return NS_ERROR_NOT_IMPLEMENTED;
1368 : }
1369 :
1370 : /* attribute boolean isInitializedFromPrefs; */
1371 : NS_IMETHODIMP nsPrintSettings::GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs)
1372 : {
1373 : return NS_ERROR_NOT_IMPLEMENTED;
1374 : }
1375 : NS_IMETHODIMP nsPrintSettings::SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs)
1376 : {
1377 : return NS_ERROR_NOT_IMPLEMENTED;
1378 : }
1379 :
1380 : /* [noscript] void SetMarginInTwips (in nsNativeIntMarginRef aMargin); */
1381 : NS_IMETHODIMP nsPrintSettings::SetMarginInTwips(nsIntMargin & aMargin)
1382 : {
1383 : return NS_ERROR_NOT_IMPLEMENTED;
1384 : }
1385 :
1386 : /* [noscript] void SetEdgeInTwips (in nsNativeIntMarginRef aEdge); */
1387 : NS_IMETHODIMP nsPrintSettings::SetEdgeInTwips(nsIntMargin & aEdge)
1388 : {
1389 : return NS_ERROR_NOT_IMPLEMENTED;
1390 : }
1391 :
1392 : /* [noscript] void GetMarginInTwips (in nsNativeIntMarginRef aMargin); */
1393 : NS_IMETHODIMP nsPrintSettings::GetMarginInTwips(nsIntMargin & aMargin)
1394 : {
1395 : return NS_ERROR_NOT_IMPLEMENTED;
1396 : }
1397 :
1398 : /* [noscript] void GetEdgeInTwips (in nsNativeIntMarginRef aEdge); */
1399 : NS_IMETHODIMP nsPrintSettings::GetEdgeInTwips(nsIntMargin & aEdge)
1400 : {
1401 : return NS_ERROR_NOT_IMPLEMENTED;
1402 : }
1403 :
1404 : /* [noscript] void SetupSilentPrinting (); */
1405 : NS_IMETHODIMP nsPrintSettings::SetupSilentPrinting()
1406 : {
1407 : return NS_ERROR_NOT_IMPLEMENTED;
1408 : }
1409 :
1410 : /* [noscript] void SetUnwriteableMarginInTwips (in nsNativeIntMarginRef aEdge); */
1411 : NS_IMETHODIMP nsPrintSettings::SetUnwriteableMarginInTwips(nsIntMargin & aEdge)
1412 : {
1413 : return NS_ERROR_NOT_IMPLEMENTED;
1414 : }
1415 :
1416 : /* [noscript] void GetUnwriteableMarginInTwips (in nsNativeIntMarginRef aEdge); */
1417 : NS_IMETHODIMP nsPrintSettings::GetUnwriteableMarginInTwips(nsIntMargin & aEdge)
1418 : {
1419 : return NS_ERROR_NOT_IMPLEMENTED;
1420 : }
1421 :
1422 : /* [noscript] void GetPageRanges (in IntegerArray aPages); */
1423 : NS_IMETHODIMP nsPrintSettings::GetPageRanges(nsTArray<PRInt32> & aPages)
1424 : {
1425 : return NS_ERROR_NOT_IMPLEMENTED;
1426 : }
1427 :
1428 : /* End of implementation class template. */
1429 : #endif
1430 :
1431 :
1432 : #endif /* __gen_nsIPrintSettings_h__ */
|