| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfComponentsWithMetadataDictionary | 1 #ifndef __DEFINED__SkPdfComponentsWithMetadataDictionary |
| 2 #define __DEFINED__SkPdfComponentsWithMetadataDictionary | 2 #define __DEFINED__SkPdfComponentsWithMetadataDictionary |
| 3 | 3 |
| 4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
| 8 | 8 |
| 9 // Additional entry for components having metadata | 9 // Additional entry for components having metadata |
| 10 class SkPdfComponentsWithMetadataDictionary : public SkPdfDictionary { | 10 class SkPdfComponentsWithMetadataDictionary : public SkPdfDictionary { |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 virtual bool valid() const {return true;} | 524 virtual bool valid() const {return true;} |
| 525 | 525 |
| 526 SkPdfComponentsWithMetadataDictionary& operator=(const SkPdfComponentsWithMeta
dataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr
om.fPodofoObj; return *this;} | 526 SkPdfComponentsWithMetadataDictionary& operator=(const SkPdfComponentsWithMeta
dataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr
om.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Optional; PDF 1.4) A metadata stream containing metadata for the component. | 528 /** (Optional; PDF 1.4) A metadata stream containing metadata for the component. |
| 529 **/ | 529 **/ |
| 530 bool has_Metadata() const { | 530 bool has_Metadata() const { |
| 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad
ata", "", NULL)); | 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad
ata", "", NULL)); |
| 532 } | 532 } |
| 533 | 533 |
| 534 SkPdfStream* Metadata() const { | 534 SkPdfStream* Metadata() const; |
| 535 SkPdfStream* ret; | |
| 536 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata"
, "", &ret)) return ret; | |
| 537 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 538 return NULL; | |
| 539 } | |
| 540 | |
| 541 }; | 535 }; |
| 542 | 536 |
| 543 #endif // __DEFINED__SkPdfComponentsWithMetadataDictionary | 537 #endif // __DEFINED__SkPdfComponentsWithMetadataDictionary |
| OLD | NEW |