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

Side by Side Diff: experimental/PdfViewer/SkPdfFDFTemplateDictionary_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__SkPdfFDFTemplateDictionary 1 #ifndef __DEFINED__SkPdfFDFTemplateDictionary
2 #define __DEFINED__SkPdfFDFTemplateDictionary 2 #define __DEFINED__SkPdfFDFTemplateDictionary
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 an FDF template dictionary
8 class SkPdfFDFTemplateDictionary : public SkPdfDictionary { 9 class SkPdfFDFTemplateDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kFDFTemplateDictionary_SkPdfO bjectType;} 11 virtual SkPdfObjectType getType() const { return kFDFTemplateDictionary_SkPdfO bjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFTemp lateDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFTemp lateDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return this;} 14 virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return this;}
14 virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {ret urn this;} 15 virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {ret urn 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 SkPdfFDFTemplateDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfOb ject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfFDFTemplateDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfOb ject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfFDFTemplateDictionary& operator=(const SkPdfFDFTemplateDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 523 SkPdfFDFTemplateDictionary& operator=(const SkPdfFDFTemplateDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
523 524
525 /** (Required) A named page reference dictionary (see Table 8.76) specifying the
526 * location of the template.
527 **/
528 bool has_TRef() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TRef" , "", NULL));
530 }
531
524 SkPdfDictionary* TRef() const { 532 SkPdfDictionary* TRef() const {
525 SkPdfDictionary* ret; 533 SkPdfDictionary* ret;
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TRef" , "", &ret)) return ret; 534 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TRef" , "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 535 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return NULL; 536 return NULL;
529 } 537 }
530 538
539 /** (Optional) An array of references to FDF field dictionaries (see Table 8.72 on
540 * page 564) describing the root fields to be imported (those with no ancestors in
541 * the field hierarchy).
542 **/
543 bool has_Fields() const {
544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Field s", "", NULL));
545 }
546
531 SkPdfArray Fields() const { 547 SkPdfArray Fields() const {
532 SkPdfArray ret; 548 SkPdfArray ret;
533 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", " ", &ret)) return ret; 549 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", " ", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 550 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return SkPdfArray(); 551 return SkPdfArray();
536 } 552 }
537 553
554 /** (Optional) A flag specifying whether fields imported from the template may b e
555 * renamed in the event of name conflicts with existing fields; see below for f urther
556 * discussion. Default value: true.
557 **/
558 bool has_Rename() const {
559 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Renam e", "", NULL));
560 }
561
538 bool Rename() const { 562 bool Rename() const {
539 bool ret; 563 bool ret;
540 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rename", "" , &ret)) return ret; 564 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rename", "" , &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 565 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return false; 566 return false;
543 } 567 }
544 568
545 }; 569 };
546 570
547 #endif // __DEFINED__SkPdfFDFTemplateDictionary 571 #endif // __DEFINED__SkPdfFDFTemplateDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfFDFPageDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfFDFTrailerDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698