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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfNameDictionary_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 "SkPdfNameDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 bool SkPdfNameDictionary::isDestsAName(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("Dests", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 return ret != NULL && ret->isName();
9 }
10
11 SkString SkPdfNameDictionary::getDestsAsName(SkPdfNativeDoc* doc) {
12 SkPdfNativeObject* ret = get("Dests", "");
13 if (doc) {ret = doc->resolveReference(ret);}
14 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
15 // TODO(edisonn): warn about missing default value for optional fields
16 return SkString();
17 }
18
19 bool SkPdfNameDictionary::isDestsATree(SkPdfNativeDoc* doc) {
20 SkPdfNativeObject* ret = get("Dests", "");
21 if (doc) {ret = doc->resolveReference(ret);}
22 return ret != NULL && false;
23 }
24
25 SkPdfTree SkPdfNameDictionary::getDestsAsTree(SkPdfNativeDoc* doc) {
26 SkPdfNativeObject* ret = get("Dests", "");
27 if (doc) {ret = doc->resolveReference(ret);}
28 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
29 // TODO(edisonn): warn about missing default value for optional fields
30 return SkPdfTree();
31 }
32
33 bool SkPdfNameDictionary::has_Dests() const {
34 return get("Dests", "") != NULL;
35 }
36
37 bool SkPdfNameDictionary::isAPAName(SkPdfNativeDoc* doc) {
38 SkPdfNativeObject* ret = get("AP", "");
39 if (doc) {ret = doc->resolveReference(ret);}
40 return ret != NULL && ret->isName();
41 }
42
43 SkString SkPdfNameDictionary::getAPAsName(SkPdfNativeDoc* doc) {
44 SkPdfNativeObject* ret = get("AP", "");
45 if (doc) {ret = doc->resolveReference(ret);}
46 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
47 // TODO(edisonn): warn about missing default value for optional fields
48 return SkString();
49 }
50
51 bool SkPdfNameDictionary::isAPATree(SkPdfNativeDoc* doc) {
52 SkPdfNativeObject* ret = get("AP", "");
53 if (doc) {ret = doc->resolveReference(ret);}
54 return ret != NULL && false;
55 }
56
57 SkPdfTree SkPdfNameDictionary::getAPAsTree(SkPdfNativeDoc* doc) {
58 SkPdfNativeObject* ret = get("AP", "");
59 if (doc) {ret = doc->resolveReference(ret);}
60 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
61 // TODO(edisonn): warn about missing default value for optional fields
62 return SkPdfTree();
63 }
64
65 bool SkPdfNameDictionary::has_AP() const {
66 return get("AP", "") != NULL;
67 }
68
69 bool SkPdfNameDictionary::isJavaScriptAName(SkPdfNativeDoc* doc) {
70 SkPdfNativeObject* ret = get("JavaScript", "");
71 if (doc) {ret = doc->resolveReference(ret);}
72 return ret != NULL && ret->isName();
73 }
74
75 SkString SkPdfNameDictionary::getJavaScriptAsName(SkPdfNativeDoc* doc) {
76 SkPdfNativeObject* ret = get("JavaScript", "");
77 if (doc) {ret = doc->resolveReference(ret);}
78 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
79 // TODO(edisonn): warn about missing default value for optional fields
80 return SkString();
81 }
82
83 bool SkPdfNameDictionary::isJavaScriptATree(SkPdfNativeDoc* doc) {
84 SkPdfNativeObject* ret = get("JavaScript", "");
85 if (doc) {ret = doc->resolveReference(ret);}
86 return ret != NULL && false;
87 }
88
89 SkPdfTree SkPdfNameDictionary::getJavaScriptAsTree(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("JavaScript", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
93 // TODO(edisonn): warn about missing default value for optional fields
94 return SkPdfTree();
95 }
96
97 bool SkPdfNameDictionary::has_JavaScript() const {
98 return get("JavaScript", "") != NULL;
99 }
100
101 bool SkPdfNameDictionary::isPagesAName(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("Pages", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 return ret != NULL && ret->isName();
105 }
106
107 SkString SkPdfNameDictionary::getPagesAsName(SkPdfNativeDoc* doc) {
108 SkPdfNativeObject* ret = get("Pages", "");
109 if (doc) {ret = doc->resolveReference(ret);}
110 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
111 // TODO(edisonn): warn about missing default value for optional fields
112 return SkString();
113 }
114
115 bool SkPdfNameDictionary::isPagesATree(SkPdfNativeDoc* doc) {
116 SkPdfNativeObject* ret = get("Pages", "");
117 if (doc) {ret = doc->resolveReference(ret);}
118 return ret != NULL && false;
119 }
120
121 SkPdfTree SkPdfNameDictionary::getPagesAsTree(SkPdfNativeDoc* doc) {
122 SkPdfNativeObject* ret = get("Pages", "");
123 if (doc) {ret = doc->resolveReference(ret);}
124 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
125 // TODO(edisonn): warn about missing default value for optional fields
126 return SkPdfTree();
127 }
128
129 bool SkPdfNameDictionary::has_Pages() const {
130 return get("Pages", "") != NULL;
131 }
132
133 bool SkPdfNameDictionary::isTemplatesAName(SkPdfNativeDoc* doc) {
134 SkPdfNativeObject* ret = get("Templates", "");
135 if (doc) {ret = doc->resolveReference(ret);}
136 return ret != NULL && ret->isName();
137 }
138
139 SkString SkPdfNameDictionary::getTemplatesAsName(SkPdfNativeDoc* doc) {
140 SkPdfNativeObject* ret = get("Templates", "");
141 if (doc) {ret = doc->resolveReference(ret);}
142 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
143 // TODO(edisonn): warn about missing default value for optional fields
144 return SkString();
145 }
146
147 bool SkPdfNameDictionary::isTemplatesATree(SkPdfNativeDoc* doc) {
148 SkPdfNativeObject* ret = get("Templates", "");
149 if (doc) {ret = doc->resolveReference(ret);}
150 return ret != NULL && false;
151 }
152
153 SkPdfTree SkPdfNameDictionary::getTemplatesAsTree(SkPdfNativeDoc* doc) {
154 SkPdfNativeObject* ret = get("Templates", "");
155 if (doc) {ret = doc->resolveReference(ret);}
156 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
157 // TODO(edisonn): warn about missing default value for optional fields
158 return SkPdfTree();
159 }
160
161 bool SkPdfNameDictionary::has_Templates() const {
162 return get("Templates", "") != NULL;
163 }
164
165 bool SkPdfNameDictionary::isIDSAName(SkPdfNativeDoc* doc) {
166 SkPdfNativeObject* ret = get("IDS", "");
167 if (doc) {ret = doc->resolveReference(ret);}
168 return ret != NULL && ret->isName();
169 }
170
171 SkString SkPdfNameDictionary::getIDSAsName(SkPdfNativeDoc* doc) {
172 SkPdfNativeObject* ret = get("IDS", "");
173 if (doc) {ret = doc->resolveReference(ret);}
174 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
175 // TODO(edisonn): warn about missing default value for optional fields
176 return SkString();
177 }
178
179 bool SkPdfNameDictionary::isIDSATree(SkPdfNativeDoc* doc) {
180 SkPdfNativeObject* ret = get("IDS", "");
181 if (doc) {ret = doc->resolveReference(ret);}
182 return ret != NULL && false;
183 }
184
185 SkPdfTree SkPdfNameDictionary::getIDSAsTree(SkPdfNativeDoc* doc) {
186 SkPdfNativeObject* ret = get("IDS", "");
187 if (doc) {ret = doc->resolveReference(ret);}
188 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
189 // TODO(edisonn): warn about missing default value for optional fields
190 return SkPdfTree();
191 }
192
193 bool SkPdfNameDictionary::has_IDS() const {
194 return get("IDS", "") != NULL;
195 }
196
197 bool SkPdfNameDictionary::isURLSAName(SkPdfNativeDoc* doc) {
198 SkPdfNativeObject* ret = get("URLS", "");
199 if (doc) {ret = doc->resolveReference(ret);}
200 return ret != NULL && ret->isName();
201 }
202
203 SkString SkPdfNameDictionary::getURLSAsName(SkPdfNativeDoc* doc) {
204 SkPdfNativeObject* ret = get("URLS", "");
205 if (doc) {ret = doc->resolveReference(ret);}
206 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
207 // TODO(edisonn): warn about missing default value for optional fields
208 return SkString();
209 }
210
211 bool SkPdfNameDictionary::isURLSATree(SkPdfNativeDoc* doc) {
212 SkPdfNativeObject* ret = get("URLS", "");
213 if (doc) {ret = doc->resolveReference(ret);}
214 return ret != NULL && false;
215 }
216
217 SkPdfTree SkPdfNameDictionary::getURLSAsTree(SkPdfNativeDoc* doc) {
218 SkPdfNativeObject* ret = get("URLS", "");
219 if (doc) {ret = doc->resolveReference(ret);}
220 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
221 // TODO(edisonn): warn about missing default value for optional fields
222 return SkPdfTree();
223 }
224
225 bool SkPdfNameDictionary::has_URLS() const {
226 return get("URLS", "") != NULL;
227 }
228
229 bool SkPdfNameDictionary::isEmbeddedFilesAName(SkPdfNativeDoc* doc) {
230 SkPdfNativeObject* ret = get("EmbeddedFiles", "");
231 if (doc) {ret = doc->resolveReference(ret);}
232 return ret != NULL && ret->isName();
233 }
234
235 SkString SkPdfNameDictionary::getEmbeddedFilesAsName(SkPdfNativeDoc* doc) {
236 SkPdfNativeObject* ret = get("EmbeddedFiles", "");
237 if (doc) {ret = doc->resolveReference(ret);}
238 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
239 // TODO(edisonn): warn about missing default value for optional fields
240 return SkString();
241 }
242
243 bool SkPdfNameDictionary::isEmbeddedFilesATree(SkPdfNativeDoc* doc) {
244 SkPdfNativeObject* ret = get("EmbeddedFiles", "");
245 if (doc) {ret = doc->resolveReference(ret);}
246 return ret != NULL && false;
247 }
248
249 SkPdfTree SkPdfNameDictionary::getEmbeddedFilesAsTree(SkPdfNativeDoc* doc) {
250 SkPdfNativeObject* ret = get("EmbeddedFiles", "");
251 if (doc) {ret = doc->resolveReference(ret);}
252 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->treeValue();
253 // TODO(edisonn): warn about missing default value for optional fields
254 return SkPdfTree();
255 }
256
257 bool SkPdfNameDictionary::has_EmbeddedFiles() const {
258 return get("EmbeddedFiles", "") != NULL;
259 }
260
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698