| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfResourceDictionary | 1 #ifndef __DEFINED__SkPdfResourceDictionary |
| 2 #define __DEFINED__SkPdfResourceDictionary | 2 #define __DEFINED__SkPdfResourceDictionary |
| 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 SkPdfResourceDictionary : public SkPdfDictionary { | 8 class SkPdfResourceDictionary : public SkPdfDictionary { |
| 9 public: | 9 public: |
| 10 virtual SkPdfObjectType getType() const { return kObjectDictionaryResourceDict
ionary_SkPdfObjectType;} | 10 virtual SkPdfObjectType getType() const { return kResourceDictionary_SkPdfObje
ctType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectD
ictionaryResourceDictionary_SkPdfObjectType + 1);} | 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kResourc
eDictionary_SkPdfObjectType + 1);} |
| 12 public: | 12 public: |
| 13 virtual SkPdfResourceDictionary* asResourceDictionary() {return this;} | 13 virtual SkPdfResourceDictionary* asResourceDictionary() {return this;} |
| 14 virtual const SkPdfResourceDictionary* asResourceDictionary() const {return th
is;} | 14 virtual const SkPdfResourceDictionary* asResourceDictionary() const {return th
is;} |
| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 return NULL; | 542 return NULL; |
| 543 } | 543 } |
| 544 | 544 |
| 545 SkPdfDictionary* Shading() const { | 545 SkPdfDictionary* Shading() const { |
| 546 SkPdfDictionary* ret; | 546 SkPdfDictionary* ret; |
| 547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shadi
ng", "", &ret)) return ret; | 547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shadi
ng", "", &ret)) return ret; |
| 548 // 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 |
| 549 return NULL; | 549 return NULL; |
| 550 } | 550 } |
| 551 | 551 |
| 552 SkPdfStream XObject() const { | 552 SkPdfDictionary* XObject() const { |
| 553 SkPdfStream ret; | 553 SkPdfDictionary* ret; |
| 554 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XObject",
"", &ret)) return ret; | 554 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XObje
ct", "", &ret)) return ret; |
| 555 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 555 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 556 return SkPdfStream(); | 556 return NULL; |
| 557 } | 557 } |
| 558 | 558 |
| 559 SkPdfDictionary* Font() const { | 559 SkPdfDictionary* Font() const { |
| 560 SkPdfDictionary* ret; | 560 SkPdfDictionary* ret; |
| 561 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font"
, "", &ret)) return ret; | 561 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font"
, "", &ret)) return ret; |
| 562 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 562 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 563 return NULL; | 563 return NULL; |
| 564 } | 564 } |
| 565 | 565 |
| 566 SkPdfArray ProcSet() const { | 566 SkPdfArray ProcSet() const { |
| 567 SkPdfArray ret; | 567 SkPdfArray ret; |
| 568 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ProcSet",
"", &ret)) return ret; | 568 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ProcSet",
"", &ret)) return ret; |
| 569 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 569 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 570 return SkPdfArray(); | 570 return SkPdfArray(); |
| 571 } | 571 } |
| 572 | 572 |
| 573 SkPdfDictionary* Properties() const { | 573 SkPdfDictionary* Properties() const { |
| 574 SkPdfDictionary* ret; | 574 SkPdfDictionary* ret; |
| 575 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prope
rties", "", &ret)) return ret; | 575 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prope
rties", "", &ret)) return ret; |
| 576 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 576 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 577 return NULL; | 577 return NULL; |
| 578 } | 578 } |
| 579 | 579 |
| 580 }; | 580 }; |
| 581 | 581 |
| 582 #endif // __DEFINED__SkPdfResourceDictionary | 582 #endif // __DEFINED__SkPdfResourceDictionary |
| OLD | NEW |