edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 1 | #include "SkPdfGraphicsStateDictionary_autogen.h" |
| 2 | |
| 3 | std::string SkPdfGraphicsStateDictionary::Type() const { |
| 4 | std::string ret; |
| 5 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
| 6 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 7 | return ""; |
| 8 | } |
| 9 | |
| 10 | double SkPdfGraphicsStateDictionary::LW() const { |
| 11 | double ret; |
| 12 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW", "", &ret)) return ret; |
| 13 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | long SkPdfGraphicsStateDictionary::LC() const { |
| 18 | long ret; |
| 19 | if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LC", "", &ret)) return ret; |
| 20 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | long SkPdfGraphicsStateDictionary::LJ() const { |
| 25 | long ret; |
| 26 | if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LJ", "", &ret)) return ret; |
| 27 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | double SkPdfGraphicsStateDictionary::ML() const { |
| 32 | double ret; |
| 33 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML", "", &ret)) return ret; |
| 34 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | SkPdfArray* SkPdfGraphicsStateDictionary::D() const { |
| 39 | SkPdfArray* ret; |
| 40 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; |
| 41 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 42 | return NULL; |
| 43 | } |
| 44 | |
| 45 | std::string SkPdfGraphicsStateDictionary::RI() const { |
| 46 | std::string ret; |
| 47 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret; |
| 48 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 49 | return ""; |
| 50 | } |
| 51 | |
| 52 | bool SkPdfGraphicsStateDictionary::OP() const { |
| 53 | bool ret; |
| 54 | if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OP", "", &ret)) return ret; |
| 55 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | bool SkPdfGraphicsStateDictionary::op() const { |
| 60 | bool ret; |
| 61 | if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "op", "", &ret)) return ret; |
| 62 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | long SkPdfGraphicsStateDictionary::OPM() const { |
| 67 | long ret; |
| 68 | if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM", "", &ret)) return ret; |
| 69 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 70 | return 0; |
| 71 | } |
| 72 | |
| 73 | SkPdfArray* SkPdfGraphicsStateDictionary::Font() const { |
| 74 | SkPdfArray* ret; |
| 75 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "", &ret)) return ret; |
| 76 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 77 | return NULL; |
| 78 | } |
| 79 | |
| 80 | SkPdfFunction SkPdfGraphicsStateDictionary::BG() const { |
| 81 | SkPdfFunction ret; |
| 82 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", &ret)) return ret; |
| 83 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 84 | return SkPdfFunction(); |
| 85 | } |
| 86 | |
| 87 | SkPdfFunction SkPdfGraphicsStateDictionary::getBG2AsFunction() const { |
| 88 | SkPdfFunction ret = SkPdfFunction(); |
| 89 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return ret; |
| 90 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 91 | return SkPdfFunction(); |
| 92 | } |
| 93 | |
| 94 | std::string SkPdfGraphicsStateDictionary::getBG2AsName() const { |
| 95 | std::string ret = ""; |
| 96 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return ret; |
| 97 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 98 | return ""; |
| 99 | } |
| 100 | |
| 101 | SkPdfFunction SkPdfGraphicsStateDictionary::UCR() const { |
| 102 | SkPdfFunction ret; |
| 103 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR", "", &ret)) return ret; |
| 104 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 105 | return SkPdfFunction(); |
| 106 | } |
| 107 | |
| 108 | SkPdfFunction SkPdfGraphicsStateDictionary::getUCR2AsFunction() const { |
| 109 | SkPdfFunction ret = SkPdfFunction(); |
| 110 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return ret; |
| 111 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 112 | return SkPdfFunction(); |
| 113 | } |
| 114 | |
| 115 | std::string SkPdfGraphicsStateDictionary::getUCR2AsName() const { |
| 116 | std::string ret = ""; |
| 117 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return ret; |
| 118 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 119 | return ""; |
| 120 | } |
| 121 | |
| 122 | SkPdfFunction SkPdfGraphicsStateDictionary::getTRAsFunction() const { |
| 123 | SkPdfFunction ret = SkPdfFunction(); |
| 124 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; |
| 125 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 126 | return SkPdfFunction(); |
| 127 | } |
| 128 | |
| 129 | SkPdfArray* SkPdfGraphicsStateDictionary::getTRAsArray() const { |
| 130 | SkPdfArray* ret = NULL; |
| 131 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; |
| 132 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 133 | return NULL; |
| 134 | } |
| 135 | |
| 136 | std::string SkPdfGraphicsStateDictionary::getTRAsName() const { |
| 137 | std::string ret = ""; |
| 138 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; |
| 139 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 140 | return ""; |
| 141 | } |
| 142 | |
| 143 | SkPdfFunction SkPdfGraphicsStateDictionary::getTR2AsFunction() const { |
| 144 | SkPdfFunction ret = SkPdfFunction(); |
| 145 | if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; |
| 146 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 147 | return SkPdfFunction(); |
| 148 | } |
| 149 | |
| 150 | SkPdfArray* SkPdfGraphicsStateDictionary::getTR2AsArray() const { |
| 151 | SkPdfArray* ret = NULL; |
| 152 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; |
| 153 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 154 | return NULL; |
| 155 | } |
| 156 | |
| 157 | std::string SkPdfGraphicsStateDictionary::getTR2AsName() const { |
| 158 | std::string ret = ""; |
| 159 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; |
| 160 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 161 | return ""; |
| 162 | } |
| 163 | |
| 164 | SkPdfDictionary* SkPdfGraphicsStateDictionary::getHTAsDictionary() const { |
| 165 | SkPdfDictionary* ret = NULL; |
| 166 | if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; |
| 167 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 168 | return NULL; |
| 169 | } |
| 170 | |
| 171 | SkPdfStream* SkPdfGraphicsStateDictionary::getHTAsStream() const { |
| 172 | SkPdfStream* ret = NULL; |
| 173 | if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; |
| 174 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 175 | return NULL; |
| 176 | } |
| 177 | |
| 178 | std::string SkPdfGraphicsStateDictionary::getHTAsName() const { |
| 179 | std::string ret = ""; |
| 180 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; |
| 181 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 182 | return ""; |
| 183 | } |
| 184 | |
| 185 | double SkPdfGraphicsStateDictionary::FL() const { |
| 186 | double ret; |
| 187 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL", "", &ret)) return ret; |
| 188 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 189 | return 0; |
| 190 | } |
| 191 | |
| 192 | double SkPdfGraphicsStateDictionary::SM() const { |
| 193 | double ret; |
| 194 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM", "", &ret)) return ret; |
| 195 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 196 | return 0; |
| 197 | } |
| 198 | |
| 199 | bool SkPdfGraphicsStateDictionary::SA() const { |
| 200 | bool ret; |
| 201 | if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SA", "", &ret)) return ret; |
| 202 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 203 | return false; |
| 204 | } |
| 205 | |
| 206 | std::string SkPdfGraphicsStateDictionary::getBMAsName() const { |
| 207 | std::string ret = ""; |
| 208 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return ret; |
| 209 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 210 | return ""; |
| 211 | } |
| 212 | |
| 213 | SkPdfArray* SkPdfGraphicsStateDictionary::getBMAsArray() const { |
| 214 | SkPdfArray* ret = NULL; |
| 215 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return ret; |
| 216 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 217 | return NULL; |
| 218 | } |
| 219 | |
| 220 | SkPdfDictionary* SkPdfGraphicsStateDictionary::getSMaskAsDictionary() const { |
| 221 | SkPdfDictionary* ret = NULL; |
| 222 | if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret; |
| 223 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 224 | return NULL; |
| 225 | } |
| 226 | |
| 227 | std::string SkPdfGraphicsStateDictionary::getSMaskAsName() const { |
| 228 | std::string ret = ""; |
| 229 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret; |
| 230 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 231 | return ""; |
| 232 | } |
| 233 | |
| 234 | double SkPdfGraphicsStateDictionary::CA() const { |
| 235 | double ret; |
| 236 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &ret)) return ret; |
| 237 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 238 | return 0; |
| 239 | } |
| 240 | |
| 241 | double SkPdfGraphicsStateDictionary::ca() const { |
| 242 | double ret; |
| 243 | if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca", "", &ret)) return ret; |
| 244 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 245 | return 0; |
| 246 | } |
| 247 | |
| 248 | bool SkPdfGraphicsStateDictionary::AIS() const { |
| 249 | bool ret; |
| 250 | if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS", "", &ret)) return ret; |
| 251 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 252 | return false; |
| 253 | } |
| 254 | |
| 255 | bool SkPdfGraphicsStateDictionary::TK() const { |
| 256 | bool ret; |
| 257 | if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", &ret)) return ret; |
| 258 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 259 | return false; |
| 260 | } |
edisonn@google.com | 6e49c34 | 2013-06-27 20:03:43 +0000 | [diff] [blame^] | 261 | |