| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfFormFieldActionsDictionary | 1 #ifndef __DEFINED__SkPdfFormFieldActionsDictionary |
| 2 #define __DEFINED__SkPdfFormFieldActionsDictionary | 2 #define __DEFINED__SkPdfFormFieldActionsDictionary |
| 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 // Entries in a form field's additional-actions dictionary | 9 // Entries in a form field's additional-actions dictionary |
| 10 class SkPdfFormFieldActionsDictionary : public SkPdfDictionary { | 10 class SkPdfFormFieldActionsDictionary : public SkPdfDictionary { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 SkPdfFormFieldActionsDictionary& operator=(const SkPdfFormFieldActionsDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} | 526 SkPdfFormFieldActionsDictionary& operator=(const SkPdfFormFieldActionsDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} |
| 527 | 527 |
| 528 /** (Optional; PDF 1.3) A JavaScript action to be performed when the user types
a key- | 528 /** (Optional; PDF 1.3) A JavaScript action to be performed when the user types
a key- |
| 529 * stroke into a text field or combo box or modifies the selection in a scrolla
ble list box. | 529 * stroke into a text field or combo box or modifies the selection in a scrolla
ble list box. |
| 530 * This allows the keystroke to be checked for validity and rejected or modifie
d. | 530 * This allows the keystroke to be checked for validity and rejected or modifie
d. |
| 531 **/ | 531 **/ |
| 532 bool has_K() const { | 532 bool has_K() const { |
| 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "
", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "
", NULL)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 SkPdfDictionary* K() const { | 536 SkPdfDictionary* K() const; |
| 537 SkPdfDictionary* ret; | |
| 538 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "
", &ret)) return ret; | |
| 539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 540 return NULL; | |
| 541 } | |
| 542 | |
| 543 /** (Optional; PDF 1.3) A JavaScript action to be performed before the field is
formatted | 537 /** (Optional; PDF 1.3) A JavaScript action to be performed before the field is
formatted |
| 544 * to display its current value. This allows the field's value to be modified b
efore format- | 538 * to display its current value. This allows the field's value to be modified b
efore format- |
| 545 * ting. | 539 * ting. |
| 546 **/ | 540 **/ |
| 547 bool has_F() const { | 541 bool has_F() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
| 549 } | 543 } |
| 550 | 544 |
| 551 SkPdfDictionary* F() const { | 545 SkPdfDictionary* F() const; |
| 552 SkPdfDictionary* ret; | |
| 553 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return NULL; | |
| 556 } | |
| 557 | |
| 558 /** (Optional; PDF 1.3) A JavaScript action to be performed when the field's val
ue is | 546 /** (Optional; PDF 1.3) A JavaScript action to be performed when the field's val
ue is |
| 559 * changed. This allows the new value to be checked for validity. (The name V s
tands for | 547 * changed. This allows the new value to be checked for validity. (The name V s
tands for |
| 560 * "validate.") | 548 * "validate.") |
| 561 **/ | 549 **/ |
| 562 bool has_V() const { | 550 bool has_V() const { |
| 563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", NULL)); | 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", NULL)); |
| 564 } | 552 } |
| 565 | 553 |
| 566 SkPdfDictionary* V() const { | 554 SkPdfDictionary* V() const; |
| 567 SkPdfDictionary* ret; | |
| 568 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", &ret)) return ret; | |
| 569 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 570 return NULL; | |
| 571 } | |
| 572 | |
| 573 /** (Optional; PDF 1.3) A JavaScript action to be performed in order to recalcul
ate the | 555 /** (Optional; PDF 1.3) A JavaScript action to be performed in order to recalcul
ate the |
| 574 * value of this field when that of another field changes. (The name C stands f
or | 556 * value of this field when that of another field changes. (The name C stands f
or |
| 575 * "calculate.") The order in which the document's fields are recalculated is d
efined by the | 557 * "calculate.") The order in which the document's fields are recalculated is d
efined by the |
| 576 * CO entry in the interactive form dictionary (see Section 8.6.1, "Interactive
Form | 558 * CO entry in the interactive form dictionary (see Section 8.6.1, "Interactive
Form |
| 577 * Dictionary"). | 559 * Dictionary"). |
| 578 **/ | 560 **/ |
| 579 bool has_C() const { | 561 bool has_C() const { |
| 580 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); | 562 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 581 } | 563 } |
| 582 | 564 |
| 583 SkPdfDictionary* C() const { | 565 SkPdfDictionary* C() const; |
| 584 SkPdfDictionary* ret; | |
| 585 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", &ret)) return ret; | |
| 586 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 587 return NULL; | |
| 588 } | |
| 589 | |
| 590 }; | 566 }; |
| 591 | 567 |
| 592 #endif // __DEFINED__SkPdfFormFieldActionsDictionary | 568 #endif // __DEFINED__SkPdfFormFieldActionsDictionary |
| OLD | NEW |