| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfEmbeddedFileStreamDictionary | 1 #ifndef __DEFINED__SkPdfEmbeddedFileStreamDictionary |
| 2 #define __DEFINED__SkPdfEmbeddedFileStreamDictionary | 2 #define __DEFINED__SkPdfEmbeddedFileStreamDictionary |
| 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 an embedded file stream dictionary | 9 // Additional entries in an embedded file stream dictionary |
| 10 class SkPdfEmbeddedFileStreamDictionary : public SkPdfDictionary { | 10 class SkPdfEmbeddedFileStreamDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfEmbeddedFileStreamDictionary& operator=(const SkPdfEmbeddedFileStreamDict
ionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodo
foObj; return *this;} | 526 SkPdfEmbeddedFileStreamDictionary& operator=(const SkPdfEmbeddedFileStreamDict
ionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodo
foObj; return *this;} |
| 527 | 527 |
| 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, | 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, |
| 529 * must be EmbeddedFile for an embedded file stream. | 529 * must be EmbeddedFile for an embedded file 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 /** (Optional) The subtype of the embedded file. The value of this entry must be | 536 /** (Optional) The subtype of the embedded file. The value of this entry must be |
| 543 * a first-class name, as defined in Appendix E. Names without a registered pre
- | 537 * a first-class name, as defined in Appendix E. Names without a registered pre
- |
| 544 * fix must conform to the MIME media type names defined in Internet RFC | 538 * fix must conform to the MIME media type names defined in Internet RFC |
| 545 * 2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types | 539 * 2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types |
| 546 * (see the Bibliography), with the provision that characters not allowed in | 540 * (see the Bibliography), with the provision that characters not allowed in |
| 547 * names must use the 2-character hexadecimal code format described in Sec- | 541 * names must use the 2-character hexadecimal code format described in Sec- |
| 548 * tion 3.2.4, "Name Objects." | 542 * tion 3.2.4, "Name Objects." |
| 549 **/ | 543 **/ |
| 550 bool has_Subtype() const { | 544 bool has_Subtype() const { |
| 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
| 552 } | 546 } |
| 553 | 547 |
| 554 std::string Subtype() const { | 548 std::string Subtype() const; |
| 555 std::string ret; | |
| 556 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | |
| 557 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 558 return ""; | |
| 559 } | |
| 560 | |
| 561 /** (Optional) An embedded file parameter dictionary containing additional, file
- | 549 /** (Optional) An embedded file parameter dictionary containing additional, file
- |
| 562 * specific information (see Table 3.34). | 550 * specific information (see Table 3.34). |
| 563 **/ | 551 **/ |
| 564 bool has_Params() const { | 552 bool has_Params() const { |
| 565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param
s", "", NULL)); | 553 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param
s", "", NULL)); |
| 566 } | 554 } |
| 567 | 555 |
| 568 SkPdfDictionary* Params() const { | 556 SkPdfDictionary* Params() const; |
| 569 SkPdfDictionary* ret; | |
| 570 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param
s", "", &ret)) return ret; | |
| 571 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 572 return NULL; | |
| 573 } | |
| 574 | |
| 575 }; | 557 }; |
| 576 | 558 |
| 577 #endif // __DEFINED__SkPdfEmbeddedFileStreamDictionary | 559 #endif // __DEFINED__SkPdfEmbeddedFileStreamDictionary |
| OLD | NEW |