| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfThreadDictionary | 1 #ifndef __DEFINED__SkPdfThreadDictionary |
| 2 #define __DEFINED__SkPdfThreadDictionary | 2 #define __DEFINED__SkPdfThreadDictionary |
| 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 a thread dictionary | 9 // Entries in a thread dictionary |
| 10 class SkPdfThreadDictionary : public SkPdfDictionary { | 10 class SkPdfThreadDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfThreadDictionary& operator=(const SkPdfThreadDictionary& from) {this->fPo
dofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | 526 SkPdfThreadDictionary& operator=(const SkPdfThreadDictionary& from) {this->fPo
dofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, must be | 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, must be |
| 529 * Thread for a thread dictionary. | 529 * Thread for a thread 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; must be an indirect reference) The first bead in the thread. | 536 /** (Required; must be an indirect reference) The first bead in the thread. |
| 543 **/ | 537 **/ |
| 544 bool has_F() const { | 538 bool has_F() const { |
| 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); | 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
| 546 } | 540 } |
| 547 | 541 |
| 548 SkPdfDictionary* F() const { | 542 SkPdfDictionary* F() const; |
| 549 SkPdfDictionary* ret; | |
| 550 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", &ret)) return ret; | |
| 551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 552 return NULL; | |
| 553 } | |
| 554 | |
| 555 /** (Optional) A thread information dictionary containing information about the | 543 /** (Optional) A thread information dictionary containing information about the |
| 556 * thread, such as its title, author, and creation date. The contents of this d
ictionary are | 544 * thread, such as its title, author, and creation date. The contents of this d
ictionary are |
| 557 * similar to those of the document information dictionary (see Section 9.2.1,
"Docu- | 545 * similar to those of the document information dictionary (see Section 9.2.1,
"Docu- |
| 558 * ment Information Dictionary"). | 546 * ment Information Dictionary"). |
| 559 **/ | 547 **/ |
| 560 bool has_I() const { | 548 bool has_I() const { |
| 561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "
", NULL)); | 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "
", NULL)); |
| 562 } | 550 } |
| 563 | 551 |
| 564 SkPdfDictionary* I() const { | 552 SkPdfDictionary* I() const; |
| 565 SkPdfDictionary* ret; | |
| 566 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "
", &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__SkPdfThreadDictionary | 555 #endif // __DEFINED__SkPdfThreadDictionary |
| OLD | NEW |