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

Side by Side Diff: experimental/PdfViewer/SkPdfFDFNamedPageReferenceDictionary_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__SkPdfFDFNamedPageReferenceDictionary 1 #ifndef __DEFINED__SkPdfFDFNamedPageReferenceDictionary
2 #define __DEFINED__SkPdfFDFNamedPageReferenceDictionary 2 #define __DEFINED__SkPdfFDFNamedPageReferenceDictionary
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 named page reference dictionary
8 class SkPdfFDFNamedPageReferenceDictionary : public SkPdfDictionary { 9 class SkPdfFDFNamedPageReferenceDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kFDFNamedPageReferenceDiction ary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kFDFNamedPageReferenceDiction ary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFName dPageReferenceDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFName dPageReferenceDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionar y() {return this;} 14 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionar y() {return this;}
14 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDic tionary() const {return this;} 15 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDic tionary() 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 SkPdfFDFNamedPageReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, c onst PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfFDFNamedPageReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, c onst 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 SkPdfFDFNamedPageReferenceDictionary& operator=(const SkPdfFDFNamedPageReferen ceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;} 523 SkPdfFDFNamedPageReferenceDictionary& operator=(const SkPdfFDFNamedPageReferen ceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;}
523 524
525 /** (Required) The name of the referenced page.
526 **/
527 bool has_Name() const {
528 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name" , "", NULL));
529 }
530
524 std::string Name() const { 531 std::string Name() const {
525 std::string ret; 532 std::string ret;
526 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "" , &ret)) return ret; 533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "" , &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 534 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return ""; 535 return "";
529 } 536 }
530 537
538 /** (Optional) The file containing the named page. If this key is absent, it is
539 * assumed that the page resides in the associated PDF file.
540 **/
541 bool has_F() const {
542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", " ", NULL));
543 }
544
531 SkPdfFileSpec F() const { 545 SkPdfFileSpec F() const {
532 SkPdfFileSpec ret; 546 SkPdfFileSpec ret;
533 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; 547 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 548 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return SkPdfFileSpec(); 549 return SkPdfFileSpec();
536 } 550 }
537 551
538 }; 552 };
539 553
540 #endif // __DEFINED__SkPdfFDFNamedPageReferenceDictionary 554 #endif // __DEFINED__SkPdfFDFNamedPageReferenceDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698