| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfSubmitFormActionDictionary | 1 #ifndef __DEFINED__SkPdfSubmitFormActionDictionary |
| 2 #define __DEFINED__SkPdfSubmitFormActionDictionary | 2 #define __DEFINED__SkPdfSubmitFormActionDictionary |
| 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 submit-form action |
| 8 class SkPdfSubmitFormActionDictionary : public SkPdfDictionary { | 9 class SkPdfSubmitFormActionDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kSubmitFormActionDictionary_S
kPdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kSubmitFormActionDictionary_S
kPdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSubmitF
ormActionDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSubmitF
ormActionDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {retur
n this;} | 14 virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {retur
n this;} |
| 14 virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary()
const {return this;} | 15 virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary()
const {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 SkPdfSubmitFormActionDictionary(const PdfMemDocument* podofoDoc = NULL, const
PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfSubmitFormActionDictionary(const PdfMemDocument* podofoDoc = NULL, const
PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfSubmitFormActionDictionary& operator=(const SkPdfSubmitFormActionDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} | 523 SkPdfSubmitFormActionDictionary& operator=(const SkPdfSubmitFormActionDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} |
| 523 | 524 |
| 525 /** (Required) The type of action that this dictionary describes; must |
| 526 * be SubmitForm for a submit-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 /** (Required) A URL file specification (see Section 3.10.4, "URL Speci- |
| 540 * fications") giving the uniform resource locator (URL) of the script |
| 541 * at the Web server that will process the submission. |
| 542 **/ |
| 543 bool has_F() const { |
| 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
| 545 } |
| 546 |
| 531 SkPdfFileSpec F() const { | 547 SkPdfFileSpec F() const { |
| 532 SkPdfFileSpec ret; | 548 SkPdfFileSpec ret; |
| 533 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "",
&ret)) return ret; | 549 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "",
&ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 550 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return SkPdfFileSpec(); | 551 return SkPdfFileSpec(); |
| 536 } | 552 } |
| 537 | 553 |
| 554 /** (Optional) An array identifying which fields to include in the sub- |
| 555 * mission or which to exclude, depending on the setting of the |
| 556 * Include/Exclude flag in the Flags entry (see Table 8.62). Each ele- |
| 557 * ment of the array is either an indirect reference to a field dictionary |
| 558 * or (PDF 1.3) a string representing the fully qualified name of a field. |
| 559 * Elements of both kinds may be mixed in the same array. |
| 560 * If this entry is omitted, the Include/Exclude flag is ignored; all fields |
| 561 * in the document's interactive form are submitted except those |
| 562 * whose NoExport flag (see Table 8.50 on page 532) is set. (Fields |
| 563 * with no values may also be excluded, depending on the setting of |
| 564 * the IncludeNoValueFields flag; see Table 8.62.) See the text follow- |
| 565 * ing Table 8.62 for further discussion. |
| 566 **/ |
| 567 bool has_Fields() const { |
| 568 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Field
s", "", NULL)); |
| 569 } |
| 570 |
| 538 SkPdfArray Fields() const { | 571 SkPdfArray Fields() const { |
| 539 SkPdfArray ret; | 572 SkPdfArray ret; |
| 540 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "
", &ret)) return ret; | 573 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "
", &ret)) return ret; |
| 541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 574 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 542 return SkPdfArray(); | 575 return SkPdfArray(); |
| 543 } | 576 } |
| 544 | 577 |
| 578 /** (Optional; inheritable) A set of flags specifying various characteris- |
| 579 * tics of the action (see Table 8.62). Default value: 0. |
| 580 **/ |
| 581 bool has_Flags() const { |
| 582 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags
", "", NULL)); |
| 583 } |
| 584 |
| 545 long Flags() const { | 585 long Flags() const { |
| 546 long ret; | 586 long ret; |
| 547 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; | 587 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; |
| 548 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 588 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 549 return 0; | 589 return 0; |
| 550 } | 590 } |
| 551 | 591 |
| 552 }; | 592 }; |
| 553 | 593 |
| 554 #endif // __DEFINED__SkPdfSubmitFormActionDictionary | 594 #endif // __DEFINED__SkPdfSubmitFormActionDictionary |
| OLD | NEW |