| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfResetFormActionDictionary | 1 #ifndef __DEFINED__SkPdfResetFormActionDictionary |
| 2 #define __DEFINED__SkPdfResetFormActionDictionary | 2 #define __DEFINED__SkPdfResetFormActionDictionary |
| 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 a reset-form action | 9 // Additional entries specific to a reset-form action |
| 10 class SkPdfResetFormActionDictionary : public SkPdfDictionary { | 10 class SkPdfResetFormActionDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfResetFormActionDictionary& operator=(const SkPdfResetFormActionDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 526 SkPdfResetFormActionDictionary& operator=(const SkPdfResetFormActionDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 527 | 527 |
| 528 /** (Required) The type of action that this dictionary describes; must be | 528 /** (Required) The type of action that this dictionary describes; must be |
| 529 * ResetForm for a reset-form action. | 529 * ResetForm for a reset-form 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 /** (Optional) An array identifying which fields to reset or which to exclude | 536 /** (Optional) An array identifying which fields to reset or which to exclude |
| 543 * from resetting, depending on the setting of the Include/Exclude flag in | 537 * from resetting, depending on the setting of the Include/Exclude flag in |
| 544 * the Flags entry (see Table 8.64). Each element of the array is either an in- | 538 * the Flags entry (see Table 8.64). Each element of the array is either an in- |
| 545 * direct reference to a field dictionary or (PDF 1.3) a string representing | 539 * direct reference to a field dictionary or (PDF 1.3) a string representing |
| 546 * the fully qualified name of a field. Elements of both kinds may be mixed | 540 * the fully qualified name of a field. Elements of both kinds may be mixed |
| 547 * in the same array. | 541 * in the same array. |
| 548 * If this entry is omitted, the Include/Exclude flag is ignored; all fields in | 542 * If this entry is omitted, the Include/Exclude flag is ignored; all fields in |
| 549 * the document's interactive form are reset. | 543 * the document's interactive form are reset. |
| 550 **/ | 544 **/ |
| 551 bool has_Fields() const { | 545 bool has_Fields() const { |
| 552 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Field
s", "", NULL)); | 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Field
s", "", NULL)); |
| 553 } | 547 } |
| 554 | 548 |
| 555 SkPdfArray* Fields() const { | 549 SkPdfArray* Fields() const; |
| 556 SkPdfArray* ret; | |
| 557 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "
", &ret)) return ret; | |
| 558 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 559 return NULL; | |
| 560 } | |
| 561 | |
| 562 /** (Optional; inheritable) A set of flags specifying various characteristics of | 550 /** (Optional; inheritable) A set of flags specifying various characteristics of |
| 563 * the action (see Table 8.64). Default value: 0. | 551 * the action (see Table 8.64). Default value: 0. |
| 564 **/ | 552 **/ |
| 565 bool has_Flags() const { | 553 bool has_Flags() const { |
| 566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags
", "", NULL)); | 554 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags
", "", NULL)); |
| 567 } | 555 } |
| 568 | 556 |
| 569 long Flags() const { | 557 long Flags() const; |
| 570 long ret; | |
| 571 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; | |
| 572 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 573 return 0; | |
| 574 } | |
| 575 | |
| 576 }; | 558 }; |
| 577 | 559 |
| 578 #endif // __DEFINED__SkPdfResetFormActionDictionary | 560 #endif // __DEFINED__SkPdfResetFormActionDictionary |
| OLD | NEW |