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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfGraphicsStateDictionary_autogen.cpp

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 "SkPdfGraphicsStateDictionary_autogen.h"
2
3 std::string SkPdfGraphicsStateDictionary::Type() const {
4 std::string ret;
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &r et)) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return "";
8 }
9
10 double SkPdfGraphicsStateDictionary::LW() const {
11 double ret;
12 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW", "", &r et)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
28 return 0;
29 }
30
31 double SkPdfGraphicsStateDictionary::ML() const {
32 double ret;
33 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML", "", &r et)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
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 pdf s
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 pdf s
63 return false;
64 }
65
66 long SkPdfGraphicsStateDictionary::OPM() const {
67 long ret;
68 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM", "", &re t)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
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 pdf s
91 return SkPdfFunction();
92 }
93
94 std::string SkPdfGraphicsStateDictionary::getBG2AsName() const {
95 std::string ret = "";
96 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &re t)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
112 return SkPdfFunction();
113 }
114
115 std::string SkPdfGraphicsStateDictionary::getUCR2AsName() const {
116 std::string ret = "";
117 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &r et)) return ret;
118 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
126 return SkPdfFunction();
127 }
128
129 SkPdfArray* SkPdfGraphicsStateDictionary::getTRAsArray() const {
130 SkPdfArray* ret = NULL;
131 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &re t)) return ret;
132 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
147 return SkPdfFunction();
148 }
149
150 SkPdfArray* SkPdfGraphicsStateDictionary::getTR2AsArray() const {
151 SkPdfArray* ret = NULL;
152 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &r et)) return ret;
153 // TODO(edisonn): warn about missing required field, assert for known good pdf s
154 return NULL;
155 }
156
157 std::string SkPdfGraphicsStateDictionary::getTR2AsName() const {
158 std::string ret = "";
159 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &re t)) return ret;
160 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
168 return NULL;
169 }
170
171 SkPdfStream* SkPdfGraphicsStateDictionary::getHTAsStream() const {
172 SkPdfStream* ret = NULL;
173 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &r et)) return ret;
174 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
182 return "";
183 }
184
185 double SkPdfGraphicsStateDictionary::FL() const {
186 double ret;
187 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL", "", &r et)) return ret;
188 // TODO(edisonn): warn about missing required field, assert for known good pdf s
189 return 0;
190 }
191
192 double SkPdfGraphicsStateDictionary::SM() const {
193 double ret;
194 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM", "", &r et)) return ret;
195 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
210 return "";
211 }
212
213 SkPdfArray* SkPdfGraphicsStateDictionary::getBMAsArray() const {
214 SkPdfArray* ret = NULL;
215 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &re t)) return ret;
216 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
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 pdf s
231 return "";
232 }
233
234 double SkPdfGraphicsStateDictionary::CA() const {
235 double ret;
236 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &r et)) return ret;
237 // TODO(edisonn): warn about missing required field, assert for known good pdf s
238 return 0;
239 }
240
241 double SkPdfGraphicsStateDictionary::ca() const {
242 double ret;
243 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca", "", &r et)) return ret;
244 // TODO(edisonn): warn about missing required field, assert for known good pdf s
245 return 0;
246 }
247
248 bool SkPdfGraphicsStateDictionary::AIS() const {
249 bool ret;
250 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS", "", &re t)) return ret;
251 // TODO(edisonn): warn about missing required field, assert for known good pdf s
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 pdf s
259 return false;
260 }
261
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698