| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfMetadataStreamDictionary | 1 #ifndef __DEFINED__SkPdfMetadataStreamDictionary |
| 2 #define __DEFINED__SkPdfMetadataStreamDictionary | 2 #define __DEFINED__SkPdfMetadataStreamDictionary |
| 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 entries in a metadata stream dictionary | 9 // Additional entries in a metadata stream dictionary |
| 10 class SkPdfMetadataStreamDictionary : public SkPdfDictionary { | 10 class SkPdfMetadataStreamDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfMetadataStreamDictionary& operator=(const SkPdfMetadataStreamDictionary&
from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; r
eturn *this;} | 526 SkPdfMetadataStreamDictionary& operator=(const SkPdfMetadataStreamDictionary&
from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; r
eturn *this;} |
| 527 | 527 |
| 528 /** (Required) The type of PDF object that this dictionary describes; must be Me
tadata | 528 /** (Required) The type of PDF object that this dictionary describes; must be Me
tadata |
| 529 * for a metadata stream. | 529 * for a metadata stream. |
| 530 **/ | 530 **/ |
| 531 bool has_Type() const { | 531 bool has_Type() const { |
| 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); |
| 533 } | 533 } |
| 534 | 534 |
| 535 std::string Type() const { | 535 std::string Type() const; |
| 536 std::string ret; | |
| 537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "",
&ret)) return ret; | |
| 538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 539 return ""; | |
| 540 } | |
| 541 | |
| 542 /** (Required) The type of metadata stream that this dictionary describes; must
be | 536 /** (Required) The type of metadata stream that this dictionary describes; must
be |
| 543 * XML. | 537 * XML. |
| 544 **/ | 538 **/ |
| 545 bool has_Subtype() const { | 539 bool has_Subtype() const { |
| 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
| 547 } | 541 } |
| 548 | 542 |
| 549 std::string Subtype() const { | 543 std::string Subtype() const; |
| 550 std::string ret; | |
| 551 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | |
| 552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 553 return ""; | |
| 554 } | |
| 555 | |
| 556 }; | 544 }; |
| 557 | 545 |
| 558 #endif // __DEFINED__SkPdfMetadataStreamDictionary | 546 #endif // __DEFINED__SkPdfMetadataStreamDictionary |
| OLD | NEW |