OLD | NEW |
(Empty) | |
| 1 #include "SkPdfStructureElementAccessDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 int64_t SkPdfStructureElementAccessDictionary::StructParent(SkPdfNativeDoc* doc)
{ |
| 6 SkPdfNativeObject* ret = get("StructParent", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); |
| 9 // TODO(edisonn): warn about missing default value for optional fields |
| 10 return 0; |
| 11 } |
| 12 |
| 13 bool SkPdfStructureElementAccessDictionary::has_StructParent() const { |
| 14 return get("StructParent", "") != NULL; |
| 15 } |
| 16 |
| 17 int64_t SkPdfStructureElementAccessDictionary::StructParents(SkPdfNativeDoc* doc
) { |
| 18 SkPdfNativeObject* ret = get("StructParents", ""); |
| 19 if (doc) {ret = doc->resolveReference(ret);} |
| 20 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); |
| 21 // TODO(edisonn): warn about missing default value for optional fields |
| 22 return 0; |
| 23 } |
| 24 |
| 25 bool SkPdfStructureElementAccessDictionary::has_StructParents() const { |
| 26 return get("StructParents", "") != NULL; |
| 27 } |
| 28 |
OLD | NEW |