blob: a3cc647f2a81a0955bdad827f72b40b77d54f652 [file] [log] [blame]
edisonn@google.com131d4ee2013-06-26 17:48:12 +00001#include "SkPdfStreamCommonDictionary_autogen.h"
2
3long 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
10std::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
17SkPdfArray* 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
24SkPdfDictionary* 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
31SkPdfArray* 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
38SkPdfFileSpec 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
45std::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
52SkPdfArray* 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
59SkPdfDictionary* 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
66SkPdfArray* 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}