| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfResetFormActionDictionary | 1 #ifndef __DEFINED__SkPdfResetFormActionDictionary |
| 2 #define __DEFINED__SkPdfResetFormActionDictionary | 2 #define __DEFINED__SkPdfResetFormActionDictionary |
| 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 // Additional entries specific to a reset-form action |
| 8 class SkPdfResetFormActionDictionary : public SkPdfDictionary { | 9 class SkPdfResetFormActionDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kResetFormActionDictionary_Sk
PdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kResetFormActionDictionary_Sk
PdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kResetFo
rmActionDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kResetFo
rmActionDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return
this;} | 14 virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return
this;} |
| 14 virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() co
nst {return this;} | 15 virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() 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 SkPdfResetFormActionDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfResetFormActionDictionary(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 SkPdfResetFormActionDictionary& operator=(const SkPdfResetFormActionDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 523 SkPdfResetFormActionDictionary& operator=(const SkPdfResetFormActionDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 523 | 524 |
| 525 /** (Required) The type of action that this dictionary describes; must be |
| 526 * ResetForm for a reset-form action. |
| 527 **/ |
| 528 bool has_S() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
| 530 } |
| 531 |
| 524 std::string S() const { | 532 std::string S() const { |
| 525 std::string ret; | 533 std::string ret; |
| 526 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | 534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) 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 /** (Optional) An array identifying which fields to reset or which to exclude |
| 540 * from resetting, depending on the setting of the Include/Exclude flag in |
| 541 * the Flags entry (see Table 8.64). Each element of the array is either an in- |
| 542 * direct reference to a field dictionary or (PDF 1.3) a string representing |
| 543 * the fully qualified name of a field. Elements of both kinds may be mixed |
| 544 * in the same array. |
| 545 * If this entry is omitted, the Include/Exclude flag is ignored; all fields in |
| 546 * the document's interactive form are reset. |
| 547 **/ |
| 548 bool has_Fields() const { |
| 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Field
s", "", NULL)); |
| 550 } |
| 551 |
| 531 SkPdfArray Fields() const { | 552 SkPdfArray Fields() const { |
| 532 SkPdfArray ret; | 553 SkPdfArray ret; |
| 533 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "
", &ret)) return ret; | 554 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "
", &ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 555 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return SkPdfArray(); | 556 return SkPdfArray(); |
| 536 } | 557 } |
| 537 | 558 |
| 559 /** (Optional; inheritable) A set of flags specifying various characteristics of |
| 560 * the action (see Table 8.64). Default value: 0. |
| 561 **/ |
| 562 bool has_Flags() const { |
| 563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags
", "", NULL)); |
| 564 } |
| 565 |
| 538 long Flags() const { | 566 long Flags() const { |
| 539 long ret; | 567 long ret; |
| 540 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; | 568 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; |
| 541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 569 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 542 return 0; | 570 return 0; |
| 543 } | 571 } |
| 544 | 572 |
| 545 }; | 573 }; |
| 546 | 574 |
| 547 #endif // __DEFINED__SkPdfResetFormActionDictionary | 575 #endif // __DEFINED__SkPdfResetFormActionDictionary |
| OLD | NEW |