Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfFDFFieldDictionary_autogen.cpp

Issue 22900010: pdfviewer: check in pdfapi classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include "SkPdfFDFFieldDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 SkPdfArray* SkPdfFDFFieldDictionary::Kids(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("Kids", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
9 // TODO(edisonn): warn about missing default value for optional fields
10 return NULL;
11 }
12
13 bool SkPdfFDFFieldDictionary::has_Kids() const {
14 return get("Kids", "") != NULL;
15 }
16
17 SkString SkPdfFDFFieldDictionary::T(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("T", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
21 // TODO(edisonn): warn about missing required field, assert for known good pdf s
22 return SkString();
23 }
24
25 bool SkPdfFDFFieldDictionary::has_T() const {
26 return get("T", "") != NULL;
27 }
28
29 SkPdfNativeObject* SkPdfFDFFieldDictionary::V(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("V", "");
31 if (doc) {ret = doc->resolveReference(ret);}
32 if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference() )) return ret;
33 // TODO(edisonn): warn about missing default value for optional fields
34 return NULL;
35 }
36
37 bool SkPdfFDFFieldDictionary::has_V() const {
38 return get("V", "") != NULL;
39 }
40
41 int64_t SkPdfFDFFieldDictionary::Ff(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("Ff", "");
43 if (doc) {ret = doc->resolveReference(ret);}
44 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
45 // TODO(edisonn): warn about missing default value for optional fields
46 return 0;
47 }
48
49 bool SkPdfFDFFieldDictionary::has_Ff() const {
50 return get("Ff", "") != NULL;
51 }
52
53 int64_t SkPdfFDFFieldDictionary::SetFf(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("SetFf", "");
55 if (doc) {ret = doc->resolveReference(ret);}
56 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
57 // TODO(edisonn): warn about missing default value for optional fields
58 return 0;
59 }
60
61 bool SkPdfFDFFieldDictionary::has_SetFf() const {
62 return get("SetFf", "") != NULL;
63 }
64
65 int64_t SkPdfFDFFieldDictionary::ClrFf(SkPdfNativeDoc* doc) {
66 SkPdfNativeObject* ret = get("ClrFf", "");
67 if (doc) {ret = doc->resolveReference(ret);}
68 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
69 // TODO(edisonn): warn about missing default value for optional fields
70 return 0;
71 }
72
73 bool SkPdfFDFFieldDictionary::has_ClrFf() const {
74 return get("ClrFf", "") != NULL;
75 }
76
77 int64_t SkPdfFDFFieldDictionary::F(SkPdfNativeDoc* doc) {
78 SkPdfNativeObject* ret = get("F", "");
79 if (doc) {ret = doc->resolveReference(ret);}
80 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
81 // TODO(edisonn): warn about missing default value for optional fields
82 return 0;
83 }
84
85 bool SkPdfFDFFieldDictionary::has_F() const {
86 return get("F", "") != NULL;
87 }
88
89 int64_t SkPdfFDFFieldDictionary::SetF(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("SetF", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
93 // TODO(edisonn): warn about missing default value for optional fields
94 return 0;
95 }
96
97 bool SkPdfFDFFieldDictionary::has_SetF() const {
98 return get("SetF", "") != NULL;
99 }
100
101 int64_t SkPdfFDFFieldDictionary::ClrF(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("ClrF", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
105 // TODO(edisonn): warn about missing default value for optional fields
106 return 0;
107 }
108
109 bool SkPdfFDFFieldDictionary::has_ClrF() const {
110 return get("ClrF", "") != NULL;
111 }
112
113 SkPdfDictionary* SkPdfFDFFieldDictionary::AP(SkPdfNativeDoc* doc) {
114 SkPdfNativeObject* ret = get("AP", "");
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 SkPdfFDFFieldDictionary::has_AP() const {
122 return get("AP", "") != NULL;
123 }
124
125 SkPdfDictionary* SkPdfFDFFieldDictionary::APRef(SkPdfNativeDoc* doc) {
126 SkPdfNativeObject* ret = get("APRef", "");
127 if (doc) {ret = doc->resolveReference(ret);}
128 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
129 // TODO(edisonn): warn about missing default value for optional fields
130 return NULL;
131 }
132
133 bool SkPdfFDFFieldDictionary::has_APRef() const {
134 return get("APRef", "") != NULL;
135 }
136
137 SkPdfDictionary* SkPdfFDFFieldDictionary::IF(SkPdfNativeDoc* doc) {
138 SkPdfNativeObject* ret = get("IF", "");
139 if (doc) {ret = doc->resolveReference(ret);}
140 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
141 // TODO(edisonn): warn about missing default value for optional fields
142 return NULL;
143 }
144
145 bool SkPdfFDFFieldDictionary::has_IF() const {
146 return get("IF", "") != NULL;
147 }
148
149 SkPdfArray* SkPdfFDFFieldDictionary::Opt(SkPdfNativeDoc* doc) {
150 SkPdfNativeObject* ret = get("Opt", "");
151 if (doc) {ret = doc->resolveReference(ret);}
152 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
153 // TODO(edisonn): warn about missing default value for optional fields
154 return NULL;
155 }
156
157 bool SkPdfFDFFieldDictionary::has_Opt() const {
158 return get("Opt", "") != NULL;
159 }
160
161 SkPdfDictionary* SkPdfFDFFieldDictionary::A(SkPdfNativeDoc* doc) {
162 SkPdfNativeObject* ret = get("A", "");
163 if (doc) {ret = doc->resolveReference(ret);}
164 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
165 // TODO(edisonn): warn about missing default value for optional fields
166 return NULL;
167 }
168
169 bool SkPdfFDFFieldDictionary::has_A() const {
170 return get("A", "") != NULL;
171 }
172
173 SkPdfDictionary* SkPdfFDFFieldDictionary::AA(SkPdfNativeDoc* doc) {
174 SkPdfNativeObject* ret = get("AA", "");
175 if (doc) {ret = doc->resolveReference(ret);}
176 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
177 // TODO(edisonn): warn about missing default value for optional fields
178 return NULL;
179 }
180
181 bool SkPdfFDFFieldDictionary::has_AA() const {
182 return get("AA", "") != NULL;
183 }
184
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698