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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfPageObjectDictionary_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 "SkPdfPageObjectDictionary_autogen.h"
2
3 std::string SkPdfPageObjectDictionary::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 SkPdfDictionary* SkPdfPageObjectDictionary::Parent() const {
11 SkPdfDictionary* ret;
12 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent" , "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return NULL;
15 }
16
17 SkPdfDate SkPdfPageObjectDictionary::LastModified() const {
18 SkPdfDate ret;
19 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified" , "", &ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return SkPdfDate();
22 }
23
24 SkPdfDictionary* SkPdfPageObjectDictionary::Resources() const {
25 SkPdfDictionary* ret;
26 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resourc es", "", &ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return NULL;
29 }
30
31 SkRect* SkPdfPageObjectDictionary::MediaBox() const {
32 SkRect* ret;
33 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MediaBox", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return NULL;
36 }
37
38 SkRect* SkPdfPageObjectDictionary::CropBox() const {
39 SkRect* ret;
40 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropBox", " ", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return NULL;
43 }
44
45 SkRect* SkPdfPageObjectDictionary::BleedBox() const {
46 SkRect* ret;
47 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BleedBox", "", &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return NULL;
50 }
51
52 SkRect* SkPdfPageObjectDictionary::TrimBox() const {
53 SkRect* ret;
54 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimBox", " ", &ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return NULL;
57 }
58
59 SkRect* SkPdfPageObjectDictionary::ArtBox() const {
60 SkRect* ret;
61 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBox", "" , &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return NULL;
64 }
65
66 SkPdfDictionary* SkPdfPageObjectDictionary::BoxColorInfo() const {
67 SkPdfDictionary* ret;
68 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BoxColo rInfo", "", &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return NULL;
71 }
72
73 SkPdfStream* SkPdfPageObjectDictionary::getContentsAsStream() const {
74 SkPdfStream* ret = NULL;
75 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return NULL;
78 }
79
80 SkPdfArray* SkPdfPageObjectDictionary::getContentsAsArray() const {
81 SkPdfArray* ret = NULL;
82 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", " ", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return NULL;
85 }
86
87 long SkPdfPageObjectDictionary::Rotate() const {
88 long ret;
89 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rotate", "", &ret)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return 0;
92 }
93
94 SkPdfDictionary* SkPdfPageObjectDictionary::Group() const {
95 SkPdfDictionary* ret;
96 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Group", "", &ret)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
98 return NULL;
99 }
100
101 SkPdfStream* SkPdfPageObjectDictionary::Thumb() const {
102 SkPdfStream* ret;
103 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb", "", &ret)) return ret;
104 // TODO(edisonn): warn about missing required field, assert for known good pdf s
105 return NULL;
106 }
107
108 SkPdfArray* SkPdfPageObjectDictionary::B() const {
109 SkPdfArray* ret;
110 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret )) return ret;
111 // TODO(edisonn): warn about missing required field, assert for known good pdf s
112 return NULL;
113 }
114
115 double SkPdfPageObjectDictionary::Dur() const {
116 double ret;
117 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dur", "", & ret)) return ret;
118 // TODO(edisonn): warn about missing required field, assert for known good pdf s
119 return 0;
120 }
121
122 SkPdfDictionary* SkPdfPageObjectDictionary::Trans() const {
123 SkPdfDictionary* ret;
124 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trans", "", &ret)) return ret;
125 // TODO(edisonn): warn about missing required field, assert for known good pdf s
126 return NULL;
127 }
128
129 SkPdfArray* SkPdfPageObjectDictionary::Annots() const {
130 SkPdfArray* ret;
131 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "", &ret)) return ret;
132 // TODO(edisonn): warn about missing required field, assert for known good pdf s
133 return NULL;
134 }
135
136 SkPdfDictionary* SkPdfPageObjectDictionary::AA() const {
137 SkPdfDictionary* ret;
138 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "" , &ret)) return ret;
139 // TODO(edisonn): warn about missing required field, assert for known good pdf s
140 return NULL;
141 }
142
143 SkPdfStream* SkPdfPageObjectDictionary::Metadata() const {
144 SkPdfStream* ret;
145 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
146 // TODO(edisonn): warn about missing required field, assert for known good pdf s
147 return NULL;
148 }
149
150 SkPdfDictionary* SkPdfPageObjectDictionary::PieceInfo() const {
151 SkPdfDictionary* ret;
152 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PieceIn fo", "", &ret)) return ret;
153 // TODO(edisonn): warn about missing required field, assert for known good pdf s
154 return NULL;
155 }
156
157 long SkPdfPageObjectDictionary::StructParents() const {
158 long ret;
159 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents ", "", &ret)) return ret;
160 // TODO(edisonn): warn about missing required field, assert for known good pdf s
161 return 0;
162 }
163
164 std::string SkPdfPageObjectDictionary::ID() const {
165 std::string ret;
166 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &r et)) return ret;
167 // TODO(edisonn): warn about missing required field, assert for known good pdf s
168 return "";
169 }
170
171 double SkPdfPageObjectDictionary::PZ() const {
172 double ret;
173 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PZ", "", &r et)) return ret;
174 // TODO(edisonn): warn about missing required field, assert for known good pdf s
175 return 0;
176 }
177
178 SkPdfDictionary* SkPdfPageObjectDictionary::SeparationInfo() const {
179 SkPdfDictionary* ret;
180 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separat ionInfo", "", &ret)) return ret;
181 // TODO(edisonn): warn about missing required field, assert for known good pdf s
182 return NULL;
183 }
184
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698