OLD | NEW |
1 #ifndef __DEFINED__SkPdfTextFieldDictionary | 1 #ifndef __DEFINED__SkPdfTextFieldDictionary |
2 #define __DEFINED__SkPdfTextFieldDictionary | 2 #define __DEFINED__SkPdfTextFieldDictionary |
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 text field | 9 // Additional entry specific to a text field |
10 class SkPdfTextFieldDictionary : public SkPdfDictionary { | 10 class SkPdfTextFieldDictionary : public SkPdfDictionary { |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 virtual bool valid() const {return true;} | 524 virtual bool valid() const {return true;} |
525 | 525 |
526 SkPdfTextFieldDictionary& operator=(const SkPdfTextFieldDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} | 526 SkPdfTextFieldDictionary& operator=(const SkPdfTextFieldDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} |
527 | 527 |
528 /** (Optional; inheritable) The maximum length of the field's text, in character
s. | 528 /** (Optional; inheritable) The maximum length of the field's text, in character
s. |
529 **/ | 529 **/ |
530 bool has_MaxLen() const { | 530 bool has_MaxLen() const { |
531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLe
n", "", NULL)); | 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLe
n", "", NULL)); |
532 } | 532 } |
533 | 533 |
534 long MaxLen() const { | 534 long MaxLen() const; |
535 long ret; | |
536 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLen", ""
, &ret)) return ret; | |
537 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
538 return 0; | |
539 } | |
540 | |
541 }; | 535 }; |
542 | 536 |
543 #endif // __DEFINED__SkPdfTextFieldDictionary | 537 #endif // __DEFINED__SkPdfTextFieldDictionary |
OLD | NEW |