edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 1 | #include "SkPdfStreamCommonDictionary_autogen.h" |
| 2 | |
| 3 | long SkPdfStreamCommonDictionary::Length() const { |
| 4 | long ret; |
| 5 | if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", &ret)) return ret; |
| 6 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 7 | return 0; |
| 8 | } |
| 9 | |
| 10 | std::string SkPdfStreamCommonDictionary::getFilterAsName() const { |
| 11 | std::string ret = ""; |
| 12 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; |
| 13 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 14 | return ""; |
| 15 | } |
| 16 | |
| 17 | SkPdfArray* SkPdfStreamCommonDictionary::getFilterAsArray() const { |
| 18 | SkPdfArray* ret = NULL; |
| 19 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; |
| 20 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 21 | return NULL; |
| 22 | } |
| 23 | |
| 24 | SkPdfDictionary* SkPdfStreamCommonDictionary::getDecodeParmsAsDictionary() const { |
| 25 | SkPdfDictionary* ret = NULL; |
| 26 | if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return ret; |
| 27 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 28 | return NULL; |
| 29 | } |
| 30 | |
| 31 | SkPdfArray* SkPdfStreamCommonDictionary::getDecodeParmsAsArray() const { |
| 32 | SkPdfArray* ret = NULL; |
| 33 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return ret; |
| 34 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 35 | return NULL; |
| 36 | } |
| 37 | |
| 38 | SkPdfFileSpec SkPdfStreamCommonDictionary::F() const { |
| 39 | SkPdfFileSpec ret; |
| 40 | if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; |
| 41 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 42 | return SkPdfFileSpec(); |
| 43 | } |
| 44 | |
| 45 | std::string SkPdfStreamCommonDictionary::getFFilterAsName() const { |
| 46 | std::string ret = ""; |
| 47 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return ret; |
| 48 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 49 | return ""; |
| 50 | } |
| 51 | |
| 52 | SkPdfArray* SkPdfStreamCommonDictionary::getFFilterAsArray() const { |
| 53 | SkPdfArray* ret = NULL; |
| 54 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return ret; |
| 55 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 56 | return NULL; |
| 57 | } |
| 58 | |
| 59 | SkPdfDictionary* SkPdfStreamCommonDictionary::getFDecodeParmsAsDictionary() const { |
| 60 | SkPdfDictionary* ret = NULL; |
| 61 | if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return ret; |
| 62 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 63 | return NULL; |
| 64 | } |
| 65 | |
| 66 | SkPdfArray* SkPdfStreamCommonDictionary::getFDecodeParmsAsArray() const { |
| 67 | SkPdfArray* ret = NULL; |
| 68 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return ret; |
| 69 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 70 | return NULL; |
| 71 | } |