OLD | NEW |
(Empty) | |
| 1 #include "SkPdfTableAttributesDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 int64_t SkPdfTableAttributesDictionary::RowSpan(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("RowSpan", ""); |
| 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 SkPdfTableAttributesDictionary::has_RowSpan() const { |
| 14 return get("RowSpan", "") != NULL; |
| 15 } |
| 16 |
| 17 int64_t SkPdfTableAttributesDictionary::ColSpan(SkPdfNativeDoc* doc) { |
| 18 SkPdfNativeObject* ret = get("ColSpan", ""); |
| 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 SkPdfTableAttributesDictionary::has_ColSpan() const { |
| 26 return get("ColSpan", "") != NULL; |
| 27 } |
| 28 |
OLD | NEW |