OLD | NEW |
1 #ifndef __DEFINED__SkPdfCheckboxFieldDictionary | 1 #ifndef __DEFINED__SkPdfCheckboxFieldDictionary |
2 #define __DEFINED__SkPdfCheckboxFieldDictionary | 2 #define __DEFINED__SkPdfCheckboxFieldDictionary |
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 entry specific to a checkbox field | 9 // Additional entry specific to a checkbox field |
10 class SkPdfCheckboxFieldDictionary : public SkPdfDictionary { | 10 class SkPdfCheckboxFieldDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfCheckboxFieldDictionary& operator=(const SkPdfCheckboxFieldDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} | 526 SkPdfCheckboxFieldDictionary& operator=(const SkPdfCheckboxFieldDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} |
527 | 527 |
528 /** (Optional; inheritable; PDF 1.4) A text string to be used in place of the V
entry for the | 528 /** (Optional; inheritable; PDF 1.4) A text string to be used in place of the V
entry for the |
529 * value of the field. | 529 * value of the field. |
530 **/ | 530 **/ |
531 bool has_Opt() const { | 531 bool has_Opt() const { |
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt",
"", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt",
"", NULL)); |
533 } | 533 } |
534 | 534 |
535 std::string Opt() const { | 535 std::string Opt() const; |
536 std::string ret; | |
537 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "",
&ret)) return ret; | |
538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
539 return ""; | |
540 } | |
541 | |
542 }; | 536 }; |
543 | 537 |
544 #endif // __DEFINED__SkPdfCheckboxFieldDictionary | 538 #endif // __DEFINED__SkPdfCheckboxFieldDictionary |
OLD | NEW |