Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/embedding/PPrintingTypes.h"
8 :
9 :
10 : //-----------------------------------------------------------------------------
11 : // Method definitions for the IPDL type |struct CStringKeyValue|
12 : //
13 : namespace mozilla {
14 : namespace embedding {
15 0 : MOZ_IMPLICIT CStringKeyValue::CStringKeyValue() :
16 : key_(),
17 0 : value_()
18 : {
19 0 : Init();
20 0 : }
21 :
22 0 : CStringKeyValue::~CStringKeyValue()
23 : {
24 0 : }
25 :
26 0 : auto CStringKeyValue::operator==(const CStringKeyValue& _o) const -> bool
27 : {
28 0 : if ((!((key()) == ((_o).key())))) {
29 0 : return false;
30 : }
31 0 : if ((!((value()) == ((_o).value())))) {
32 0 : return false;
33 : }
34 0 : return true;
35 : }
36 :
37 0 : auto CStringKeyValue::operator!=(const CStringKeyValue& _o) const -> bool
38 : {
39 0 : return (!(operator==(_o)));
40 : }
41 :
42 0 : auto CStringKeyValue::Init() -> void
43 : {
44 0 : }
45 :
46 0 : auto CStringKeyValue::Assign(
47 : const nsCString& _key,
48 : const nsCString& _value) -> void
49 : {
50 0 : key_ = _key;
51 0 : value_ = _value;
52 0 : }
53 :
54 : } // namespace embedding
55 : } // namespace mozilla
56 :
57 : //-----------------------------------------------------------------------------
58 : // Method definitions for the IPDL type |struct PrintData|
59 : //
60 : namespace mozilla {
61 : namespace embedding {
62 0 : MOZ_IMPLICIT PrintData::PrintData() :
63 : startPageRange_(),
64 : endPageRange_(),
65 : edgeTop_(),
66 : edgeLeft_(),
67 : edgeBottom_(),
68 : edgeRight_(),
69 : marginTop_(),
70 : marginLeft_(),
71 : marginBottom_(),
72 : marginRight_(),
73 : unwriteableMarginTop_(),
74 : unwriteableMarginLeft_(),
75 : unwriteableMarginBottom_(),
76 : unwriteableMarginRight_(),
77 : scaling_(),
78 : printBGColors_(),
79 : printBGImages_(),
80 : printRange_(),
81 : title_(),
82 : docURL_(),
83 : headerStrLeft_(),
84 : headerStrCenter_(),
85 : headerStrRight_(),
86 : footerStrLeft_(),
87 : footerStrCenter_(),
88 : footerStrRight_(),
89 : howToEnableFrameUI_(),
90 : isCancelled_(),
91 : printFrameTypeUsage_(),
92 : printFrameType_(),
93 : printSilent_(),
94 : shrinkToFit_(),
95 : showPrintProgress_(),
96 : paperName_(),
97 : paperData_(),
98 : paperWidth_(),
99 : paperHeight_(),
100 : paperSizeUnit_(),
101 : printReversed_(),
102 : printInColor_(),
103 : orientation_(),
104 : numCopies_(),
105 : printerName_(),
106 : printToFile_(),
107 : toFileName_(),
108 : outputFormat_(),
109 : printPageDelay_(),
110 : resolution_(),
111 : duplex_(),
112 : isInitializedFromPrinter_(),
113 : isInitializedFromPrefs_(),
114 : optionFlags_(),
115 : driverName_(),
116 : deviceName_(),
117 : printableWidthInInches_(),
118 : printableHeightInInches_(),
119 : isFramesetDocument_(),
120 : isFramesetFrameSelected_(),
121 : isIFrameSelected_(),
122 : isRangeSelection_(),
123 : printJobName_(),
124 : printAllPages_(),
125 : mustCollate_(),
126 : disposition_(),
127 : pagesAcross_(),
128 : pagesDown_(),
129 : printTime_(),
130 : detailedErrorReporting_(),
131 : faxNumber_(),
132 : addHeaderAndFooter_(),
133 : fileNameExtensionHidden_(),
134 : scalingFactor_(),
135 : widthScale_(),
136 : heightScale_(),
137 : adjustedPaperWidth_(),
138 0 : adjustedPaperHeight_()
139 : {
140 0 : Init();
141 0 : }
142 :
143 0 : PrintData::~PrintData()
144 : {
145 0 : }
146 :
147 0 : auto PrintData::operator==(const PrintData& _o) const -> bool
148 : {
149 0 : if ((!((remotePrintJobParent()) == ((_o).remotePrintJobParent())))) {
150 0 : return false;
151 : }
152 0 : if ((!((remotePrintJobChild()) == ((_o).remotePrintJobChild())))) {
153 0 : return false;
154 : }
155 0 : if ((!((startPageRange()) == ((_o).startPageRange())))) {
156 0 : return false;
157 : }
158 0 : if ((!((endPageRange()) == ((_o).endPageRange())))) {
159 0 : return false;
160 : }
161 0 : if ((!((edgeTop()) == ((_o).edgeTop())))) {
162 0 : return false;
163 : }
164 0 : if ((!((edgeLeft()) == ((_o).edgeLeft())))) {
165 0 : return false;
166 : }
167 0 : if ((!((edgeBottom()) == ((_o).edgeBottom())))) {
168 0 : return false;
169 : }
170 0 : if ((!((edgeRight()) == ((_o).edgeRight())))) {
171 0 : return false;
172 : }
173 0 : if ((!((marginTop()) == ((_o).marginTop())))) {
174 0 : return false;
175 : }
176 0 : if ((!((marginLeft()) == ((_o).marginLeft())))) {
177 0 : return false;
178 : }
179 0 : if ((!((marginBottom()) == ((_o).marginBottom())))) {
180 0 : return false;
181 : }
182 0 : if ((!((marginRight()) == ((_o).marginRight())))) {
183 0 : return false;
184 : }
185 0 : if ((!((unwriteableMarginTop()) == ((_o).unwriteableMarginTop())))) {
186 0 : return false;
187 : }
188 0 : if ((!((unwriteableMarginLeft()) == ((_o).unwriteableMarginLeft())))) {
189 0 : return false;
190 : }
191 0 : if ((!((unwriteableMarginBottom()) == ((_o).unwriteableMarginBottom())))) {
192 0 : return false;
193 : }
194 0 : if ((!((unwriteableMarginRight()) == ((_o).unwriteableMarginRight())))) {
195 0 : return false;
196 : }
197 0 : if ((!((scaling()) == ((_o).scaling())))) {
198 0 : return false;
199 : }
200 0 : if ((!((printBGColors()) == ((_o).printBGColors())))) {
201 0 : return false;
202 : }
203 0 : if ((!((printBGImages()) == ((_o).printBGImages())))) {
204 0 : return false;
205 : }
206 0 : if ((!((printRange()) == ((_o).printRange())))) {
207 0 : return false;
208 : }
209 0 : if ((!((title()) == ((_o).title())))) {
210 0 : return false;
211 : }
212 0 : if ((!((docURL()) == ((_o).docURL())))) {
213 0 : return false;
214 : }
215 0 : if ((!((headerStrLeft()) == ((_o).headerStrLeft())))) {
216 0 : return false;
217 : }
218 0 : if ((!((headerStrCenter()) == ((_o).headerStrCenter())))) {
219 0 : return false;
220 : }
221 0 : if ((!((headerStrRight()) == ((_o).headerStrRight())))) {
222 0 : return false;
223 : }
224 0 : if ((!((footerStrLeft()) == ((_o).footerStrLeft())))) {
225 0 : return false;
226 : }
227 0 : if ((!((footerStrCenter()) == ((_o).footerStrCenter())))) {
228 0 : return false;
229 : }
230 0 : if ((!((footerStrRight()) == ((_o).footerStrRight())))) {
231 0 : return false;
232 : }
233 0 : if ((!((howToEnableFrameUI()) == ((_o).howToEnableFrameUI())))) {
234 0 : return false;
235 : }
236 0 : if ((!((isCancelled()) == ((_o).isCancelled())))) {
237 0 : return false;
238 : }
239 0 : if ((!((printFrameTypeUsage()) == ((_o).printFrameTypeUsage())))) {
240 0 : return false;
241 : }
242 0 : if ((!((printFrameType()) == ((_o).printFrameType())))) {
243 0 : return false;
244 : }
245 0 : if ((!((printSilent()) == ((_o).printSilent())))) {
246 0 : return false;
247 : }
248 0 : if ((!((shrinkToFit()) == ((_o).shrinkToFit())))) {
249 0 : return false;
250 : }
251 0 : if ((!((showPrintProgress()) == ((_o).showPrintProgress())))) {
252 0 : return false;
253 : }
254 0 : if ((!((paperName()) == ((_o).paperName())))) {
255 0 : return false;
256 : }
257 0 : if ((!((paperData()) == ((_o).paperData())))) {
258 0 : return false;
259 : }
260 0 : if ((!((paperWidth()) == ((_o).paperWidth())))) {
261 0 : return false;
262 : }
263 0 : if ((!((paperHeight()) == ((_o).paperHeight())))) {
264 0 : return false;
265 : }
266 0 : if ((!((paperSizeUnit()) == ((_o).paperSizeUnit())))) {
267 0 : return false;
268 : }
269 0 : if ((!((printReversed()) == ((_o).printReversed())))) {
270 0 : return false;
271 : }
272 0 : if ((!((printInColor()) == ((_o).printInColor())))) {
273 0 : return false;
274 : }
275 0 : if ((!((orientation()) == ((_o).orientation())))) {
276 0 : return false;
277 : }
278 0 : if ((!((numCopies()) == ((_o).numCopies())))) {
279 0 : return false;
280 : }
281 0 : if ((!((printerName()) == ((_o).printerName())))) {
282 0 : return false;
283 : }
284 0 : if ((!((printToFile()) == ((_o).printToFile())))) {
285 0 : return false;
286 : }
287 0 : if ((!((toFileName()) == ((_o).toFileName())))) {
288 0 : return false;
289 : }
290 0 : if ((!((outputFormat()) == ((_o).outputFormat())))) {
291 0 : return false;
292 : }
293 0 : if ((!((printPageDelay()) == ((_o).printPageDelay())))) {
294 0 : return false;
295 : }
296 0 : if ((!((resolution()) == ((_o).resolution())))) {
297 0 : return false;
298 : }
299 0 : if ((!((duplex()) == ((_o).duplex())))) {
300 0 : return false;
301 : }
302 0 : if ((!((isInitializedFromPrinter()) == ((_o).isInitializedFromPrinter())))) {
303 0 : return false;
304 : }
305 0 : if ((!((isInitializedFromPrefs()) == ((_o).isInitializedFromPrefs())))) {
306 0 : return false;
307 : }
308 0 : if ((!((optionFlags()) == ((_o).optionFlags())))) {
309 0 : return false;
310 : }
311 0 : if ((!((driverName()) == ((_o).driverName())))) {
312 0 : return false;
313 : }
314 0 : if ((!((deviceName()) == ((_o).deviceName())))) {
315 0 : return false;
316 : }
317 0 : if ((!((printableWidthInInches()) == ((_o).printableWidthInInches())))) {
318 0 : return false;
319 : }
320 0 : if ((!((printableHeightInInches()) == ((_o).printableHeightInInches())))) {
321 0 : return false;
322 : }
323 0 : if ((!((isFramesetDocument()) == ((_o).isFramesetDocument())))) {
324 0 : return false;
325 : }
326 0 : if ((!((isFramesetFrameSelected()) == ((_o).isFramesetFrameSelected())))) {
327 0 : return false;
328 : }
329 0 : if ((!((isIFrameSelected()) == ((_o).isIFrameSelected())))) {
330 0 : return false;
331 : }
332 0 : if ((!((isRangeSelection()) == ((_o).isRangeSelection())))) {
333 0 : return false;
334 : }
335 0 : if ((!((devModeData()) == ((_o).devModeData())))) {
336 0 : return false;
337 : }
338 0 : if ((!((GTKPrintSettings()) == ((_o).GTKPrintSettings())))) {
339 0 : return false;
340 : }
341 0 : if ((!((printJobName()) == ((_o).printJobName())))) {
342 0 : return false;
343 : }
344 0 : if ((!((printAllPages()) == ((_o).printAllPages())))) {
345 0 : return false;
346 : }
347 0 : if ((!((mustCollate()) == ((_o).mustCollate())))) {
348 0 : return false;
349 : }
350 0 : if ((!((disposition()) == ((_o).disposition())))) {
351 0 : return false;
352 : }
353 0 : if ((!((pagesAcross()) == ((_o).pagesAcross())))) {
354 0 : return false;
355 : }
356 0 : if ((!((pagesDown()) == ((_o).pagesDown())))) {
357 0 : return false;
358 : }
359 0 : if ((!((printTime()) == ((_o).printTime())))) {
360 0 : return false;
361 : }
362 0 : if ((!((detailedErrorReporting()) == ((_o).detailedErrorReporting())))) {
363 0 : return false;
364 : }
365 0 : if ((!((faxNumber()) == ((_o).faxNumber())))) {
366 0 : return false;
367 : }
368 0 : if ((!((addHeaderAndFooter()) == ((_o).addHeaderAndFooter())))) {
369 0 : return false;
370 : }
371 0 : if ((!((fileNameExtensionHidden()) == ((_o).fileNameExtensionHidden())))) {
372 0 : return false;
373 : }
374 0 : if ((!((scalingFactor()) == ((_o).scalingFactor())))) {
375 0 : return false;
376 : }
377 0 : if ((!((widthScale()) == ((_o).widthScale())))) {
378 0 : return false;
379 : }
380 0 : if ((!((heightScale()) == ((_o).heightScale())))) {
381 0 : return false;
382 : }
383 0 : if ((!((adjustedPaperWidth()) == ((_o).adjustedPaperWidth())))) {
384 0 : return false;
385 : }
386 0 : if ((!((adjustedPaperHeight()) == ((_o).adjustedPaperHeight())))) {
387 0 : return false;
388 : }
389 0 : return true;
390 : }
391 :
392 0 : auto PrintData::operator!=(const PrintData& _o) const -> bool
393 : {
394 0 : return (!(operator==(_o)));
395 : }
396 :
397 0 : auto PrintData::Init() -> void
398 : {
399 0 : remotePrintJobParent_ = nullptr;
400 0 : remotePrintJobChild_ = nullptr;
401 0 : }
402 :
403 0 : auto PrintData::Assign(
404 : PRemotePrintJobParent* _remotePrintJobParent,
405 : PRemotePrintJobChild* _remotePrintJobChild,
406 : const int32_t& _startPageRange,
407 : const int32_t& _endPageRange,
408 : const double& _edgeTop,
409 : const double& _edgeLeft,
410 : const double& _edgeBottom,
411 : const double& _edgeRight,
412 : const double& _marginTop,
413 : const double& _marginLeft,
414 : const double& _marginBottom,
415 : const double& _marginRight,
416 : const double& _unwriteableMarginTop,
417 : const double& _unwriteableMarginLeft,
418 : const double& _unwriteableMarginBottom,
419 : const double& _unwriteableMarginRight,
420 : const double& _scaling,
421 : const bool& _printBGColors,
422 : const bool& _printBGImages,
423 : const short& _printRange,
424 : const nsString& _title,
425 : const nsString& _docURL,
426 : const nsString& _headerStrLeft,
427 : const nsString& _headerStrCenter,
428 : const nsString& _headerStrRight,
429 : const nsString& _footerStrLeft,
430 : const nsString& _footerStrCenter,
431 : const nsString& _footerStrRight,
432 : const short& _howToEnableFrameUI,
433 : const bool& _isCancelled,
434 : const short& _printFrameTypeUsage,
435 : const short& _printFrameType,
436 : const bool& _printSilent,
437 : const bool& _shrinkToFit,
438 : const bool& _showPrintProgress,
439 : const nsString& _paperName,
440 : const short& _paperData,
441 : const double& _paperWidth,
442 : const double& _paperHeight,
443 : const short& _paperSizeUnit,
444 : const bool& _printReversed,
445 : const bool& _printInColor,
446 : const int32_t& _orientation,
447 : const int32_t& _numCopies,
448 : const nsString& _printerName,
449 : const bool& _printToFile,
450 : const nsString& _toFileName,
451 : const short& _outputFormat,
452 : const int32_t& _printPageDelay,
453 : const int32_t& _resolution,
454 : const int32_t& _duplex,
455 : const bool& _isInitializedFromPrinter,
456 : const bool& _isInitializedFromPrefs,
457 : const int32_t& _optionFlags,
458 : const nsString& _driverName,
459 : const nsString& _deviceName,
460 : const double& _printableWidthInInches,
461 : const double& _printableHeightInInches,
462 : const bool& _isFramesetDocument,
463 : const bool& _isFramesetFrameSelected,
464 : const bool& _isIFrameSelected,
465 : const bool& _isRangeSelection,
466 : const nsTArray<uint8_t>& _devModeData,
467 : const nsTArray<CStringKeyValue>& _GTKPrintSettings,
468 : const nsString& _printJobName,
469 : const bool& _printAllPages,
470 : const bool& _mustCollate,
471 : const nsString& _disposition,
472 : const short& _pagesAcross,
473 : const short& _pagesDown,
474 : const double& _printTime,
475 : const bool& _detailedErrorReporting,
476 : const nsString& _faxNumber,
477 : const bool& _addHeaderAndFooter,
478 : const bool& _fileNameExtensionHidden,
479 : const float& _scalingFactor,
480 : const float& _widthScale,
481 : const float& _heightScale,
482 : const double& _adjustedPaperWidth,
483 : const double& _adjustedPaperHeight) -> void
484 : {
485 0 : remotePrintJobParent_ = _remotePrintJobParent;
486 0 : remotePrintJobChild_ = _remotePrintJobChild;
487 0 : startPageRange_ = _startPageRange;
488 0 : endPageRange_ = _endPageRange;
489 0 : edgeTop_ = _edgeTop;
490 0 : edgeLeft_ = _edgeLeft;
491 0 : edgeBottom_ = _edgeBottom;
492 0 : edgeRight_ = _edgeRight;
493 0 : marginTop_ = _marginTop;
494 0 : marginLeft_ = _marginLeft;
495 0 : marginBottom_ = _marginBottom;
496 0 : marginRight_ = _marginRight;
497 0 : unwriteableMarginTop_ = _unwriteableMarginTop;
498 0 : unwriteableMarginLeft_ = _unwriteableMarginLeft;
499 0 : unwriteableMarginBottom_ = _unwriteableMarginBottom;
500 0 : unwriteableMarginRight_ = _unwriteableMarginRight;
501 0 : scaling_ = _scaling;
502 0 : printBGColors_ = _printBGColors;
503 0 : printBGImages_ = _printBGImages;
504 0 : printRange_ = _printRange;
505 0 : title_ = _title;
506 0 : docURL_ = _docURL;
507 0 : headerStrLeft_ = _headerStrLeft;
508 0 : headerStrCenter_ = _headerStrCenter;
509 0 : headerStrRight_ = _headerStrRight;
510 0 : footerStrLeft_ = _footerStrLeft;
511 0 : footerStrCenter_ = _footerStrCenter;
512 0 : footerStrRight_ = _footerStrRight;
513 0 : howToEnableFrameUI_ = _howToEnableFrameUI;
514 0 : isCancelled_ = _isCancelled;
515 0 : printFrameTypeUsage_ = _printFrameTypeUsage;
516 0 : printFrameType_ = _printFrameType;
517 0 : printSilent_ = _printSilent;
518 0 : shrinkToFit_ = _shrinkToFit;
519 0 : showPrintProgress_ = _showPrintProgress;
520 0 : paperName_ = _paperName;
521 0 : paperData_ = _paperData;
522 0 : paperWidth_ = _paperWidth;
523 0 : paperHeight_ = _paperHeight;
524 0 : paperSizeUnit_ = _paperSizeUnit;
525 0 : printReversed_ = _printReversed;
526 0 : printInColor_ = _printInColor;
527 0 : orientation_ = _orientation;
528 0 : numCopies_ = _numCopies;
529 0 : printerName_ = _printerName;
530 0 : printToFile_ = _printToFile;
531 0 : toFileName_ = _toFileName;
532 0 : outputFormat_ = _outputFormat;
533 0 : printPageDelay_ = _printPageDelay;
534 0 : resolution_ = _resolution;
535 0 : duplex_ = _duplex;
536 0 : isInitializedFromPrinter_ = _isInitializedFromPrinter;
537 0 : isInitializedFromPrefs_ = _isInitializedFromPrefs;
538 0 : optionFlags_ = _optionFlags;
539 0 : driverName_ = _driverName;
540 0 : deviceName_ = _deviceName;
541 0 : printableWidthInInches_ = _printableWidthInInches;
542 0 : printableHeightInInches_ = _printableHeightInInches;
543 0 : isFramesetDocument_ = _isFramesetDocument;
544 0 : isFramesetFrameSelected_ = _isFramesetFrameSelected;
545 0 : isIFrameSelected_ = _isIFrameSelected;
546 0 : isRangeSelection_ = _isRangeSelection;
547 0 : devModeData_ = _devModeData;
548 0 : GTKPrintSettings_ = _GTKPrintSettings;
549 0 : printJobName_ = _printJobName;
550 0 : printAllPages_ = _printAllPages;
551 0 : mustCollate_ = _mustCollate;
552 0 : disposition_ = _disposition;
553 0 : pagesAcross_ = _pagesAcross;
554 0 : pagesDown_ = _pagesDown;
555 0 : printTime_ = _printTime;
556 0 : detailedErrorReporting_ = _detailedErrorReporting;
557 0 : faxNumber_ = _faxNumber;
558 0 : addHeaderAndFooter_ = _addHeaderAndFooter;
559 0 : fileNameExtensionHidden_ = _fileNameExtensionHidden;
560 0 : scalingFactor_ = _scalingFactor;
561 0 : widthScale_ = _widthScale;
562 0 : heightScale_ = _heightScale;
563 0 : adjustedPaperWidth_ = _adjustedPaperWidth;
564 0 : adjustedPaperHeight_ = _adjustedPaperHeight;
565 0 : }
566 :
567 : } // namespace embedding
568 : } // namespace mozilla
|