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