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

Side by Side Diff: experimental/PdfViewer/SkPdfFDFPageDictionary_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__SkPdfFDFPageDictionary 1 #ifndef __DEFINED__SkPdfFDFPageDictionary
2 #define __DEFINED__SkPdfFDFPageDictionary 2 #define __DEFINED__SkPdfFDFPageDictionary
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 page dictionary
8 class SkPdfFDFPageDictionary : public SkPdfDictionary { 9 class SkPdfFDFPageDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kFDFPageDictionary_SkPdfObjec tType;} 11 virtual SkPdfObjectType getType() const { return kFDFPageDictionary_SkPdfObjec tType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFPage Dictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFPage Dictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return this;} 14 virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return this;}
14 virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return this ;} 15 virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() 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 SkPdfFDFPageDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject * podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfFDFPageDictionary(const PdfMemDocument* podofoDoc = NULL, const 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 SkPdfFDFPageDictionary& operator=(const SkPdfFDFPageDictionary& from) {this->f PodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 523 SkPdfFDFPageDictionary& operator=(const SkPdfFDFPageDictionary& from) {this->f PodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
523 524
525 /** (Required) An array of FDF template dictionaries (see Table 8.75) describing the
526 * named pages that serve as templates on the page.
527 **/
528 bool has_Templates() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templ ates", "", NULL));
530 }
531
524 SkPdfArray Templates() const { 532 SkPdfArray Templates() const {
525 SkPdfArray ret; 533 SkPdfArray ret;
526 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates" , "", &ret)) return ret; 534 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates" , "", &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 SkPdfArray(); 536 return SkPdfArray();
529 } 537 }
530 538
539 /** (Optional) An FDF page information dictionary containing additional informa-
540 * tion about the page. At the time of publication, no entries have been define d for
541 * this dictionary.
542 **/
543 bool has_Info() const {
544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info" , "", NULL));
545 }
546
531 SkPdfDictionary* Info() const { 547 SkPdfDictionary* Info() const {
532 SkPdfDictionary* ret; 548 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info" , "", &ret)) return ret; 549 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info" , "", &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 NULL; 551 return NULL;
536 } 552 }
537 553
538 }; 554 };
539 555
540 #endif // __DEFINED__SkPdfFDFPageDictionary 556 #endif // __DEFINED__SkPdfFDFPageDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698