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

Side by Side Diff: experimental/PdfViewer/SkPdfBoxColorInformationDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (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__SkPdfBoxColorInformationDictionary 1 #ifndef __DEFINED__SkPdfBoxColorInformationDictionary
2 #define __DEFINED__SkPdfBoxColorInformationDictionary 2 #define __DEFINED__SkPdfBoxColorInformationDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfDictionary_autogen.h" 6 #include "SkPdfDictionary_autogen.h"
7 7
8 // Entries in a box color information dictionary
8 class SkPdfBoxColorInformationDictionary : public SkPdfDictionary { 9 class SkPdfBoxColorInformationDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kBoxColorInformationDictionar y_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kBoxColorInformationDictionar y_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBoxColo rInformationDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBoxColo rInformationDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return this;} 14 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return this;}
14 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDiction ary() const {return this;} 15 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDiction ary() const {return this;}
15 16
16 private: 17 private:
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfBoxColorInformationDictionary(const PdfMemDocument* podofoDoc = NULL, con st PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfBoxColorInformationDictionary(const PdfMemDocument* podofoDoc = NULL, con st PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfBoxColorInformationDictionary& operator=(const SkPdfBoxColorInformationDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;} 523 SkPdfBoxColorInformationDictionary& operator=(const SkPdfBoxColorInformationDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;}
523 524
525 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
526 * tics for displaying guidelines for the page's crop box. This entry is ignore d if no crop
527 * box is defined in the page object.
528 **/
529 bool has_CropBox() const {
530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", NULL));
531 }
532
524 SkPdfDictionary* CropBox() const { 533 SkPdfDictionary* CropBox() const {
525 SkPdfDictionary* ret; 534 SkPdfDictionary* ret;
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", &ret)) return ret; 535 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 536 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return NULL; 537 return NULL;
529 } 538 }
530 539
540 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
541 * tics for displaying guidelines for the page's bleed box. This entry is ignor ed if no
542 * bleed box is defined in the page object.
543 **/
544 bool has_BleedBox() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", NULL));
546 }
547
531 SkPdfDictionary* BleedBox() const { 548 SkPdfDictionary* BleedBox() const {
532 SkPdfDictionary* ret; 549 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", &ret)) return ret; 550 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return NULL; 552 return NULL;
536 } 553 }
537 554
555 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
556 * tics for displaying guidelines for the page's trim box. This entry is ignore d if no trim
557 * box is defined in the page object.
558 **/
559 bool has_TrimBox() const {
560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", NULL));
561 }
562
538 SkPdfDictionary* TrimBox() const { 563 SkPdfDictionary* TrimBox() const {
539 SkPdfDictionary* ret; 564 SkPdfDictionary* ret;
540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", &ret)) return ret; 565 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 566 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL; 567 return NULL;
543 } 568 }
544 569
570 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
571 * tics for displaying guidelines for the page's art box. This entry is ignored if no art
572 * box is defined in the page object.
573 **/
574 bool has_ArtBox() const {
575 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", NULL));
576 }
577
545 SkPdfDictionary* ArtBox() const { 578 SkPdfDictionary* ArtBox() const {
546 SkPdfDictionary* ret; 579 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", &ret)) return ret; 580 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 581 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 582 return NULL;
550 } 583 }
551 584
552 }; 585 };
553 586
554 #endif // __DEFINED__SkPdfBoxColorInformationDictionary 587 #endif // __DEFINED__SkPdfBoxColorInformationDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfBorderStyleDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfBoxStyleDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698