| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfAppearanceCharacteristicsDictionary | 1 #ifndef __DEFINED__SkPdfAppearanceCharacteristicsDictionary |
| 2 #define __DEFINED__SkPdfAppearanceCharacteristicsDictionary | 2 #define __DEFINED__SkPdfAppearanceCharacteristicsDictionary |
| 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 an appearance characteristics dictionary | 9 // Entries in an appearance characteristics dictionary |
| 10 class SkPdfAppearanceCharacteristicsDictionary : public SkPdfDictionary { | 10 class SkPdfAppearanceCharacteristicsDictionary : public SkPdfDictionary { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 SkPdfAppearanceCharacteristicsDictionary& operator=(const SkPdfAppearanceChara
cteristicsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} | 526 SkPdfAppearanceCharacteristicsDictionary& operator=(const SkPdfAppearanceChara
cteristicsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Optional) The number of degrees by which the widget annotation is rotated | 528 /** (Optional) The number of degrees by which the widget annotation is rotated |
| 529 * counterclockwise relative to the page. The value must be a multiple of 90. | 529 * counterclockwise relative to the page. The value must be a multiple of 90. |
| 530 * Default value: 0. | 530 * Default value: 0. |
| 531 **/ | 531 **/ |
| 532 bool has_R() const { | 532 bool has_R() const { |
| 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "
", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "
", NULL)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 long R() const { | 536 long R() const; |
| 537 long ret; | |
| 538 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &re
t)) return ret; | |
| 539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 540 return 0; | |
| 541 } | |
| 542 | |
| 543 /** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color
of the | 537 /** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color
of the |
| 544 * widget annotation's border. The number of array elements determines the colo
r | 538 * widget annotation's border. The number of array elements determines the colo
r |
| 545 * space in which the color is defined: | 539 * space in which the color is defined: |
| 546 * 0 No color; transparent | 540 * 0 No color; transparent |
| 547 * 1 DeviceGray | 541 * 1 DeviceGray |
| 548 * 3 DeviceRGB | 542 * 3 DeviceRGB |
| 549 * 4 DeviceCMYK | 543 * 4 DeviceCMYK |
| 550 **/ | 544 **/ |
| 551 bool has_BC() const { | 545 bool has_BC() const { |
| 552 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC",
"", NULL)); | 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC",
"", NULL)); |
| 553 } | 547 } |
| 554 | 548 |
| 555 SkPdfArray* BC() const { | 549 SkPdfArray* BC() const; |
| 556 SkPdfArray* ret; | |
| 557 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC", "", &
ret)) return ret; | |
| 558 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 559 return NULL; | |
| 560 } | |
| 561 | |
| 562 /** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color
of the | 550 /** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color
of the |
| 563 * widget annotation's background. The number of array elements determines the | 551 * widget annotation's background. The number of array elements determines the |
| 564 * color space, as described above for BC. | 552 * color space, as described above for BC. |
| 565 **/ | 553 **/ |
| 566 bool has_BG() const { | 554 bool has_BG() const { |
| 567 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG",
"", NULL)); | 555 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG",
"", NULL)); |
| 568 } | 556 } |
| 569 | 557 |
| 570 SkPdfArray* BG() const { | 558 SkPdfArray* BG() const; |
| 571 SkPdfArray* ret; | |
| 572 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", &
ret)) return ret; | |
| 573 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 574 return NULL; | |
| 575 } | |
| 576 | |
| 577 /** (Optional; button fields only) The widget annotation's normal caption, displ
ayed | 559 /** (Optional; button fields only) The widget annotation's normal caption, displ
ayed |
| 578 * when it is not interacting with the user. | 560 * when it is not interacting with the user. |
| 579 * Note: Unlike the remaining entries listed below, which apply only to widget
annota- | 561 * Note: Unlike the remaining entries listed below, which apply only to widget
annota- |
| 580 * tions associated with pushbutton fields (see "Pushbuttons" on page 539), the
CA | 562 * tions associated with pushbutton fields (see "Pushbuttons" on page 539), the
CA |
| 581 * entry can be used with any type of button field, including checkboxes ("Chec
kboxes" | 563 * entry can be used with any type of button field, including checkboxes ("Chec
kboxes" |
| 582 * on page 539) and radio buttons ("Radio Buttons" on page 540). | 564 * on page 539) and radio buttons ("Radio Buttons" on page 540). |
| 583 **/ | 565 **/ |
| 584 bool has_CA() const { | 566 bool has_CA() const { |
| 585 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA",
"", NULL)); | 567 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA",
"", NULL)); |
| 586 } | 568 } |
| 587 | 569 |
| 588 std::string CA() const { | 570 std::string CA() const; |
| 589 std::string ret; | |
| 590 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "",
&ret)) return ret; | |
| 591 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 592 return ""; | |
| 593 } | |
| 594 | |
| 595 /** (Optional; pushbutton fields only) The widget annotation's rollover caption,
dis- | 571 /** (Optional; pushbutton fields only) The widget annotation's rollover caption,
dis- |
| 596 * played when the user rolls the cursor into its active area without pressing
the | 572 * played when the user rolls the cursor into its active area without pressing
the |
| 597 * mouse button. | 573 * mouse button. |
| 598 **/ | 574 **/ |
| 599 bool has_RC() const { | 575 bool has_RC() const { |
| 600 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RC",
"", NULL)); | 576 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RC",
"", NULL)); |
| 601 } | 577 } |
| 602 | 578 |
| 603 std::string RC() const { | 579 std::string RC() const; |
| 604 std::string ret; | |
| 605 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RC", "",
&ret)) return ret; | |
| 606 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 607 return ""; | |
| 608 } | |
| 609 | |
| 610 /** (Optional; pushbutton fields only) The widget annotation's alternate (down) | 580 /** (Optional; pushbutton fields only) The widget annotation's alternate (down) |
| 611 * caption, displayed when the mouse button is pressed within its active area. | 581 * caption, displayed when the mouse button is pressed within its active area. |
| 612 **/ | 582 **/ |
| 613 bool has_AC() const { | 583 bool has_AC() const { |
| 614 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AC",
"", NULL)); | 584 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AC",
"", NULL)); |
| 615 } | 585 } |
| 616 | 586 |
| 617 std::string AC() const { | 587 std::string AC() const; |
| 618 std::string ret; | |
| 619 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AC", "",
&ret)) return ret; | |
| 620 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 621 return ""; | |
| 622 } | |
| 623 | |
| 624 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject | 588 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject |
| 625 * defining the widget annotation's normal icon, displayed when it is not inter
- | 589 * defining the widget annotation's normal icon, displayed when it is not inter
- |
| 626 * acting with the user. | 590 * acting with the user. |
| 627 **/ | 591 **/ |
| 628 bool has_I() const { | 592 bool has_I() const { |
| 629 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "
", NULL)); | 593 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "
", NULL)); |
| 630 } | 594 } |
| 631 | 595 |
| 632 SkPdfStream* I() const { | 596 SkPdfStream* I() const; |
| 633 SkPdfStream* ret; | |
| 634 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &
ret)) return ret; | |
| 635 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 636 return NULL; | |
| 637 } | |
| 638 | |
| 639 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject | 597 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject |
| 640 * defining the widget annotation's rollover icon, displayed when the user roll
s the | 598 * defining the widget annotation's rollover icon, displayed when the user roll
s the |
| 641 * cursor into its active area without pressing the mouse button. | 599 * cursor into its active area without pressing the mouse button. |
| 642 **/ | 600 **/ |
| 643 bool has_RI() const { | 601 bool has_RI() const { |
| 644 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI",
"", NULL)); | 602 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI",
"", NULL)); |
| 645 } | 603 } |
| 646 | 604 |
| 647 SkPdfStream* RI() const { | 605 SkPdfStream* RI() const; |
| 648 SkPdfStream* ret; | |
| 649 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "",
&ret)) return ret; | |
| 650 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 651 return NULL; | |
| 652 } | |
| 653 | |
| 654 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject | 606 /** (Optional; pushbutton fields only; must be an indirect reference) A form XOb
ject |
| 655 * defining the widget annotation's alternate (down) icon, displayed when the | 607 * defining the widget annotation's alternate (down) icon, displayed when the |
| 656 * mouse button is pressed within its active area. | 608 * mouse button is pressed within its active area. |
| 657 **/ | 609 **/ |
| 658 bool has_IX() const { | 610 bool has_IX() const { |
| 659 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX",
"", NULL)); | 611 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX",
"", NULL)); |
| 660 } | 612 } |
| 661 | 613 |
| 662 SkPdfStream* IX() const { | 614 SkPdfStream* IX() const; |
| 663 SkPdfStream* ret; | |
| 664 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "",
&ret)) return ret; | |
| 665 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 666 return NULL; | |
| 667 } | |
| 668 | |
| 669 /** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on
page | 615 /** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on
page |
| 670 * 566) specifying how to display the widget annotation's icon within its | 616 * 566) specifying how to display the widget annotation's icon within its |
| 671 * annotation rectangle. If present, the icon fit dictionary applies to all of
the anno- | 617 * annotation rectangle. If present, the icon fit dictionary applies to all of
the anno- |
| 672 * tation's icons (normal, rollover, and alternate). | 618 * tation's icons (normal, rollover, and alternate). |
| 673 **/ | 619 **/ |
| 674 bool has_IF() const { | 620 bool has_IF() const { |
| 675 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF",
"", NULL)); | 621 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF",
"", NULL)); |
| 676 } | 622 } |
| 677 | 623 |
| 678 SkPdfDictionary* IF() const { | 624 SkPdfDictionary* IF() const; |
| 679 SkPdfDictionary* ret; | |
| 680 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF",
"", &ret)) return ret; | |
| 681 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 682 return NULL; | |
| 683 } | |
| 684 | |
| 685 /** (Optional; pushbutton fields only) A code indicating where to position the t
ext of | 625 /** (Optional; pushbutton fields only) A code indicating where to position the t
ext of |
| 686 * the widget annotation's caption relative to its icon: | 626 * the widget annotation's caption relative to its icon: |
| 687 * 0 No icon; caption only | 627 * 0 No icon; caption only |
| 688 * 1 No caption; icon only | 628 * 1 No caption; icon only |
| 689 * 2 Caption below the icon | 629 * 2 Caption below the icon |
| 690 * 3 Caption above the icon | 630 * 3 Caption above the icon |
| 691 * 4 Caption to the right of the icon | 631 * 4 Caption to the right of the icon |
| 692 * 5 Caption to the left of the icon | 632 * 5 Caption to the left of the icon |
| 693 * 6 Caption overlaid directly on the icon | 633 * 6 Caption overlaid directly on the icon |
| 694 * Default value: 0. | 634 * Default value: 0. |
| 695 **/ | 635 **/ |
| 696 bool has_TP() const { | 636 bool has_TP() const { |
| 697 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP",
"", NULL)); | 637 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP",
"", NULL)); |
| 698 } | 638 } |
| 699 | 639 |
| 700 long TP() const { | 640 long TP() const; |
| 701 long ret; | |
| 702 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP", "", &r
et)) return ret; | |
| 703 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 704 return 0; | |
| 705 } | |
| 706 | |
| 707 }; | 641 }; |
| 708 | 642 |
| 709 #endif // __DEFINED__SkPdfAppearanceCharacteristicsDictionary | 643 #endif // __DEFINED__SkPdfAppearanceCharacteristicsDictionary |
| OLD | NEW |