| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfGroupAttributesDictionary | 1 #ifndef __DEFINED__SkPdfGroupAttributesDictionary |
| 2 #define __DEFINED__SkPdfGroupAttributesDictionary | 2 #define __DEFINED__SkPdfGroupAttributesDictionary |
| 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 // Entries common to all group attributes dictionaries |
| 8 class SkPdfGroupAttributesDictionary : public SkPdfDictionary { | 9 class SkPdfGroupAttributesDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kGroupAttributesDictionary_Sk
PdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kGroupAttributesDictionary_Sk
PdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGroupAt
tributesDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGroupAt
tributesDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return
this;} | 14 virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return
this;} |
| 14 virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() co
nst {return this;} | 15 virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() co
nst {return this;} |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 public: | 516 public: |
| 516 private: | 517 private: |
| 517 public: | 518 public: |
| 518 SkPdfGroupAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfGroupAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfGroupAttributesDictionary& operator=(const SkPdfGroupAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 523 SkPdfGroupAttributesDictionary& operator=(const SkPdfGroupAttributesDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 523 | 524 |
| 525 /** (Optional) The type of PDF object that this dictionary describes; if present
, must |
| 526 * be Group for a group attributes dictionary. |
| 527 **/ |
| 528 bool has_Type() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); |
| 530 } |
| 531 |
| 524 std::string Type() const { | 532 std::string Type() const { |
| 525 std::string ret; | 533 std::string ret; |
| 526 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "",
&ret)) return ret; | 534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "",
&ret)) return ret; |
| 527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 535 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 528 return ""; | 536 return ""; |
| 529 } | 537 } |
| 530 | 538 |
| 539 /** (Required) The group subtype, which identifies the type of group whose at- |
| 540 * tributes this dictionary describes and determines the format and meaning of
the |
| 541 * dictionary's remaining entries. The only group subtype defined in PDF 1.4 is |
| 542 * Transparency; see Section 7.5.5, "Transparency Group XObjects," for the re- |
| 543 * maining contents of this type of dictionary. Other group subtypes may be add
ed |
| 544 * in the future. |
| 545 **/ |
| 546 bool has_S() const { |
| 547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
| 548 } |
| 549 |
| 531 std::string S() const { | 550 std::string S() const { |
| 532 std::string ret; | 551 std::string ret; |
| 533 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | 552 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 553 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return ""; | 554 return ""; |
| 536 } | 555 } |
| 537 | 556 |
| 538 }; | 557 }; |
| 539 | 558 |
| 540 #endif // __DEFINED__SkPdfGroupAttributesDictionary | 559 #endif // __DEFINED__SkPdfGroupAttributesDictionary |
| OLD | NEW |