Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary 1 #ifndef __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary
2 #define __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary 2 #define __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary
3 3
4 #include "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Additional entries specific to a trap network appearance stream 9 // Additional entries specific to a trap network appearance stream
10 class SkPdfTrapNetworkAppearanceStreamDictionary : public SkPdfDictionary { 10 class SkPdfTrapNetworkAppearanceStreamDictionary : public SkPdfDictionary {
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 * when this trap network was created; equivalent to the PostScript 529 * when this trap network was created; equivalent to the PostScript
530 * page device parameter ProcessColorModel (see Section 6.2.5 of the 530 * page device parameter ProcessColorModel (see Section 6.2.5 of the
531 * PostScript Language Reference, Third Edition). Valid values are 531 * PostScript Language Reference, Third Edition). Valid values are
532 * DeviceGray, DeviceRGB, DeviceCMYK, DeviceCMY, DeviceRGBK, 532 * DeviceGray, DeviceRGB, DeviceCMYK, DeviceCMY, DeviceRGBK,
533 * and DeviceN. 533 * and DeviceN.
534 **/ 534 **/
535 bool has_PCM() const { 535 bool has_PCM() const {
536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PCM", "", NULL)); 536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PCM", "", NULL));
537 } 537 }
538 538
539 std::string PCM() const { 539 std::string PCM() const;
540 std::string ret;
541 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PCM", "", & ret)) return ret;
542 // TODO(edisonn): warn about missing required field, assert for known good p dfs
543 return "";
544 }
545
546 /** (Optional) An array of names identifying the colorants that were 540 /** (Optional) An array of names identifying the colorants that were
547 * assumed when this network was created; equivalent to the Post- 541 * assumed when this network was created; equivalent to the Post-
548 * Script page device parameter of the same name (see Section 6.2.5 of 542 * Script page device parameter of the same name (see Section 6.2.5 of
549 * the PostScript Language Reference, Third Edition). Colorants im- 543 * the PostScript Language Reference, Third Edition). Colorants im-
550 * plied by the process color model PCM are available automatically 544 * plied by the process color model PCM are available automatically
551 * and need not be explicitly declared. If this entry is absent, the 545 * and need not be explicitly declared. If this entry is absent, the
552 * colorants implied by PCM are assumed. 546 * colorants implied by PCM are assumed.
553 **/ 547 **/
554 bool has_SeparationColorNames() const { 548 bool has_SeparationColorNames() const {
555 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separ ationColorNames", "", NULL)); 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separ ationColorNames", "", NULL));
556 } 550 }
557 551
558 SkPdfArray* SeparationColorNames() const { 552 SkPdfArray* SeparationColorNames() const;
559 SkPdfArray* ret;
560 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separation ColorNames", "", &ret)) return ret;
561 // TODO(edisonn): warn about missing required field, assert for known good p dfs
562 return NULL;
563 }
564
565 /** (Optional) An array of indirect references to TrapRegion objects 553 /** (Optional) An array of indirect references to TrapRegion objects
566 * defining the page's trapping zones and the associated trapping 554 * defining the page's trapping zones and the associated trapping
567 * parameters, as described in Adobe Technical Note #5620, Portable 555 * parameters, as described in Adobe Technical Note #5620, Portable
568 * Job Ticket Format. These references are to objects comprising 556 * Job Ticket Format. These references are to objects comprising
569 * portions of a PJTF job ticket that is embedded in the PDF file. 557 * portions of a PJTF job ticket that is embedded in the PDF file.
570 * When the trapping zones and parameters are defined by an external 558 * When the trapping zones and parameters are defined by an external
571 * job ticket (or by some other means, such as with JDF), this entry is 559 * job ticket (or by some other means, such as with JDF), this entry is
572 * absent. 560 * absent.
573 **/ 561 **/
574 bool has_TrapRegions() const { 562 bool has_TrapRegions() const {
575 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapR egions", "", NULL)); 563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapR egions", "", NULL));
576 } 564 }
577 565
578 SkPdfArray* TrapRegions() const { 566 SkPdfArray* TrapRegions() const;
579 SkPdfArray* ret;
580 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapRegion s", "", &ret)) return ret;
581 // TODO(edisonn): warn about missing required field, assert for known good p dfs
582 return NULL;
583 }
584
585 /** (Optional) A human-readable text string that applications can use 567 /** (Optional) A human-readable text string that applications can use
586 * to describe this trap network to the user (for example, to allow 568 * to describe this trap network to the user (for example, to allow
587 * switching between trap networks). 569 * switching between trap networks).
588 **/ 570 **/
589 bool has_TrapStyles() const { 571 bool has_TrapStyles() const {
590 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapS tyles", "", NULL)); 572 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapS tyles", "", NULL));
591 } 573 }
592 574
593 std::string TrapStyles() const { 575 std::string TrapStyles() const;
594 std::string ret;
595 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapStyle s", "", &ret)) return ret;
596 // TODO(edisonn): warn about missing required field, assert for known good p dfs
597 return "";
598 }
599
600 }; 576 };
601 577
602 #endif // __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary 578 #endif // __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698