OLD | NEW |
(Empty) | |
| 1 #include "SkPdfFileSpecificationDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 SkString SkPdfFileSpecificationDictionary::Type(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("Type", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe
ference())) return ret->nameValue2(); |
| 9 // TODO(edisonn): warn about missing default value for optional fields |
| 10 return SkString(); |
| 11 } |
| 12 |
| 13 bool SkPdfFileSpecificationDictionary::has_Type() const { |
| 14 return get("Type", "") != NULL; |
| 15 } |
| 16 |
| 17 SkString SkPdfFileSpecificationDictionary::FS(SkPdfNativeDoc* doc) { |
| 18 SkPdfNativeObject* ret = get("FS", ""); |
| 19 if (doc) {ret = doc->resolveReference(ret);} |
| 20 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe
ference())) return ret->nameValue2(); |
| 21 // TODO(edisonn): warn about missing default value for optional fields |
| 22 return SkString(); |
| 23 } |
| 24 |
| 25 bool SkPdfFileSpecificationDictionary::has_FS() const { |
| 26 return get("FS", "") != NULL; |
| 27 } |
| 28 |
| 29 SkString SkPdfFileSpecificationDictionary::F(SkPdfNativeDoc* doc) { |
| 30 SkPdfNativeObject* ret = get("F", ""); |
| 31 if (doc) {ret = doc->resolveReference(ret);} |
| 32 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 33 // TODO(edisonn): warn about missing default value for optional fields |
| 34 return SkString(); |
| 35 } |
| 36 |
| 37 bool SkPdfFileSpecificationDictionary::has_F() const { |
| 38 return get("F", "") != NULL; |
| 39 } |
| 40 |
| 41 SkString SkPdfFileSpecificationDictionary::DOS(SkPdfNativeDoc* doc) { |
| 42 SkPdfNativeObject* ret = get("DOS", ""); |
| 43 if (doc) {ret = doc->resolveReference(ret);} |
| 44 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 45 // TODO(edisonn): warn about missing default value for optional fields |
| 46 return SkString(); |
| 47 } |
| 48 |
| 49 bool SkPdfFileSpecificationDictionary::has_DOS() const { |
| 50 return get("DOS", "") != NULL; |
| 51 } |
| 52 |
| 53 SkString SkPdfFileSpecificationDictionary::Mac(SkPdfNativeDoc* doc) { |
| 54 SkPdfNativeObject* ret = get("Mac", ""); |
| 55 if (doc) {ret = doc->resolveReference(ret);} |
| 56 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 57 // TODO(edisonn): warn about missing default value for optional fields |
| 58 return SkString(); |
| 59 } |
| 60 |
| 61 bool SkPdfFileSpecificationDictionary::has_Mac() const { |
| 62 return get("Mac", "") != NULL; |
| 63 } |
| 64 |
| 65 SkString SkPdfFileSpecificationDictionary::Unix(SkPdfNativeDoc* doc) { |
| 66 SkPdfNativeObject* ret = get("Unix", ""); |
| 67 if (doc) {ret = doc->resolveReference(ret);} |
| 68 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
>isReference())) return ret->stringValue2(); |
| 69 // TODO(edisonn): warn about missing default value for optional fields |
| 70 return SkString(); |
| 71 } |
| 72 |
| 73 bool SkPdfFileSpecificationDictionary::has_Unix() const { |
| 74 return get("Unix", "") != NULL; |
| 75 } |
| 76 |
| 77 SkPdfArray* SkPdfFileSpecificationDictionary::ID(SkPdfNativeDoc* doc) { |
| 78 SkPdfNativeObject* ret = get("ID", ""); |
| 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 SkPdfFileSpecificationDictionary::has_ID() const { |
| 86 return get("ID", "") != NULL; |
| 87 } |
| 88 |
| 89 bool SkPdfFileSpecificationDictionary::V(SkPdfNativeDoc* doc) { |
| 90 SkPdfNativeObject* ret = get("V", ""); |
| 91 if (doc) {ret = doc->resolveReference(ret);} |
| 92 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->boolValue(); |
| 93 // TODO(edisonn): warn about missing default value for optional fields |
| 94 return false; |
| 95 } |
| 96 |
| 97 bool SkPdfFileSpecificationDictionary::has_V() const { |
| 98 return get("V", "") != NULL; |
| 99 } |
| 100 |
| 101 SkPdfDictionary* SkPdfFileSpecificationDictionary::EF(SkPdfNativeDoc* doc) { |
| 102 SkPdfNativeObject* ret = get("EF", ""); |
| 103 if (doc) {ret = doc->resolveReference(ret);} |
| 104 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 105 // TODO(edisonn): warn about missing default value for optional fields |
| 106 return NULL; |
| 107 } |
| 108 |
| 109 bool SkPdfFileSpecificationDictionary::has_EF() const { |
| 110 return get("EF", "") != NULL; |
| 111 } |
| 112 |
| 113 SkPdfDictionary* SkPdfFileSpecificationDictionary::RF(SkPdfNativeDoc* doc) { |
| 114 SkPdfNativeObject* ret = get("RF", ""); |
| 115 if (doc) {ret = doc->resolveReference(ret);} |
| 116 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 117 // TODO(edisonn): warn about missing default value for optional fields |
| 118 return NULL; |
| 119 } |
| 120 |
| 121 bool SkPdfFileSpecificationDictionary::has_RF() const { |
| 122 return get("RF", "") != NULL; |
| 123 } |
| 124 |
OLD | NEW |