OLD | NEW |
(Empty) | |
| 1 #include "SkPdfResourceDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 SkPdfDictionary* SkPdfResourceDictionary::ExtGState(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("ExtGState", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 9 // TODO(edisonn): warn about missing default value for optional fields |
| 10 return NULL; |
| 11 } |
| 12 |
| 13 bool SkPdfResourceDictionary::has_ExtGState() const { |
| 14 return get("ExtGState", "") != NULL; |
| 15 } |
| 16 |
| 17 SkPdfDictionary* SkPdfResourceDictionary::ColorSpace(SkPdfNativeDoc* doc) { |
| 18 SkPdfNativeObject* ret = get("ColorSpace", ""); |
| 19 if (doc) {ret = doc->resolveReference(ret);} |
| 20 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 21 // TODO(edisonn): warn about missing default value for optional fields |
| 22 return NULL; |
| 23 } |
| 24 |
| 25 bool SkPdfResourceDictionary::has_ColorSpace() const { |
| 26 return get("ColorSpace", "") != NULL; |
| 27 } |
| 28 |
| 29 SkPdfDictionary* SkPdfResourceDictionary::Pattern(SkPdfNativeDoc* doc) { |
| 30 SkPdfNativeObject* ret = get("Pattern", ""); |
| 31 if (doc) {ret = doc->resolveReference(ret);} |
| 32 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 33 // TODO(edisonn): warn about missing default value for optional fields |
| 34 return NULL; |
| 35 } |
| 36 |
| 37 bool SkPdfResourceDictionary::has_Pattern() const { |
| 38 return get("Pattern", "") != NULL; |
| 39 } |
| 40 |
| 41 SkPdfDictionary* SkPdfResourceDictionary::Shading(SkPdfNativeDoc* doc) { |
| 42 SkPdfNativeObject* ret = get("Shading", ""); |
| 43 if (doc) {ret = doc->resolveReference(ret);} |
| 44 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 45 // TODO(edisonn): warn about missing default value for optional fields |
| 46 return NULL; |
| 47 } |
| 48 |
| 49 bool SkPdfResourceDictionary::has_Shading() const { |
| 50 return get("Shading", "") != NULL; |
| 51 } |
| 52 |
| 53 SkPdfDictionary* SkPdfResourceDictionary::XObject(SkPdfNativeDoc* doc) { |
| 54 SkPdfNativeObject* ret = get("XObject", ""); |
| 55 if (doc) {ret = doc->resolveReference(ret);} |
| 56 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 57 // TODO(edisonn): warn about missing default value for optional fields |
| 58 return NULL; |
| 59 } |
| 60 |
| 61 bool SkPdfResourceDictionary::has_XObject() const { |
| 62 return get("XObject", "") != NULL; |
| 63 } |
| 64 |
| 65 SkPdfDictionary* SkPdfResourceDictionary::Font(SkPdfNativeDoc* doc) { |
| 66 SkPdfNativeObject* ret = get("Font", ""); |
| 67 if (doc) {ret = doc->resolveReference(ret);} |
| 68 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 69 // TODO(edisonn): warn about missing default value for optional fields |
| 70 return NULL; |
| 71 } |
| 72 |
| 73 bool SkPdfResourceDictionary::has_Font() const { |
| 74 return get("Font", "") != NULL; |
| 75 } |
| 76 |
| 77 SkPdfArray* SkPdfResourceDictionary::ProcSet(SkPdfNativeDoc* doc) { |
| 78 SkPdfNativeObject* ret = get("ProcSet", ""); |
| 79 if (doc) {ret = doc->resolveReference(ret);} |
| 80 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR
eference())) return (SkPdfArray*)ret; |
| 81 // TODO(edisonn): warn about missing default value for optional fields |
| 82 return NULL; |
| 83 } |
| 84 |
| 85 bool SkPdfResourceDictionary::has_ProcSet() const { |
| 86 return get("ProcSet", "") != NULL; |
| 87 } |
| 88 |
| 89 SkPdfDictionary* SkPdfResourceDictionary::Properties(SkPdfNativeDoc* doc) { |
| 90 SkPdfNativeObject* ret = get("Properties", ""); |
| 91 if (doc) {ret = doc->resolveReference(ret);} |
| 92 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 93 // TODO(edisonn): warn about missing default value for optional fields |
| 94 return NULL; |
| 95 } |
| 96 |
| 97 bool SkPdfResourceDictionary::has_Properties() const { |
| 98 return get("Properties", "") != NULL; |
| 99 } |
| 100 |
OLD | NEW |