OLD | NEW |
1 #ifndef __DEFINED__SkPdfNamedActionsDictionary | 1 #ifndef __DEFINED__SkPdfNamedActionsDictionary |
2 #define __DEFINED__SkPdfNamedActionsDictionary | 2 #define __DEFINED__SkPdfNamedActionsDictionary |
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 specific to named actions | 9 // Additional entries specific to named actions |
10 class SkPdfNamedActionsDictionary : public SkPdfDictionary { | 10 class SkPdfNamedActionsDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfNamedActionsDictionary& operator=(const SkPdfNamedActionsDictionary& from
) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur
n *this;} | 526 SkPdfNamedActionsDictionary& operator=(const SkPdfNamedActionsDictionary& from
) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur
n *this;} |
527 | 527 |
528 /** (Required) The type of action that this dictionary describes; must be Named
for a named | 528 /** (Required) The type of action that this dictionary describes; must be Named
for a named |
529 * action. | 529 * action. |
530 **/ | 530 **/ |
531 bool has_S() const { | 531 bool has_S() const { |
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
533 } | 533 } |
534 | 534 |
535 std::string S() const { | 535 std::string S() const; |
536 std::string ret; | |
537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | |
538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
539 return ""; | |
540 } | |
541 | |
542 /** (Required) The name of the action to be performed (see Table 8.45). | 536 /** (Required) The name of the action to be performed (see Table 8.45). |
543 **/ | 537 **/ |
544 bool has_N() const { | 538 bool has_N() const { |
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "
", NULL)); | 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "
", NULL)); |
546 } | 540 } |
547 | 541 |
548 std::string N() const { | 542 std::string N() const; |
549 std::string ret; | |
550 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &re
t)) return ret; | |
551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
552 return ""; | |
553 } | |
554 | |
555 }; | 543 }; |
556 | 544 |
557 #endif // __DEFINED__SkPdfNamedActionsDictionary | 545 #endif // __DEFINED__SkPdfNamedActionsDictionary |
OLD | NEW |