| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfGroupAttributesDictionary | 1 #ifndef __DEFINED__SkPdfGroupAttributesDictionary |
| 2 #define __DEFINED__SkPdfGroupAttributesDictionary | 2 #define __DEFINED__SkPdfGroupAttributesDictionary |
| 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 common to all group attributes dictionaries | 9 // Entries common to all group attributes dictionaries |
| 10 class SkPdfGroupAttributesDictionary : public SkPdfDictionary { | 10 class SkPdfGroupAttributesDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfGroupAttributesDictionary& operator=(const SkPdfGroupAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 526 SkPdfGroupAttributesDictionary& operator=(const SkPdfGroupAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 527 | 527 |
| 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, must | 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, must |
| 529 * be Group for a group attributes dictionary. | 529 * be Group for a group attributes dictionary. |
| 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 group subtype, which identifies the type of group whose at- | 536 /** (Required) The group subtype, which identifies the type of group whose at- |
| 543 * tributes this dictionary describes and determines the format and meaning of
the | 537 * tributes this dictionary describes and determines the format and meaning of
the |
| 544 * dictionary's remaining entries. The only group subtype defined in PDF 1.4 is | 538 * dictionary's remaining entries. The only group subtype defined in PDF 1.4 is |
| 545 * Transparency; see Section 7.5.5, "Transparency Group XObjects," for the re- | 539 * Transparency; see Section 7.5.5, "Transparency Group XObjects," for the re- |
| 546 * maining contents of this type of dictionary. Other group subtypes may be add
ed | 540 * maining contents of this type of dictionary. Other group subtypes may be add
ed |
| 547 * in the future. | 541 * in the future. |
| 548 **/ | 542 **/ |
| 549 bool has_S() const { | 543 bool has_S() const { |
| 550 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); | 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
| 551 } | 545 } |
| 552 | 546 |
| 553 std::string S() const { | 547 std::string S() const; |
| 554 std::string ret; | |
| 555 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | |
| 556 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 557 return ""; | |
| 558 } | |
| 559 | |
| 560 }; | 548 }; |
| 561 | 549 |
| 562 #endif // __DEFINED__SkPdfGroupAttributesDictionary | 550 #endif // __DEFINED__SkPdfGroupAttributesDictionary |
| OLD | NEW |