OLD | NEW |
1 #ifndef __DEFINED__SkPdfRadioButtonFieldDictionary | 1 #ifndef __DEFINED__SkPdfRadioButtonFieldDictionary |
2 #define __DEFINED__SkPdfRadioButtonFieldDictionary | 2 #define __DEFINED__SkPdfRadioButtonFieldDictionary |
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 radio button field | 9 // Additional entry specific to a radio button field |
10 class SkPdfRadioButtonFieldDictionary : public SkPdfDictionary { | 10 class SkPdfRadioButtonFieldDictionary : public SkPdfDictionary { |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 /** (Optional; inheritable; PDF 1.4) An array of text strings to be used in | 528 /** (Optional; inheritable; PDF 1.4) An array of text strings to be used in |
529 * place of the V entries for the values of the widget annotations repre- | 529 * place of the V entries for the values of the widget annotations repre- |
530 * senting the individual radio buttons. Each element in the array repre- | 530 * senting the individual radio buttons. Each element in the array repre- |
531 * sents the export value of the corresponding widget annotation in the | 531 * sents the export value of the corresponding widget annotation in the |
532 * Kids array of the radio button field. | 532 * Kids array of the radio button field. |
533 **/ | 533 **/ |
534 bool has_Opt() const { | 534 bool has_Opt() const { |
535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt",
"", NULL)); | 535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt",
"", NULL)); |
536 } | 536 } |
537 | 537 |
538 SkPdfArray* Opt() const { | 538 SkPdfArray* Opt() const; |
539 SkPdfArray* ret; | |
540 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "",
&ret)) return ret; | |
541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
542 return NULL; | |
543 } | |
544 | |
545 }; | 539 }; |
546 | 540 |
547 #endif // __DEFINED__SkPdfRadioButtonFieldDictionary | 541 #endif // __DEFINED__SkPdfRadioButtonFieldDictionary |
OLD | NEW |