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

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

Issue 17395005: put each generated pdf api class in a file (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__SkPdfStructureTreeRootDictionary 1 #ifndef __DEFINED__SkPdfStructureTreeRootDictionary
2 #define __DEFINED__SkPdfStructureTreeRootDictionary 2 #define __DEFINED__SkPdfStructureTreeRootDictionary
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 class SkPdfStructureTreeRootDictionary : public SkPdfDictionary { 8 class SkPdfStructureTreeRootDictionary : public SkPdfDictionary {
9 public: 9 public:
10 virtual SkPdfObjectType getType() const { return kObjectDictionaryStructureTre eRootDictionary_SkPdfObjectType;} 10 virtual SkPdfObjectType getType() const { return kStructureTreeRootDictionary_ SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectD ictionaryStructureTreeRootDictionary_SkPdfObjectType + 1);} 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructu reTreeRootDictionary_SkPdfObjectType + 1);}
12 public: 12 public:
13 virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {ret urn this;} 13 virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {ret urn this;}
14 virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary( ) const {return this;} 14 virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary( ) const {return this;}
15 15
16 private: 16 private:
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} 17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
18 virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() co nst {return NULL;} 18 virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() co nst {return NULL;}
19 19
20 virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} 20 virtual SkPdfActionDictionary* asActionDictionary() {return NULL;}
21 virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} 21 virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;}
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 SkPdfTree* getIDTreeAsTree() const { 576 SkPdfTree* getIDTreeAsTree() const {
577 SkPdfTree* ret = NULL; 577 SkPdfTree* ret = NULL;
578 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "" , &ret)) return ret; 578 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "" , &ret)) return ret;
579 // TODO(edisonn): warn about missing required field, assert for known good p dfs 579 // TODO(edisonn): warn about missing required field, assert for known good p dfs
580 return NULL; 580 return NULL;
581 } 581 }
582 582
583 bool isParentTreeANumber() const { 583 bool isParentTreeANumber() const {
584 SkPdfObject* ret = NULL; 584 SkPdfObject* ret = NULL;
585 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTr ee", "", &ret)) return false; 585 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTr ee", "", &ret)) return false;
586 return ret->podofo()->GetDataType() == ePdfDataType_Real; 586 return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->G etDataType() == ePdfDataType_Number;
587 } 587 }
588 588
589 double getParentTreeAsNumber() const { 589 double getParentTreeAsNumber() const {
590 double ret = 0; 590 double ret = 0;
591 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTre e", "", &ret)) return ret; 591 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTre e", "", &ret)) return ret;
592 // TODO(edisonn): warn about missing required field, assert for known good p dfs 592 // TODO(edisonn): warn about missing required field, assert for known good p dfs
593 return 0; 593 return 0;
594 } 594 }
595 595
596 bool isParentTreeATree() const { 596 bool isParentTreeATree() const {
(...skipping 26 matching lines...) Expand all
623 SkPdfDictionary* ClassMap() const { 623 SkPdfDictionary* ClassMap() const {
624 SkPdfDictionary* ret; 624 SkPdfDictionary* ret;
625 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Class Map", "", &ret)) return ret; 625 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Class Map", "", &ret)) return ret;
626 // TODO(edisonn): warn about missing required field, assert for known good p dfs 626 // TODO(edisonn): warn about missing required field, assert for known good p dfs
627 return NULL; 627 return NULL;
628 } 628 }
629 629
630 }; 630 };
631 631
632 #endif // __DEFINED__SkPdfStructureTreeRootDictionary 632 #endif // __DEFINED__SkPdfStructureTreeRootDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698