| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfObjectReferenceDictionary | 1 #ifndef __DEFINED__SkPdfObjectReferenceDictionary |
| 2 #define __DEFINED__SkPdfObjectReferenceDictionary | 2 #define __DEFINED__SkPdfObjectReferenceDictionary |
| 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 // Entries in an object reference dictionary | 9 // Entries in an object reference dictionary |
| 10 class SkPdfObjectReferenceDictionary : public SkPdfDictionary { | 10 class SkPdfObjectReferenceDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfObjectReferenceDictionary& operator=(const SkPdfObjectReferenceDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 526 SkPdfObjectReferenceDictionary& operator=(const SkPdfObjectReferenceDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 527 | 527 |
| 528 /** (Required) The type of PDF object that this dictionary describes; must be OB
JR for an | 528 /** (Required) The type of PDF object that this dictionary describes; must be OB
JR for an |
| 529 * object reference. | 529 * object reference. |
| 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 /** (Optional; must be an indirect reference) The page object representing the p
age on | 536 /** (Optional; must be an indirect reference) The page object representing the p
age on |
| 543 * which the object is rendered. This entry overrides any Pg entry in the struc
ture ele- | 537 * which the object is rendered. This entry overrides any Pg entry in the struc
ture ele- |
| 544 * ment containing the object reference; it is required if the structure elemen
t has no such | 538 * ment containing the object reference; it is required if the structure elemen
t has no such |
| 545 * entry. | 539 * entry. |
| 546 **/ | 540 **/ |
| 547 bool has_Pg() const { | 541 bool has_Pg() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg",
"", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg",
"", NULL)); |
| 549 } | 543 } |
| 550 | 544 |
| 551 SkPdfDictionary* Pg() const { | 545 SkPdfDictionary* Pg() const; |
| 552 SkPdfDictionary* ret; | |
| 553 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg",
"", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return NULL; | |
| 556 } | |
| 557 | |
| 558 /** (Required; must be an indirect reference) The referenced object. | 546 /** (Required; must be an indirect reference) The referenced object. |
| 559 **/ | 547 **/ |
| 560 bool has_Obj() const { | 548 bool has_Obj() const { |
| 561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj",
"", NULL)); | 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj",
"", NULL)); |
| 562 } | 550 } |
| 563 | 551 |
| 564 SkPdfObject* Obj() const { | 552 SkPdfObject* Obj() const; |
| 565 SkPdfObject* ret; | |
| 566 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj", "",
&ret)) return ret; | |
| 567 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 568 return NULL; | |
| 569 } | |
| 570 | |
| 571 }; | 553 }; |
| 572 | 554 |
| 573 #endif // __DEFINED__SkPdfObjectReferenceDictionary | 555 #endif // __DEFINED__SkPdfObjectReferenceDictionary |
| OLD | NEW |