OLD | NEW |
(Empty) | |
| 1 #include "SkPdfCIDSystemInfoDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 SkString SkPdfCIDSystemInfoDictionary::Registry(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("Registry", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 9 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 10 return SkString(); |
| 11 } |
| 12 |
| 13 bool SkPdfCIDSystemInfoDictionary::has_Registry() const { |
| 14 return get("Registry", "") != NULL; |
| 15 } |
| 16 |
| 17 SkString SkPdfCIDSystemInfoDictionary::Ordering(SkPdfNativeDoc* doc) { |
| 18 SkPdfNativeObject* ret = get("Ordering", ""); |
| 19 if (doc) {ret = doc->resolveReference(ret);} |
| 20 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 21 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 22 return SkString(); |
| 23 } |
| 24 |
| 25 bool SkPdfCIDSystemInfoDictionary::has_Ordering() const { |
| 26 return get("Ordering", "") != NULL; |
| 27 } |
| 28 |
| 29 int64_t SkPdfCIDSystemInfoDictionary::Supplement(SkPdfNativeDoc* doc) { |
| 30 SkPdfNativeObject* ret = get("Supplement", ""); |
| 31 if (doc) {ret = doc->resolveReference(ret);} |
| 32 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); |
| 33 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 34 return 0; |
| 35 } |
| 36 |
| 37 bool SkPdfCIDSystemInfoDictionary::has_Supplement() const { |
| 38 return get("Supplement", "") != NULL; |
| 39 } |
| 40 |
OLD | NEW |