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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfMapper_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 "SkPdfMapper_autogen.h"
2 #include "SkPdfUtils.h"
3 #include "SkPdfNativeObject.h"
4
5 SkPdfNativeObjectType SkPdfMapper::mapDictionary(const SkPdfNativeObject* in) co nst {
6 if (in == NULL || !isDictionary(in)) return kNone_SkPdfNativeObjectType;
7
8 SkPdfNativeObjectType ret;
9 if (kNone_SkPdfNativeObjectType != (ret = mapALinkAnnotationDictionary(in))) r eturn ret;
10 if (kNone_SkPdfNativeObjectType != (ret = mapActionDictionary(in))) return ret ;
11 if (kNone_SkPdfNativeObjectType != (ret = mapAlternateImageDictionary(in))) re turn ret;
12 if (kNone_SkPdfNativeObjectType != (ret = mapAnnotationActionsDictionary(in))) return ret;
13 if (kNone_SkPdfNativeObjectType != (ret = mapAnnotationDictionary(in))) return ret;
14 if (kNone_SkPdfNativeObjectType != (ret = mapAppearanceCharacteristicsDictiona ry(in))) return ret;
15 if (kNone_SkPdfNativeObjectType != (ret = mapAppearanceDictionary(in))) return ret;
16 if (kNone_SkPdfNativeObjectType != (ret = mapApplicationDataDictionary(in))) r eturn ret;
17 if (kNone_SkPdfNativeObjectType != (ret = mapArtifactsDictionary(in))) return ret;
18 if (kNone_SkPdfNativeObjectType != (ret = mapAttributeObjectDictionary(in))) r eturn ret;
19 if (kNone_SkPdfNativeObjectType != (ret = mapBeadDictionary(in))) return ret;
20 if (kNone_SkPdfNativeObjectType != (ret = mapBlockLevelStructureElementsDictio nary(in))) return ret;
21 if (kNone_SkPdfNativeObjectType != (ret = mapBorderStyleDictionary(in))) retur n ret;
22 if (kNone_SkPdfNativeObjectType != (ret = mapBoxColorInformationDictionary(in) )) return ret;
23 if (kNone_SkPdfNativeObjectType != (ret = mapBoxStyleDictionary(in))) return r et;
24 if (kNone_SkPdfNativeObjectType != (ret = mapCIDFontDescriptorDictionary(in))) return ret;
25 if (kNone_SkPdfNativeObjectType != (ret = mapCIDFontDictionary(in))) return re t;
26 if (kNone_SkPdfNativeObjectType != (ret = mapCIDSystemInfoDictionary(in))) ret urn ret;
27 if (kNone_SkPdfNativeObjectType != (ret = mapCMapDictionary(in))) return ret;
28 if (kNone_SkPdfNativeObjectType != (ret = mapCalgrayColorSpaceDictionary(in))) return ret;
29 if (kNone_SkPdfNativeObjectType != (ret = mapCalrgbColorSpaceDictionary(in))) return ret;
30 if (kNone_SkPdfNativeObjectType != (ret = mapCatalogDictionary(in))) return re t;
31 if (kNone_SkPdfNativeObjectType != (ret = mapCcittfaxdecodeFilterDictionary(in ))) return ret;
32 if (kNone_SkPdfNativeObjectType != (ret = mapCheckboxFieldDictionary(in))) ret urn ret;
33 if (kNone_SkPdfNativeObjectType != (ret = mapChoiceFieldDictionary(in))) retur n ret;
34 if (kNone_SkPdfNativeObjectType != (ret = mapComponentsWithMetadataDictionary( in))) return ret;
35 if (kNone_SkPdfNativeObjectType != (ret = mapDctdecodeFilterDictionary(in))) r eturn ret;
36 if (kNone_SkPdfNativeObjectType != (ret = mapDeviceNColorSpaceDictionary(in))) return ret;
37 if (kNone_SkPdfNativeObjectType != (ret = mapDocumentCatalogActionsDictionary( in))) return ret;
38 if (kNone_SkPdfNativeObjectType != (ret = mapDocumentInformationDictionary(in) )) return ret;
39 if (kNone_SkPdfNativeObjectType != (ret = mapEmbeddedFileParameterDictionary(i n))) return ret;
40 if (kNone_SkPdfNativeObjectType != (ret = mapEmbeddedFileStreamDictionary(in)) ) return ret;
41 if (kNone_SkPdfNativeObjectType != (ret = mapEmbeddedFontStreamDictionary(in)) ) return ret;
42 if (kNone_SkPdfNativeObjectType != (ret = mapEncodingDictionary(in))) return r et;
43 if (kNone_SkPdfNativeObjectType != (ret = mapEncryptedEmbeddedFileStreamDictio nary(in))) return ret;
44 if (kNone_SkPdfNativeObjectType != (ret = mapEncryptionCommonDictionary(in))) return ret;
45 if (kNone_SkPdfNativeObjectType != (ret = mapFDFCatalogDictionary(in))) return ret;
46 if (kNone_SkPdfNativeObjectType != (ret = mapFDFDictionary(in))) return ret;
47 if (kNone_SkPdfNativeObjectType != (ret = mapFDFFieldDictionary(in))) return r et;
48 if (kNone_SkPdfNativeObjectType != (ret = mapFDFFileAnnotationDictionary(in))) return ret;
49 if (kNone_SkPdfNativeObjectType != (ret = mapFDFNamedPageReferenceDictionary(i n))) return ret;
50 if (kNone_SkPdfNativeObjectType != (ret = mapFDFPageDictionary(in))) return re t;
51 if (kNone_SkPdfNativeObjectType != (ret = mapFDFTemplateDictionary(in))) retur n ret;
52 if (kNone_SkPdfNativeObjectType != (ret = mapFDFTrailerDictionary(in))) return ret;
53 if (kNone_SkPdfNativeObjectType != (ret = mapFieldDictionary(in))) return ret;
54 if (kNone_SkPdfNativeObjectType != (ret = mapFileAttachmentAnnotationDictionar y(in))) return ret;
55 if (kNone_SkPdfNativeObjectType != (ret = mapFileSpecificationDictionary(in))) return ret;
56 if (kNone_SkPdfNativeObjectType != (ret = mapFileTrailerDictionary(in))) retur n ret;
57 if (kNone_SkPdfNativeObjectType != (ret = mapFontDescriptorDictionary(in))) re turn ret;
58 if (kNone_SkPdfNativeObjectType != (ret = mapFontDictionary(in))) return ret;
59 if (kNone_SkPdfNativeObjectType != (ret = mapFormFieldActionsDictionary(in))) return ret;
60 if (kNone_SkPdfNativeObjectType != (ret = mapFreeTextAnnotationDictionary(in)) ) return ret;
61 if (kNone_SkPdfNativeObjectType != (ret = mapFunctionCommonDictionary(in))) re turn ret;
62 if (kNone_SkPdfNativeObjectType != (ret = mapGoToActionDictionary(in))) return ret;
63 if (kNone_SkPdfNativeObjectType != (ret = mapGraphicsStateDictionary(in))) ret urn ret;
64 if (kNone_SkPdfNativeObjectType != (ret = mapGroupAttributesDictionary(in))) r eturn ret;
65 if (kNone_SkPdfNativeObjectType != (ret = mapHideActionDictionary(in))) return ret;
66 if (kNone_SkPdfNativeObjectType != (ret = mapIccProfileStreamDictionary(in))) return ret;
67 if (kNone_SkPdfNativeObjectType != (ret = mapIconFitDictionary(in))) return re t;
68 if (kNone_SkPdfNativeObjectType != (ret = mapImportDataActionDictionary(in))) return ret;
69 if (kNone_SkPdfNativeObjectType != (ret = mapInkAnnotationDictionary(in))) ret urn ret;
70 if (kNone_SkPdfNativeObjectType != (ret = mapInlineLevelStructureElementsDicti onary(in))) return ret;
71 if (kNone_SkPdfNativeObjectType != (ret = mapInteractiveFormDictionary(in))) r eturn ret;
72 if (kNone_SkPdfNativeObjectType != (ret = mapJavascriptActionDictionary(in))) return ret;
73 if (kNone_SkPdfNativeObjectType != (ret = mapJavascriptDictionary(in))) return ret;
74 if (kNone_SkPdfNativeObjectType != (ret = mapJbig2DecodeFilterDictionary(in))) return ret;
75 if (kNone_SkPdfNativeObjectType != (ret = mapLabColorSpaceDictionary(in))) ret urn ret;
76 if (kNone_SkPdfNativeObjectType != (ret = mapLaunchActionDictionary(in))) retu rn ret;
77 if (kNone_SkPdfNativeObjectType != (ret = mapLineAnnotationDictionary(in))) re turn ret;
78 if (kNone_SkPdfNativeObjectType != (ret = mapListAttributeDictionary(in))) ret urn ret;
79 if (kNone_SkPdfNativeObjectType != (ret = mapLzwdecodeAndFlatedecodeFiltersDic tionary(in))) return ret;
80 if (kNone_SkPdfNativeObjectType != (ret = mapMacOsFileInformationDictionary(in ))) return ret;
81 if (kNone_SkPdfNativeObjectType != (ret = mapMarkInformationDictionary(in))) r eturn ret;
82 if (kNone_SkPdfNativeObjectType != (ret = mapMarkedContentReferenceDictionary( in))) return ret;
83 if (kNone_SkPdfNativeObjectType != (ret = mapMarkupAnnotationsDictionary(in))) return ret;
84 if (kNone_SkPdfNativeObjectType != (ret = mapMetadataStreamDictionary(in))) re turn ret;
85 if (kNone_SkPdfNativeObjectType != (ret = mapMovieActionDictionary(in))) retur n ret;
86 if (kNone_SkPdfNativeObjectType != (ret = mapMovieActivationDictionary(in))) r eturn ret;
87 if (kNone_SkPdfNativeObjectType != (ret = mapMovieAnnotationDictionary(in))) r eturn ret;
88 if (kNone_SkPdfNativeObjectType != (ret = mapMovieDictionary(in))) return ret;
89 if (kNone_SkPdfNativeObjectType != (ret = mapNameDictionary(in))) return ret;
90 if (kNone_SkPdfNativeObjectType != (ret = mapNameTreeNodeDictionary(in))) retu rn ret;
91 if (kNone_SkPdfNativeObjectType != (ret = mapNamedActionsDictionary(in))) retu rn ret;
92 if (kNone_SkPdfNativeObjectType != (ret = mapNumberTreeNodeDictionary(in))) re turn ret;
93 if (kNone_SkPdfNativeObjectType != (ret = mapObjectReferenceDictionary(in))) r eturn ret;
94 if (kNone_SkPdfNativeObjectType != (ret = mapOpiVersionDictionary(in))) return ret;
95 if (kNone_SkPdfNativeObjectType != (ret = mapOutlineDictionary(in))) return re t;
96 if (kNone_SkPdfNativeObjectType != (ret = mapOutlineItemDictionary(in))) retur n ret;
97 if (kNone_SkPdfNativeObjectType != (ret = mapPDF_XOutputIntentDictionary(in))) return ret;
98 if (kNone_SkPdfNativeObjectType != (ret = mapPSXobjectDictionary(in))) return ret;
99 if (kNone_SkPdfNativeObjectType != (ret = mapPageLabelDictionary(in))) return ret;
100 if (kNone_SkPdfNativeObjectType != (ret = mapPageObjectActionsDictionary(in))) return ret;
101 if (kNone_SkPdfNativeObjectType != (ret = mapPageObjectDictionary(in))) return ret;
102 if (kNone_SkPdfNativeObjectType != (ret = mapPagePieceDictionary(in))) return ret;
103 if (kNone_SkPdfNativeObjectType != (ret = mapPageTreeNodeDictionary(in))) retu rn ret;
104 if (kNone_SkPdfNativeObjectType != (ret = mapPopUpAnnotationDictionary(in))) r eturn ret;
105 if (kNone_SkPdfNativeObjectType != (ret = mapPrinterMarkAnnotationDictionary(i n))) return ret;
106 if (kNone_SkPdfNativeObjectType != (ret = mapPrinterMarkFormDictionary(in))) r eturn ret;
107 if (kNone_SkPdfNativeObjectType != (ret = mapRadioButtonFieldDictionary(in))) return ret;
108 if (kNone_SkPdfNativeObjectType != (ret = mapReferenceDictionary(in))) return ret;
109 if (kNone_SkPdfNativeObjectType != (ret = mapRemoteGoToActionDictionary(in))) return ret;
110 if (kNone_SkPdfNativeObjectType != (ret = mapResetFormActionDictionary(in))) r eturn ret;
111 if (kNone_SkPdfNativeObjectType != (ret = mapResourceDictionary(in))) return r et;
112 if (kNone_SkPdfNativeObjectType != (ret = mapRubberStampAnnotationDictionary(i n))) return ret;
113 if (kNone_SkPdfNativeObjectType != (ret = mapSeparationDictionary(in))) return ret;
114 if (kNone_SkPdfNativeObjectType != (ret = mapShadingDictionary(in))) return re t;
115 if (kNone_SkPdfNativeObjectType != (ret = mapSignatureDictionary(in))) return ret;
116 if (kNone_SkPdfNativeObjectType != (ret = mapSoftMaskDictionary(in))) return r et;
117 if (kNone_SkPdfNativeObjectType != (ret = mapSoundActionDictionary(in))) retur n ret;
118 if (kNone_SkPdfNativeObjectType != (ret = mapSoundAnnotationDictionary(in))) r eturn ret;
119 if (kNone_SkPdfNativeObjectType != (ret = mapSoundObjectDictionary(in))) retur n ret;
120 if (kNone_SkPdfNativeObjectType != (ret = mapSourceInformationDictionary(in))) return ret;
121 if (kNone_SkPdfNativeObjectType != (ret = mapSquareOrCircleAnnotation(in))) re turn ret;
122 if (kNone_SkPdfNativeObjectType != (ret = mapStandardSecurityHandlerDictionary (in))) return ret;
123 if (kNone_SkPdfNativeObjectType != (ret = mapStandardStructureDictionary(in))) return ret;
124 if (kNone_SkPdfNativeObjectType != (ret = mapStreamCommonDictionary(in))) retu rn ret;
125 if (kNone_SkPdfNativeObjectType != (ret = mapStructureElementAccessDictionary( in))) return ret;
126 if (kNone_SkPdfNativeObjectType != (ret = mapStructureElementDictionary(in))) return ret;
127 if (kNone_SkPdfNativeObjectType != (ret = mapStructureTreeRootDictionary(in))) return ret;
128 if (kNone_SkPdfNativeObjectType != (ret = mapSubmitFormActionDictionary(in))) return ret;
129 if (kNone_SkPdfNativeObjectType != (ret = mapTableAttributesDictionary(in))) r eturn ret;
130 if (kNone_SkPdfNativeObjectType != (ret = mapTextAnnotationDictionary(in))) re turn ret;
131 if (kNone_SkPdfNativeObjectType != (ret = mapTextFieldDictionary(in))) return ret;
132 if (kNone_SkPdfNativeObjectType != (ret = mapThreadActionDictionary(in))) retu rn ret;
133 if (kNone_SkPdfNativeObjectType != (ret = mapThreadDictionary(in))) return ret ;
134 if (kNone_SkPdfNativeObjectType != (ret = mapTransitionDictionary(in))) return ret;
135 if (kNone_SkPdfNativeObjectType != (ret = mapTransparencyGroupDictionary(in))) return ret;
136 if (kNone_SkPdfNativeObjectType != (ret = mapTrapNetworkAnnotationDictionary(i n))) return ret;
137 if (kNone_SkPdfNativeObjectType != (ret = mapTrapNetworkAppearanceStreamDictio nary(in))) return ret;
138 if (kNone_SkPdfNativeObjectType != (ret = mapType0FunctionDictionary(in))) ret urn ret;
139 if (kNone_SkPdfNativeObjectType != (ret = mapType10HalftoneDictionary(in))) re turn ret;
140 if (kNone_SkPdfNativeObjectType != (ret = mapType16HalftoneDictionary(in))) re turn ret;
141 if (kNone_SkPdfNativeObjectType != (ret = mapType1HalftoneDictionary(in))) ret urn ret;
142 if (kNone_SkPdfNativeObjectType != (ret = mapType1PatternDictionary(in))) retu rn ret;
143 if (kNone_SkPdfNativeObjectType != (ret = mapType2FunctionDictionary(in))) ret urn ret;
144 if (kNone_SkPdfNativeObjectType != (ret = mapType2PatternDictionary(in))) retu rn ret;
145 if (kNone_SkPdfNativeObjectType != (ret = mapType3FunctionDictionary(in))) ret urn ret;
146 if (kNone_SkPdfNativeObjectType != (ret = mapType5HalftoneDictionary(in))) ret urn ret;
147 if (kNone_SkPdfNativeObjectType != (ret = mapType6HalftoneDictionary(in))) ret urn ret;
148 if (kNone_SkPdfNativeObjectType != (ret = mapURIActionDictionary(in))) return ret;
149 if (kNone_SkPdfNativeObjectType != (ret = mapURIDictionary(in))) return ret;
150 if (kNone_SkPdfNativeObjectType != (ret = mapURLAliasDictionary(in))) return r et;
151 if (kNone_SkPdfNativeObjectType != (ret = mapVariableTextFieldDictionary(in))) return ret;
152 if (kNone_SkPdfNativeObjectType != (ret = mapViewerPreferencesDictionary(in))) return ret;
153 if (kNone_SkPdfNativeObjectType != (ret = mapWebCaptureCommandDictionary(in))) return ret;
154 if (kNone_SkPdfNativeObjectType != (ret = mapWebCaptureCommandSettingsDictiona ry(in))) return ret;
155 if (kNone_SkPdfNativeObjectType != (ret = mapWebCaptureDictionary(in))) return ret;
156 if (kNone_SkPdfNativeObjectType != (ret = mapWebCaptureImageSetDictionary(in)) ) return ret;
157 if (kNone_SkPdfNativeObjectType != (ret = mapWebCaptureInformationDictionary(i n))) return ret;
158 if (kNone_SkPdfNativeObjectType != (ret = mapWebCapturePageSetDictionary(in))) return ret;
159 if (kNone_SkPdfNativeObjectType != (ret = mapWidgetAnnotationDictionary(in))) return ret;
160 if (kNone_SkPdfNativeObjectType != (ret = mapWindowsLaunchActionDictionary(in) )) return ret;
161 if (kNone_SkPdfNativeObjectType != (ret = mapXObjectDictionary(in))) return re t;
162
163 return kDictionary_SkPdfNativeObjectType;
164 }
165
166 SkPdfNativeObjectType SkPdfMapper::mapXObjectDictionary(const SkPdfNativeObject* in) const {
167 if (in == NULL || !isXObjectDictionary(in)) return kNone_SkPdfNativeObjectType ;
168
169 SkPdfNativeObjectType ret;
170 if (kNone_SkPdfNativeObjectType != (ret = mapImageDictionary(in))) return ret;
171 if (kNone_SkPdfNativeObjectType != (ret = mapType1FormDictionary(in))) return ret;
172
173 return kXObjectDictionary_SkPdfNativeObjectType;
174 }
175
176 SkPdfNativeObjectType SkPdfMapper::mapFontDictionary(const SkPdfNativeObject* in ) const {
177 if (in == NULL || !isFontDictionary(in)) return kNone_SkPdfNativeObjectType;
178
179 SkPdfNativeObjectType ret;
180 if (kNone_SkPdfNativeObjectType != (ret = mapType0FontDictionary(in))) return ret;
181 if (kNone_SkPdfNativeObjectType != (ret = mapType1FontDictionary(in))) return ret;
182
183 return kFontDictionary_SkPdfNativeObjectType;
184 }
185
186 SkPdfNativeObjectType SkPdfMapper::mapTrueTypeFontDictionary(const SkPdfNativeOb ject* in) const {
187 if (in == NULL || !isTrueTypeFontDictionary(in)) return kNone_SkPdfNativeObjec tType;
188
189
190 return kTrueTypeFontDictionary_SkPdfNativeObjectType;
191 }
192
193 SkPdfNativeObjectType SkPdfMapper::mapStreamCommonDictionary(const SkPdfNativeOb ject* in) const {
194 if (in == NULL || !isStreamCommonDictionary(in)) return kNone_SkPdfNativeObjec tType;
195
196
197 return kStreamCommonDictionary_SkPdfNativeObjectType;
198 }
199
200 SkPdfNativeObjectType SkPdfMapper::mapLzwdecodeAndFlatedecodeFiltersDictionary(c onst SkPdfNativeObject* in) const {
201 if (in == NULL || !isLzwdecodeAndFlatedecodeFiltersDictionary(in)) return kNon e_SkPdfNativeObjectType;
202
203
204 return kLzwdecodeAndFlatedecodeFiltersDictionary_SkPdfNativeObjectType;
205 }
206
207 SkPdfNativeObjectType SkPdfMapper::mapCcittfaxdecodeFilterDictionary(const SkPdf NativeObject* in) const {
208 if (in == NULL || !isCcittfaxdecodeFilterDictionary(in)) return kNone_SkPdfNat iveObjectType;
209
210
211 return kCcittfaxdecodeFilterDictionary_SkPdfNativeObjectType;
212 }
213
214 SkPdfNativeObjectType SkPdfMapper::mapJbig2DecodeFilterDictionary(const SkPdfNat iveObject* in) const {
215 if (in == NULL || !isJbig2DecodeFilterDictionary(in)) return kNone_SkPdfNative ObjectType;
216
217
218 return kJbig2DecodeFilterDictionary_SkPdfNativeObjectType;
219 }
220
221 SkPdfNativeObjectType SkPdfMapper::mapDctdecodeFilterDictionary(const SkPdfNativ eObject* in) const {
222 if (in == NULL || !isDctdecodeFilterDictionary(in)) return kNone_SkPdfNativeOb jectType;
223
224
225 return kDctdecodeFilterDictionary_SkPdfNativeObjectType;
226 }
227
228 SkPdfNativeObjectType SkPdfMapper::mapFileTrailerDictionary(const SkPdfNativeObj ect* in) const {
229 if (in == NULL || !isFileTrailerDictionary(in)) return kNone_SkPdfNativeObject Type;
230
231
232 return kFileTrailerDictionary_SkPdfNativeObjectType;
233 }
234
235 SkPdfNativeObjectType SkPdfMapper::mapEncryptionCommonDictionary(const SkPdfNati veObject* in) const {
236 if (in == NULL || !isEncryptionCommonDictionary(in)) return kNone_SkPdfNativeO bjectType;
237
238
239 return kEncryptionCommonDictionary_SkPdfNativeObjectType;
240 }
241
242 SkPdfNativeObjectType SkPdfMapper::mapStandardSecurityHandlerDictionary(const Sk PdfNativeObject* in) const {
243 if (in == NULL || !isStandardSecurityHandlerDictionary(in)) return kNone_SkPdf NativeObjectType;
244
245
246 return kStandardSecurityHandlerDictionary_SkPdfNativeObjectType;
247 }
248
249 SkPdfNativeObjectType SkPdfMapper::mapCatalogDictionary(const SkPdfNativeObject* in) const {
250 if (in == NULL || !isCatalogDictionary(in)) return kNone_SkPdfNativeObjectType ;
251
252
253 return kCatalogDictionary_SkPdfNativeObjectType;
254 }
255
256 SkPdfNativeObjectType SkPdfMapper::mapPageTreeNodeDictionary(const SkPdfNativeOb ject* in) const {
257 if (in == NULL || !isPageTreeNodeDictionary(in)) return kNone_SkPdfNativeObjec tType;
258
259
260 return kPageTreeNodeDictionary_SkPdfNativeObjectType;
261 }
262
263 SkPdfNativeObjectType SkPdfMapper::mapPageObjectDictionary(const SkPdfNativeObje ct* in) const {
264 if (in == NULL || !isPageObjectDictionary(in)) return kNone_SkPdfNativeObjectT ype;
265
266
267 return kPageObjectDictionary_SkPdfNativeObjectType;
268 }
269
270 SkPdfNativeObjectType SkPdfMapper::mapNameDictionary(const SkPdfNativeObject* in ) const {
271 if (in == NULL || !isNameDictionary(in)) return kNone_SkPdfNativeObjectType;
272
273
274 return kNameDictionary_SkPdfNativeObjectType;
275 }
276
277 SkPdfNativeObjectType SkPdfMapper::mapResourceDictionary(const SkPdfNativeObject * in) const {
278 if (in == NULL || !isResourceDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
279
280
281 return kResourceDictionary_SkPdfNativeObjectType;
282 }
283
284 SkPdfNativeObjectType SkPdfMapper::mapNameTreeNodeDictionary(const SkPdfNativeOb ject* in) const {
285 if (in == NULL || !isNameTreeNodeDictionary(in)) return kNone_SkPdfNativeObjec tType;
286
287
288 return kNameTreeNodeDictionary_SkPdfNativeObjectType;
289 }
290
291 SkPdfNativeObjectType SkPdfMapper::mapNumberTreeNodeDictionary(const SkPdfNative Object* in) const {
292 if (in == NULL || !isNumberTreeNodeDictionary(in)) return kNone_SkPdfNativeObj ectType;
293
294
295 return kNumberTreeNodeDictionary_SkPdfNativeObjectType;
296 }
297
298 SkPdfNativeObjectType SkPdfMapper::mapFunctionCommonDictionary(const SkPdfNative Object* in) const {
299 if (in == NULL || !isFunctionCommonDictionary(in)) return kNone_SkPdfNativeObj ectType;
300
301
302 return kFunctionCommonDictionary_SkPdfNativeObjectType;
303 }
304
305 SkPdfNativeObjectType SkPdfMapper::mapType0FunctionDictionary(const SkPdfNativeO bject* in) const {
306 if (in == NULL || !isType0FunctionDictionary(in)) return kNone_SkPdfNativeObje ctType;
307
308
309 return kType0FunctionDictionary_SkPdfNativeObjectType;
310 }
311
312 SkPdfNativeObjectType SkPdfMapper::mapType2FunctionDictionary(const SkPdfNativeO bject* in) const {
313 if (in == NULL || !isType2FunctionDictionary(in)) return kNone_SkPdfNativeObje ctType;
314
315
316 return kType2FunctionDictionary_SkPdfNativeObjectType;
317 }
318
319 SkPdfNativeObjectType SkPdfMapper::mapType3FunctionDictionary(const SkPdfNativeO bject* in) const {
320 if (in == NULL || !isType3FunctionDictionary(in)) return kNone_SkPdfNativeObje ctType;
321
322
323 return kType3FunctionDictionary_SkPdfNativeObjectType;
324 }
325
326 SkPdfNativeObjectType SkPdfMapper::mapFileSpecificationDictionary(const SkPdfNat iveObject* in) const {
327 if (in == NULL || !isFileSpecificationDictionary(in)) return kNone_SkPdfNative ObjectType;
328
329
330 return kFileSpecificationDictionary_SkPdfNativeObjectType;
331 }
332
333 SkPdfNativeObjectType SkPdfMapper::mapEmbeddedFileStreamDictionary(const SkPdfNa tiveObject* in) const {
334 if (in == NULL || !isEmbeddedFileStreamDictionary(in)) return kNone_SkPdfNativ eObjectType;
335
336
337 return kEmbeddedFileStreamDictionary_SkPdfNativeObjectType;
338 }
339
340 SkPdfNativeObjectType SkPdfMapper::mapEmbeddedFileParameterDictionary(const SkPd fNativeObject* in) const {
341 if (in == NULL || !isEmbeddedFileParameterDictionary(in)) return kNone_SkPdfNa tiveObjectType;
342
343
344 return kEmbeddedFileParameterDictionary_SkPdfNativeObjectType;
345 }
346
347 SkPdfNativeObjectType SkPdfMapper::mapMacOsFileInformationDictionary(const SkPdf NativeObject* in) const {
348 if (in == NULL || !isMacOsFileInformationDictionary(in)) return kNone_SkPdfNat iveObjectType;
349
350
351 return kMacOsFileInformationDictionary_SkPdfNativeObjectType;
352 }
353
354 SkPdfNativeObjectType SkPdfMapper::mapGraphicsStateDictionary(const SkPdfNativeO bject* in) const {
355 if (in == NULL || !isGraphicsStateDictionary(in)) return kNone_SkPdfNativeObje ctType;
356
357
358 return kGraphicsStateDictionary_SkPdfNativeObjectType;
359 }
360
361 SkPdfNativeObjectType SkPdfMapper::mapCalgrayColorSpaceDictionary(const SkPdfNat iveObject* in) const {
362 if (in == NULL || !isCalgrayColorSpaceDictionary(in)) return kNone_SkPdfNative ObjectType;
363
364
365 return kCalgrayColorSpaceDictionary_SkPdfNativeObjectType;
366 }
367
368 SkPdfNativeObjectType SkPdfMapper::mapCalrgbColorSpaceDictionary(const SkPdfNati veObject* in) const {
369 if (in == NULL || !isCalrgbColorSpaceDictionary(in)) return kNone_SkPdfNativeO bjectType;
370
371
372 return kCalrgbColorSpaceDictionary_SkPdfNativeObjectType;
373 }
374
375 SkPdfNativeObjectType SkPdfMapper::mapLabColorSpaceDictionary(const SkPdfNativeO bject* in) const {
376 if (in == NULL || !isLabColorSpaceDictionary(in)) return kNone_SkPdfNativeObje ctType;
377
378
379 return kLabColorSpaceDictionary_SkPdfNativeObjectType;
380 }
381
382 SkPdfNativeObjectType SkPdfMapper::mapIccProfileStreamDictionary(const SkPdfNati veObject* in) const {
383 if (in == NULL || !isIccProfileStreamDictionary(in)) return kNone_SkPdfNativeO bjectType;
384
385
386 return kIccProfileStreamDictionary_SkPdfNativeObjectType;
387 }
388
389 SkPdfNativeObjectType SkPdfMapper::mapDeviceNColorSpaceDictionary(const SkPdfNat iveObject* in) const {
390 if (in == NULL || !isDeviceNColorSpaceDictionary(in)) return kNone_SkPdfNative ObjectType;
391
392
393 return kDeviceNColorSpaceDictionary_SkPdfNativeObjectType;
394 }
395
396 SkPdfNativeObjectType SkPdfMapper::mapType1PatternDictionary(const SkPdfNativeOb ject* in) const {
397 if (in == NULL || !isType1PatternDictionary(in)) return kNone_SkPdfNativeObjec tType;
398
399
400 return kType1PatternDictionary_SkPdfNativeObjectType;
401 }
402
403 SkPdfNativeObjectType SkPdfMapper::mapType2PatternDictionary(const SkPdfNativeOb ject* in) const {
404 if (in == NULL || !isType2PatternDictionary(in)) return kNone_SkPdfNativeObjec tType;
405
406
407 return kType2PatternDictionary_SkPdfNativeObjectType;
408 }
409
410 SkPdfNativeObjectType SkPdfMapper::mapShadingDictionary(const SkPdfNativeObject* in) const {
411 if (in == NULL || !isShadingDictionary(in)) return kNone_SkPdfNativeObjectType ;
412
413 SkPdfNativeObjectType ret;
414 if (kNone_SkPdfNativeObjectType != (ret = mapType1ShadingDictionary(in))) retu rn ret;
415 if (kNone_SkPdfNativeObjectType != (ret = mapType2ShadingDictionary(in))) retu rn ret;
416 if (kNone_SkPdfNativeObjectType != (ret = mapType3ShadingDictionary(in))) retu rn ret;
417 if (kNone_SkPdfNativeObjectType != (ret = mapType4ShadingDictionary(in))) retu rn ret;
418 if (kNone_SkPdfNativeObjectType != (ret = mapType5ShadingDictionary(in))) retu rn ret;
419 if (kNone_SkPdfNativeObjectType != (ret = mapType6ShadingDictionary(in))) retu rn ret;
420
421 return kShadingDictionary_SkPdfNativeObjectType;
422 }
423
424 SkPdfNativeObjectType SkPdfMapper::mapType1ShadingDictionary(const SkPdfNativeOb ject* in) const {
425 if (in == NULL || !isType1ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
426
427
428 return kType1ShadingDictionary_SkPdfNativeObjectType;
429 }
430
431 SkPdfNativeObjectType SkPdfMapper::mapType2ShadingDictionary(const SkPdfNativeOb ject* in) const {
432 if (in == NULL || !isType2ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
433
434
435 return kType2ShadingDictionary_SkPdfNativeObjectType;
436 }
437
438 SkPdfNativeObjectType SkPdfMapper::mapType3ShadingDictionary(const SkPdfNativeOb ject* in) const {
439 if (in == NULL || !isType3ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
440
441
442 return kType3ShadingDictionary_SkPdfNativeObjectType;
443 }
444
445 SkPdfNativeObjectType SkPdfMapper::mapType4ShadingDictionary(const SkPdfNativeOb ject* in) const {
446 if (in == NULL || !isType4ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
447
448
449 return kType4ShadingDictionary_SkPdfNativeObjectType;
450 }
451
452 SkPdfNativeObjectType SkPdfMapper::mapType5ShadingDictionary(const SkPdfNativeOb ject* in) const {
453 if (in == NULL || !isType5ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
454
455
456 return kType5ShadingDictionary_SkPdfNativeObjectType;
457 }
458
459 SkPdfNativeObjectType SkPdfMapper::mapType6ShadingDictionary(const SkPdfNativeOb ject* in) const {
460 if (in == NULL || !isType6ShadingDictionary(in)) return kNone_SkPdfNativeObjec tType;
461
462
463 return kType6ShadingDictionary_SkPdfNativeObjectType;
464 }
465
466 SkPdfNativeObjectType SkPdfMapper::mapImageDictionary(const SkPdfNativeObject* i n) const {
467 if (in == NULL || !isImageDictionary(in)) return kNone_SkPdfNativeObjectType;
468
469 SkPdfNativeObjectType ret;
470 if (kNone_SkPdfNativeObjectType != (ret = mapSoftMaskImageDictionary(in))) ret urn ret;
471
472 return kImageDictionary_SkPdfNativeObjectType;
473 }
474
475 SkPdfNativeObjectType SkPdfMapper::mapAlternateImageDictionary(const SkPdfNative Object* in) const {
476 if (in == NULL || !isAlternateImageDictionary(in)) return kNone_SkPdfNativeObj ectType;
477
478
479 return kAlternateImageDictionary_SkPdfNativeObjectType;
480 }
481
482 SkPdfNativeObjectType SkPdfMapper::mapType1FormDictionary(const SkPdfNativeObjec t* in) const {
483 if (in == NULL || !isType1FormDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
484
485
486 return kType1FormDictionary_SkPdfNativeObjectType;
487 }
488
489 SkPdfNativeObjectType SkPdfMapper::mapGroupAttributesDictionary(const SkPdfNativ eObject* in) const {
490 if (in == NULL || !isGroupAttributesDictionary(in)) return kNone_SkPdfNativeOb jectType;
491
492
493 return kGroupAttributesDictionary_SkPdfNativeObjectType;
494 }
495
496 SkPdfNativeObjectType SkPdfMapper::mapReferenceDictionary(const SkPdfNativeObjec t* in) const {
497 if (in == NULL || !isReferenceDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
498
499
500 return kReferenceDictionary_SkPdfNativeObjectType;
501 }
502
503 SkPdfNativeObjectType SkPdfMapper::mapPSXobjectDictionary(const SkPdfNativeObjec t* in) const {
504 if (in == NULL || !isPSXobjectDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
505
506
507 return kPSXobjectDictionary_SkPdfNativeObjectType;
508 }
509
510 SkPdfNativeObjectType SkPdfMapper::mapType1FontDictionary(const SkPdfNativeObjec t* in) const {
511 if (in == NULL || !isType1FontDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
512
513 SkPdfNativeObjectType ret;
514 if (kNone_SkPdfNativeObjectType != (ret = mapMultiMasterFontDictionary(in))) r eturn ret;
515 if (kNone_SkPdfNativeObjectType != (ret = mapTrueTypeFontDictionary(in))) retu rn ret;
516 if (kNone_SkPdfNativeObjectType != (ret = mapType3FontDictionary(in))) return ret;
517
518 return kType1FontDictionary_SkPdfNativeObjectType;
519 }
520
521 SkPdfNativeObjectType SkPdfMapper::mapType3FontDictionary(const SkPdfNativeObjec t* in) const {
522 if (in == NULL || !isType3FontDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
523
524
525 return kType3FontDictionary_SkPdfNativeObjectType;
526 }
527
528 SkPdfNativeObjectType SkPdfMapper::mapEncodingDictionary(const SkPdfNativeObject * in) const {
529 if (in == NULL || !isEncodingDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
530
531
532 return kEncodingDictionary_SkPdfNativeObjectType;
533 }
534
535 SkPdfNativeObjectType SkPdfMapper::mapCIDSystemInfoDictionary(const SkPdfNativeO bject* in) const {
536 if (in == NULL || !isCIDSystemInfoDictionary(in)) return kNone_SkPdfNativeObje ctType;
537
538
539 return kCIDSystemInfoDictionary_SkPdfNativeObjectType;
540 }
541
542 SkPdfNativeObjectType SkPdfMapper::mapCIDFontDictionary(const SkPdfNativeObject* in) const {
543 if (in == NULL || !isCIDFontDictionary(in)) return kNone_SkPdfNativeObjectType ;
544
545
546 return kCIDFontDictionary_SkPdfNativeObjectType;
547 }
548
549 SkPdfNativeObjectType SkPdfMapper::mapCMapDictionary(const SkPdfNativeObject* in ) const {
550 if (in == NULL || !isCMapDictionary(in)) return kNone_SkPdfNativeObjectType;
551
552
553 return kCMapDictionary_SkPdfNativeObjectType;
554 }
555
556 SkPdfNativeObjectType SkPdfMapper::mapType0FontDictionary(const SkPdfNativeObjec t* in) const {
557 if (in == NULL || !isType0FontDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
558
559
560 return kType0FontDictionary_SkPdfNativeObjectType;
561 }
562
563 SkPdfNativeObjectType SkPdfMapper::mapFontDescriptorDictionary(const SkPdfNative Object* in) const {
564 if (in == NULL || !isFontDescriptorDictionary(in)) return kNone_SkPdfNativeObj ectType;
565
566
567 return kFontDescriptorDictionary_SkPdfNativeObjectType;
568 }
569
570 SkPdfNativeObjectType SkPdfMapper::mapCIDFontDescriptorDictionary(const SkPdfNat iveObject* in) const {
571 if (in == NULL || !isCIDFontDescriptorDictionary(in)) return kNone_SkPdfNative ObjectType;
572
573
574 return kCIDFontDescriptorDictionary_SkPdfNativeObjectType;
575 }
576
577 SkPdfNativeObjectType SkPdfMapper::mapEmbeddedFontStreamDictionary(const SkPdfNa tiveObject* in) const {
578 if (in == NULL || !isEmbeddedFontStreamDictionary(in)) return kNone_SkPdfNativ eObjectType;
579
580
581 return kEmbeddedFontStreamDictionary_SkPdfNativeObjectType;
582 }
583
584 SkPdfNativeObjectType SkPdfMapper::mapType1HalftoneDictionary(const SkPdfNativeO bject* in) const {
585 if (in == NULL || !isType1HalftoneDictionary(in)) return kNone_SkPdfNativeObje ctType;
586
587
588 return kType1HalftoneDictionary_SkPdfNativeObjectType;
589 }
590
591 SkPdfNativeObjectType SkPdfMapper::mapType6HalftoneDictionary(const SkPdfNativeO bject* in) const {
592 if (in == NULL || !isType6HalftoneDictionary(in)) return kNone_SkPdfNativeObje ctType;
593
594
595 return kType6HalftoneDictionary_SkPdfNativeObjectType;
596 }
597
598 SkPdfNativeObjectType SkPdfMapper::mapType10HalftoneDictionary(const SkPdfNative Object* in) const {
599 if (in == NULL || !isType10HalftoneDictionary(in)) return kNone_SkPdfNativeObj ectType;
600
601
602 return kType10HalftoneDictionary_SkPdfNativeObjectType;
603 }
604
605 SkPdfNativeObjectType SkPdfMapper::mapType16HalftoneDictionary(const SkPdfNative Object* in) const {
606 if (in == NULL || !isType16HalftoneDictionary(in)) return kNone_SkPdfNativeObj ectType;
607
608
609 return kType16HalftoneDictionary_SkPdfNativeObjectType;
610 }
611
612 SkPdfNativeObjectType SkPdfMapper::mapType5HalftoneDictionary(const SkPdfNativeO bject* in) const {
613 if (in == NULL || !isType5HalftoneDictionary(in)) return kNone_SkPdfNativeObje ctType;
614
615
616 return kType5HalftoneDictionary_SkPdfNativeObjectType;
617 }
618
619 SkPdfNativeObjectType SkPdfMapper::mapSoftMaskDictionary(const SkPdfNativeObject * in) const {
620 if (in == NULL || !isSoftMaskDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
621
622
623 return kSoftMaskDictionary_SkPdfNativeObjectType;
624 }
625
626 SkPdfNativeObjectType SkPdfMapper::mapSoftMaskImageDictionary(const SkPdfNativeO bject* in) const {
627 if (in == NULL || !isSoftMaskImageDictionary(in)) return kNone_SkPdfNativeObje ctType;
628
629
630 return kSoftMaskImageDictionary_SkPdfNativeObjectType;
631 }
632
633 SkPdfNativeObjectType SkPdfMapper::mapTransparencyGroupDictionary(const SkPdfNat iveObject* in) const {
634 if (in == NULL || !isTransparencyGroupDictionary(in)) return kNone_SkPdfNative ObjectType;
635
636
637 return kTransparencyGroupDictionary_SkPdfNativeObjectType;
638 }
639
640 SkPdfNativeObjectType SkPdfMapper::mapViewerPreferencesDictionary(const SkPdfNat iveObject* in) const {
641 if (in == NULL || !isViewerPreferencesDictionary(in)) return kNone_SkPdfNative ObjectType;
642
643
644 return kViewerPreferencesDictionary_SkPdfNativeObjectType;
645 }
646
647 SkPdfNativeObjectType SkPdfMapper::mapOutlineDictionary(const SkPdfNativeObject* in) const {
648 if (in == NULL || !isOutlineDictionary(in)) return kNone_SkPdfNativeObjectType ;
649
650
651 return kOutlineDictionary_SkPdfNativeObjectType;
652 }
653
654 SkPdfNativeObjectType SkPdfMapper::mapOutlineItemDictionary(const SkPdfNativeObj ect* in) const {
655 if (in == NULL || !isOutlineItemDictionary(in)) return kNone_SkPdfNativeObject Type;
656
657
658 return kOutlineItemDictionary_SkPdfNativeObjectType;
659 }
660
661 SkPdfNativeObjectType SkPdfMapper::mapPageLabelDictionary(const SkPdfNativeObjec t* in) const {
662 if (in == NULL || !isPageLabelDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
663
664
665 return kPageLabelDictionary_SkPdfNativeObjectType;
666 }
667
668 SkPdfNativeObjectType SkPdfMapper::mapThreadDictionary(const SkPdfNativeObject* in) const {
669 if (in == NULL || !isThreadDictionary(in)) return kNone_SkPdfNativeObjectType;
670
671
672 return kThreadDictionary_SkPdfNativeObjectType;
673 }
674
675 SkPdfNativeObjectType SkPdfMapper::mapBeadDictionary(const SkPdfNativeObject* in ) const {
676 if (in == NULL || !isBeadDictionary(in)) return kNone_SkPdfNativeObjectType;
677
678
679 return kBeadDictionary_SkPdfNativeObjectType;
680 }
681
682 SkPdfNativeObjectType SkPdfMapper::mapTransitionDictionary(const SkPdfNativeObje ct* in) const {
683 if (in == NULL || !isTransitionDictionary(in)) return kNone_SkPdfNativeObjectT ype;
684
685
686 return kTransitionDictionary_SkPdfNativeObjectType;
687 }
688
689 SkPdfNativeObjectType SkPdfMapper::mapAnnotationDictionary(const SkPdfNativeObje ct* in) const {
690 if (in == NULL || !isAnnotationDictionary(in)) return kNone_SkPdfNativeObjectT ype;
691
692
693 return kAnnotationDictionary_SkPdfNativeObjectType;
694 }
695
696 SkPdfNativeObjectType SkPdfMapper::mapBorderStyleDictionary(const SkPdfNativeObj ect* in) const {
697 if (in == NULL || !isBorderStyleDictionary(in)) return kNone_SkPdfNativeObject Type;
698
699
700 return kBorderStyleDictionary_SkPdfNativeObjectType;
701 }
702
703 SkPdfNativeObjectType SkPdfMapper::mapAppearanceDictionary(const SkPdfNativeObje ct* in) const {
704 if (in == NULL || !isAppearanceDictionary(in)) return kNone_SkPdfNativeObjectT ype;
705
706
707 return kAppearanceDictionary_SkPdfNativeObjectType;
708 }
709
710 SkPdfNativeObjectType SkPdfMapper::mapTextAnnotationDictionary(const SkPdfNative Object* in) const {
711 if (in == NULL || !isTextAnnotationDictionary(in)) return kNone_SkPdfNativeObj ectType;
712
713
714 return kTextAnnotationDictionary_SkPdfNativeObjectType;
715 }
716
717 SkPdfNativeObjectType SkPdfMapper::mapALinkAnnotationDictionary(const SkPdfNativ eObject* in) const {
718 if (in == NULL || !isALinkAnnotationDictionary(in)) return kNone_SkPdfNativeOb jectType;
719
720
721 return kALinkAnnotationDictionary_SkPdfNativeObjectType;
722 }
723
724 SkPdfNativeObjectType SkPdfMapper::mapFreeTextAnnotationDictionary(const SkPdfNa tiveObject* in) const {
725 if (in == NULL || !isFreeTextAnnotationDictionary(in)) return kNone_SkPdfNativ eObjectType;
726
727
728 return kFreeTextAnnotationDictionary_SkPdfNativeObjectType;
729 }
730
731 SkPdfNativeObjectType SkPdfMapper::mapLineAnnotationDictionary(const SkPdfNative Object* in) const {
732 if (in == NULL || !isLineAnnotationDictionary(in)) return kNone_SkPdfNativeObj ectType;
733
734
735 return kLineAnnotationDictionary_SkPdfNativeObjectType;
736 }
737
738 SkPdfNativeObjectType SkPdfMapper::mapSquareOrCircleAnnotation(const SkPdfNative Object* in) const {
739 if (in == NULL || !isSquareOrCircleAnnotation(in)) return kNone_SkPdfNativeObj ectType;
740
741
742 return kSquareOrCircleAnnotation_SkPdfNativeObjectType;
743 }
744
745 SkPdfNativeObjectType SkPdfMapper::mapMarkupAnnotationsDictionary(const SkPdfNat iveObject* in) const {
746 if (in == NULL || !isMarkupAnnotationsDictionary(in)) return kNone_SkPdfNative ObjectType;
747
748
749 return kMarkupAnnotationsDictionary_SkPdfNativeObjectType;
750 }
751
752 SkPdfNativeObjectType SkPdfMapper::mapRubberStampAnnotationDictionary(const SkPd fNativeObject* in) const {
753 if (in == NULL || !isRubberStampAnnotationDictionary(in)) return kNone_SkPdfNa tiveObjectType;
754
755
756 return kRubberStampAnnotationDictionary_SkPdfNativeObjectType;
757 }
758
759 SkPdfNativeObjectType SkPdfMapper::mapInkAnnotationDictionary(const SkPdfNativeO bject* in) const {
760 if (in == NULL || !isInkAnnotationDictionary(in)) return kNone_SkPdfNativeObje ctType;
761
762
763 return kInkAnnotationDictionary_SkPdfNativeObjectType;
764 }
765
766 SkPdfNativeObjectType SkPdfMapper::mapPopUpAnnotationDictionary(const SkPdfNativ eObject* in) const {
767 if (in == NULL || !isPopUpAnnotationDictionary(in)) return kNone_SkPdfNativeOb jectType;
768
769
770 return kPopUpAnnotationDictionary_SkPdfNativeObjectType;
771 }
772
773 SkPdfNativeObjectType SkPdfMapper::mapFileAttachmentAnnotationDictionary(const S kPdfNativeObject* in) const {
774 if (in == NULL || !isFileAttachmentAnnotationDictionary(in)) return kNone_SkPd fNativeObjectType;
775
776
777 return kFileAttachmentAnnotationDictionary_SkPdfNativeObjectType;
778 }
779
780 SkPdfNativeObjectType SkPdfMapper::mapSoundAnnotationDictionary(const SkPdfNativ eObject* in) const {
781 if (in == NULL || !isSoundAnnotationDictionary(in)) return kNone_SkPdfNativeOb jectType;
782
783
784 return kSoundAnnotationDictionary_SkPdfNativeObjectType;
785 }
786
787 SkPdfNativeObjectType SkPdfMapper::mapMovieAnnotationDictionary(const SkPdfNativ eObject* in) const {
788 if (in == NULL || !isMovieAnnotationDictionary(in)) return kNone_SkPdfNativeOb jectType;
789
790
791 return kMovieAnnotationDictionary_SkPdfNativeObjectType;
792 }
793
794 SkPdfNativeObjectType SkPdfMapper::mapWidgetAnnotationDictionary(const SkPdfNati veObject* in) const {
795 if (in == NULL || !isWidgetAnnotationDictionary(in)) return kNone_SkPdfNativeO bjectType;
796
797
798 return kWidgetAnnotationDictionary_SkPdfNativeObjectType;
799 }
800
801 SkPdfNativeObjectType SkPdfMapper::mapActionDictionary(const SkPdfNativeObject* in) const {
802 if (in == NULL || !isActionDictionary(in)) return kNone_SkPdfNativeObjectType;
803
804
805 return kActionDictionary_SkPdfNativeObjectType;
806 }
807
808 SkPdfNativeObjectType SkPdfMapper::mapAnnotationActionsDictionary(const SkPdfNat iveObject* in) const {
809 if (in == NULL || !isAnnotationActionsDictionary(in)) return kNone_SkPdfNative ObjectType;
810
811
812 return kAnnotationActionsDictionary_SkPdfNativeObjectType;
813 }
814
815 SkPdfNativeObjectType SkPdfMapper::mapPageObjectActionsDictionary(const SkPdfNat iveObject* in) const {
816 if (in == NULL || !isPageObjectActionsDictionary(in)) return kNone_SkPdfNative ObjectType;
817
818
819 return kPageObjectActionsDictionary_SkPdfNativeObjectType;
820 }
821
822 SkPdfNativeObjectType SkPdfMapper::mapFormFieldActionsDictionary(const SkPdfNati veObject* in) const {
823 if (in == NULL || !isFormFieldActionsDictionary(in)) return kNone_SkPdfNativeO bjectType;
824
825
826 return kFormFieldActionsDictionary_SkPdfNativeObjectType;
827 }
828
829 SkPdfNativeObjectType SkPdfMapper::mapDocumentCatalogActionsDictionary(const SkP dfNativeObject* in) const {
830 if (in == NULL || !isDocumentCatalogActionsDictionary(in)) return kNone_SkPdfN ativeObjectType;
831
832
833 return kDocumentCatalogActionsDictionary_SkPdfNativeObjectType;
834 }
835
836 SkPdfNativeObjectType SkPdfMapper::mapGoToActionDictionary(const SkPdfNativeObje ct* in) const {
837 if (in == NULL || !isGoToActionDictionary(in)) return kNone_SkPdfNativeObjectT ype;
838
839
840 return kGoToActionDictionary_SkPdfNativeObjectType;
841 }
842
843 SkPdfNativeObjectType SkPdfMapper::mapRemoteGoToActionDictionary(const SkPdfNati veObject* in) const {
844 if (in == NULL || !isRemoteGoToActionDictionary(in)) return kNone_SkPdfNativeO bjectType;
845
846
847 return kRemoteGoToActionDictionary_SkPdfNativeObjectType;
848 }
849
850 SkPdfNativeObjectType SkPdfMapper::mapLaunchActionDictionary(const SkPdfNativeOb ject* in) const {
851 if (in == NULL || !isLaunchActionDictionary(in)) return kNone_SkPdfNativeObjec tType;
852
853
854 return kLaunchActionDictionary_SkPdfNativeObjectType;
855 }
856
857 SkPdfNativeObjectType SkPdfMapper::mapWindowsLaunchActionDictionary(const SkPdfN ativeObject* in) const {
858 if (in == NULL || !isWindowsLaunchActionDictionary(in)) return kNone_SkPdfNati veObjectType;
859
860
861 return kWindowsLaunchActionDictionary_SkPdfNativeObjectType;
862 }
863
864 SkPdfNativeObjectType SkPdfMapper::mapThreadActionDictionary(const SkPdfNativeOb ject* in) const {
865 if (in == NULL || !isThreadActionDictionary(in)) return kNone_SkPdfNativeObjec tType;
866
867
868 return kThreadActionDictionary_SkPdfNativeObjectType;
869 }
870
871 SkPdfNativeObjectType SkPdfMapper::mapURIActionDictionary(const SkPdfNativeObjec t* in) const {
872 if (in == NULL || !isURIActionDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
873
874
875 return kURIActionDictionary_SkPdfNativeObjectType;
876 }
877
878 SkPdfNativeObjectType SkPdfMapper::mapURIDictionary(const SkPdfNativeObject* in) const {
879 if (in == NULL || !isURIDictionary(in)) return kNone_SkPdfNativeObjectType;
880
881
882 return kURIDictionary_SkPdfNativeObjectType;
883 }
884
885 SkPdfNativeObjectType SkPdfMapper::mapSoundActionDictionary(const SkPdfNativeObj ect* in) const {
886 if (in == NULL || !isSoundActionDictionary(in)) return kNone_SkPdfNativeObject Type;
887
888
889 return kSoundActionDictionary_SkPdfNativeObjectType;
890 }
891
892 SkPdfNativeObjectType SkPdfMapper::mapMovieActionDictionary(const SkPdfNativeObj ect* in) const {
893 if (in == NULL || !isMovieActionDictionary(in)) return kNone_SkPdfNativeObject Type;
894
895
896 return kMovieActionDictionary_SkPdfNativeObjectType;
897 }
898
899 SkPdfNativeObjectType SkPdfMapper::mapHideActionDictionary(const SkPdfNativeObje ct* in) const {
900 if (in == NULL || !isHideActionDictionary(in)) return kNone_SkPdfNativeObjectT ype;
901
902
903 return kHideActionDictionary_SkPdfNativeObjectType;
904 }
905
906 SkPdfNativeObjectType SkPdfMapper::mapNamedActionsDictionary(const SkPdfNativeOb ject* in) const {
907 if (in == NULL || !isNamedActionsDictionary(in)) return kNone_SkPdfNativeObjec tType;
908
909
910 return kNamedActionsDictionary_SkPdfNativeObjectType;
911 }
912
913 SkPdfNativeObjectType SkPdfMapper::mapInteractiveFormDictionary(const SkPdfNativ eObject* in) const {
914 if (in == NULL || !isInteractiveFormDictionary(in)) return kNone_SkPdfNativeOb jectType;
915
916
917 return kInteractiveFormDictionary_SkPdfNativeObjectType;
918 }
919
920 SkPdfNativeObjectType SkPdfMapper::mapFieldDictionary(const SkPdfNativeObject* i n) const {
921 if (in == NULL || !isFieldDictionary(in)) return kNone_SkPdfNativeObjectType;
922
923
924 return kFieldDictionary_SkPdfNativeObjectType;
925 }
926
927 SkPdfNativeObjectType SkPdfMapper::mapVariableTextFieldDictionary(const SkPdfNat iveObject* in) const {
928 if (in == NULL || !isVariableTextFieldDictionary(in)) return kNone_SkPdfNative ObjectType;
929
930
931 return kVariableTextFieldDictionary_SkPdfNativeObjectType;
932 }
933
934 SkPdfNativeObjectType SkPdfMapper::mapAppearanceCharacteristicsDictionary(const SkPdfNativeObject* in) const {
935 if (in == NULL || !isAppearanceCharacteristicsDictionary(in)) return kNone_SkP dfNativeObjectType;
936
937
938 return kAppearanceCharacteristicsDictionary_SkPdfNativeObjectType;
939 }
940
941 SkPdfNativeObjectType SkPdfMapper::mapCheckboxFieldDictionary(const SkPdfNativeO bject* in) const {
942 if (in == NULL || !isCheckboxFieldDictionary(in)) return kNone_SkPdfNativeObje ctType;
943
944
945 return kCheckboxFieldDictionary_SkPdfNativeObjectType;
946 }
947
948 SkPdfNativeObjectType SkPdfMapper::mapRadioButtonFieldDictionary(const SkPdfNati veObject* in) const {
949 if (in == NULL || !isRadioButtonFieldDictionary(in)) return kNone_SkPdfNativeO bjectType;
950
951
952 return kRadioButtonFieldDictionary_SkPdfNativeObjectType;
953 }
954
955 SkPdfNativeObjectType SkPdfMapper::mapTextFieldDictionary(const SkPdfNativeObjec t* in) const {
956 if (in == NULL || !isTextFieldDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
957
958
959 return kTextFieldDictionary_SkPdfNativeObjectType;
960 }
961
962 SkPdfNativeObjectType SkPdfMapper::mapChoiceFieldDictionary(const SkPdfNativeObj ect* in) const {
963 if (in == NULL || !isChoiceFieldDictionary(in)) return kNone_SkPdfNativeObject Type;
964
965
966 return kChoiceFieldDictionary_SkPdfNativeObjectType;
967 }
968
969 SkPdfNativeObjectType SkPdfMapper::mapSignatureDictionary(const SkPdfNativeObjec t* in) const {
970 if (in == NULL || !isSignatureDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
971
972
973 return kSignatureDictionary_SkPdfNativeObjectType;
974 }
975
976 SkPdfNativeObjectType SkPdfMapper::mapSubmitFormActionDictionary(const SkPdfNati veObject* in) const {
977 if (in == NULL || !isSubmitFormActionDictionary(in)) return kNone_SkPdfNativeO bjectType;
978
979
980 return kSubmitFormActionDictionary_SkPdfNativeObjectType;
981 }
982
983 SkPdfNativeObjectType SkPdfMapper::mapResetFormActionDictionary(const SkPdfNativ eObject* in) const {
984 if (in == NULL || !isResetFormActionDictionary(in)) return kNone_SkPdfNativeOb jectType;
985
986
987 return kResetFormActionDictionary_SkPdfNativeObjectType;
988 }
989
990 SkPdfNativeObjectType SkPdfMapper::mapImportDataActionDictionary(const SkPdfNati veObject* in) const {
991 if (in == NULL || !isImportDataActionDictionary(in)) return kNone_SkPdfNativeO bjectType;
992
993
994 return kImportDataActionDictionary_SkPdfNativeObjectType;
995 }
996
997 SkPdfNativeObjectType SkPdfMapper::mapJavascriptActionDictionary(const SkPdfNati veObject* in) const {
998 if (in == NULL || !isJavascriptActionDictionary(in)) return kNone_SkPdfNativeO bjectType;
999
1000
1001 return kJavascriptActionDictionary_SkPdfNativeObjectType;
1002 }
1003
1004 SkPdfNativeObjectType SkPdfMapper::mapFDFTrailerDictionary(const SkPdfNativeObje ct* in) const {
1005 if (in == NULL || !isFDFTrailerDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1006
1007
1008 return kFDFTrailerDictionary_SkPdfNativeObjectType;
1009 }
1010
1011 SkPdfNativeObjectType SkPdfMapper::mapFDFCatalogDictionary(const SkPdfNativeObje ct* in) const {
1012 if (in == NULL || !isFDFCatalogDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1013
1014
1015 return kFDFCatalogDictionary_SkPdfNativeObjectType;
1016 }
1017
1018 SkPdfNativeObjectType SkPdfMapper::mapFDFDictionary(const SkPdfNativeObject* in) const {
1019 if (in == NULL || !isFDFDictionary(in)) return kNone_SkPdfNativeObjectType;
1020
1021
1022 return kFDFDictionary_SkPdfNativeObjectType;
1023 }
1024
1025 SkPdfNativeObjectType SkPdfMapper::mapEncryptedEmbeddedFileStreamDictionary(cons t SkPdfNativeObject* in) const {
1026 if (in == NULL || !isEncryptedEmbeddedFileStreamDictionary(in)) return kNone_S kPdfNativeObjectType;
1027
1028
1029 return kEncryptedEmbeddedFileStreamDictionary_SkPdfNativeObjectType;
1030 }
1031
1032 SkPdfNativeObjectType SkPdfMapper::mapJavascriptDictionary(const SkPdfNativeObje ct* in) const {
1033 if (in == NULL || !isJavascriptDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1034
1035
1036 return kJavascriptDictionary_SkPdfNativeObjectType;
1037 }
1038
1039 SkPdfNativeObjectType SkPdfMapper::mapFDFFieldDictionary(const SkPdfNativeObject * in) const {
1040 if (in == NULL || !isFDFFieldDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
1041
1042
1043 return kFDFFieldDictionary_SkPdfNativeObjectType;
1044 }
1045
1046 SkPdfNativeObjectType SkPdfMapper::mapIconFitDictionary(const SkPdfNativeObject* in) const {
1047 if (in == NULL || !isIconFitDictionary(in)) return kNone_SkPdfNativeObjectType ;
1048
1049
1050 return kIconFitDictionary_SkPdfNativeObjectType;
1051 }
1052
1053 SkPdfNativeObjectType SkPdfMapper::mapFDFPageDictionary(const SkPdfNativeObject* in) const {
1054 if (in == NULL || !isFDFPageDictionary(in)) return kNone_SkPdfNativeObjectType ;
1055
1056
1057 return kFDFPageDictionary_SkPdfNativeObjectType;
1058 }
1059
1060 SkPdfNativeObjectType SkPdfMapper::mapFDFTemplateDictionary(const SkPdfNativeObj ect* in) const {
1061 if (in == NULL || !isFDFTemplateDictionary(in)) return kNone_SkPdfNativeObject Type;
1062
1063
1064 return kFDFTemplateDictionary_SkPdfNativeObjectType;
1065 }
1066
1067 SkPdfNativeObjectType SkPdfMapper::mapFDFNamedPageReferenceDictionary(const SkPd fNativeObject* in) const {
1068 if (in == NULL || !isFDFNamedPageReferenceDictionary(in)) return kNone_SkPdfNa tiveObjectType;
1069
1070
1071 return kFDFNamedPageReferenceDictionary_SkPdfNativeObjectType;
1072 }
1073
1074 SkPdfNativeObjectType SkPdfMapper::mapFDFFileAnnotationDictionary(const SkPdfNat iveObject* in) const {
1075 if (in == NULL || !isFDFFileAnnotationDictionary(in)) return kNone_SkPdfNative ObjectType;
1076
1077
1078 return kFDFFileAnnotationDictionary_SkPdfNativeObjectType;
1079 }
1080
1081 SkPdfNativeObjectType SkPdfMapper::mapSoundObjectDictionary(const SkPdfNativeObj ect* in) const {
1082 if (in == NULL || !isSoundObjectDictionary(in)) return kNone_SkPdfNativeObject Type;
1083
1084
1085 return kSoundObjectDictionary_SkPdfNativeObjectType;
1086 }
1087
1088 SkPdfNativeObjectType SkPdfMapper::mapMovieDictionary(const SkPdfNativeObject* i n) const {
1089 if (in == NULL || !isMovieDictionary(in)) return kNone_SkPdfNativeObjectType;
1090
1091
1092 return kMovieDictionary_SkPdfNativeObjectType;
1093 }
1094
1095 SkPdfNativeObjectType SkPdfMapper::mapMovieActivationDictionary(const SkPdfNativ eObject* in) const {
1096 if (in == NULL || !isMovieActivationDictionary(in)) return kNone_SkPdfNativeOb jectType;
1097
1098
1099 return kMovieActivationDictionary_SkPdfNativeObjectType;
1100 }
1101
1102 SkPdfNativeObjectType SkPdfMapper::mapDocumentInformationDictionary(const SkPdfN ativeObject* in) const {
1103 if (in == NULL || !isDocumentInformationDictionary(in)) return kNone_SkPdfNati veObjectType;
1104
1105
1106 return kDocumentInformationDictionary_SkPdfNativeObjectType;
1107 }
1108
1109 SkPdfNativeObjectType SkPdfMapper::mapMetadataStreamDictionary(const SkPdfNative Object* in) const {
1110 if (in == NULL || !isMetadataStreamDictionary(in)) return kNone_SkPdfNativeObj ectType;
1111
1112
1113 return kMetadataStreamDictionary_SkPdfNativeObjectType;
1114 }
1115
1116 SkPdfNativeObjectType SkPdfMapper::mapComponentsWithMetadataDictionary(const SkP dfNativeObject* in) const {
1117 if (in == NULL || !isComponentsWithMetadataDictionary(in)) return kNone_SkPdfN ativeObjectType;
1118
1119
1120 return kComponentsWithMetadataDictionary_SkPdfNativeObjectType;
1121 }
1122
1123 SkPdfNativeObjectType SkPdfMapper::mapPagePieceDictionary(const SkPdfNativeObjec t* in) const {
1124 if (in == NULL || !isPagePieceDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
1125
1126
1127 return kPagePieceDictionary_SkPdfNativeObjectType;
1128 }
1129
1130 SkPdfNativeObjectType SkPdfMapper::mapApplicationDataDictionary(const SkPdfNativ eObject* in) const {
1131 if (in == NULL || !isApplicationDataDictionary(in)) return kNone_SkPdfNativeOb jectType;
1132
1133
1134 return kApplicationDataDictionary_SkPdfNativeObjectType;
1135 }
1136
1137 SkPdfNativeObjectType SkPdfMapper::mapStructureTreeRootDictionary(const SkPdfNat iveObject* in) const {
1138 if (in == NULL || !isStructureTreeRootDictionary(in)) return kNone_SkPdfNative ObjectType;
1139
1140
1141 return kStructureTreeRootDictionary_SkPdfNativeObjectType;
1142 }
1143
1144 SkPdfNativeObjectType SkPdfMapper::mapStructureElementDictionary(const SkPdfNati veObject* in) const {
1145 if (in == NULL || !isStructureElementDictionary(in)) return kNone_SkPdfNativeO bjectType;
1146
1147
1148 return kStructureElementDictionary_SkPdfNativeObjectType;
1149 }
1150
1151 SkPdfNativeObjectType SkPdfMapper::mapMarkedContentReferenceDictionary(const SkP dfNativeObject* in) const {
1152 if (in == NULL || !isMarkedContentReferenceDictionary(in)) return kNone_SkPdfN ativeObjectType;
1153
1154
1155 return kMarkedContentReferenceDictionary_SkPdfNativeObjectType;
1156 }
1157
1158 SkPdfNativeObjectType SkPdfMapper::mapObjectReferenceDictionary(const SkPdfNativ eObject* in) const {
1159 if (in == NULL || !isObjectReferenceDictionary(in)) return kNone_SkPdfNativeOb jectType;
1160
1161
1162 return kObjectReferenceDictionary_SkPdfNativeObjectType;
1163 }
1164
1165 SkPdfNativeObjectType SkPdfMapper::mapStructureElementAccessDictionary(const SkP dfNativeObject* in) const {
1166 if (in == NULL || !isStructureElementAccessDictionary(in)) return kNone_SkPdfN ativeObjectType;
1167
1168
1169 return kStructureElementAccessDictionary_SkPdfNativeObjectType;
1170 }
1171
1172 SkPdfNativeObjectType SkPdfMapper::mapAttributeObjectDictionary(const SkPdfNativ eObject* in) const {
1173 if (in == NULL || !isAttributeObjectDictionary(in)) return kNone_SkPdfNativeOb jectType;
1174
1175
1176 return kAttributeObjectDictionary_SkPdfNativeObjectType;
1177 }
1178
1179 SkPdfNativeObjectType SkPdfMapper::mapMarkInformationDictionary(const SkPdfNativ eObject* in) const {
1180 if (in == NULL || !isMarkInformationDictionary(in)) return kNone_SkPdfNativeOb jectType;
1181
1182
1183 return kMarkInformationDictionary_SkPdfNativeObjectType;
1184 }
1185
1186 SkPdfNativeObjectType SkPdfMapper::mapArtifactsDictionary(const SkPdfNativeObjec t* in) const {
1187 if (in == NULL || !isArtifactsDictionary(in)) return kNone_SkPdfNativeObjectTy pe;
1188
1189
1190 return kArtifactsDictionary_SkPdfNativeObjectType;
1191 }
1192
1193 SkPdfNativeObjectType SkPdfMapper::mapStandardStructureDictionary(const SkPdfNat iveObject* in) const {
1194 if (in == NULL || !isStandardStructureDictionary(in)) return kNone_SkPdfNative ObjectType;
1195
1196
1197 return kStandardStructureDictionary_SkPdfNativeObjectType;
1198 }
1199
1200 SkPdfNativeObjectType SkPdfMapper::mapBlockLevelStructureElementsDictionary(cons t SkPdfNativeObject* in) const {
1201 if (in == NULL || !isBlockLevelStructureElementsDictionary(in)) return kNone_S kPdfNativeObjectType;
1202
1203
1204 return kBlockLevelStructureElementsDictionary_SkPdfNativeObjectType;
1205 }
1206
1207 SkPdfNativeObjectType SkPdfMapper::mapInlineLevelStructureElementsDictionary(con st SkPdfNativeObject* in) const {
1208 if (in == NULL || !isInlineLevelStructureElementsDictionary(in)) return kNone_ SkPdfNativeObjectType;
1209
1210
1211 return kInlineLevelStructureElementsDictionary_SkPdfNativeObjectType;
1212 }
1213
1214 SkPdfNativeObjectType SkPdfMapper::mapListAttributeDictionary(const SkPdfNativeO bject* in) const {
1215 if (in == NULL || !isListAttributeDictionary(in)) return kNone_SkPdfNativeObje ctType;
1216
1217
1218 return kListAttributeDictionary_SkPdfNativeObjectType;
1219 }
1220
1221 SkPdfNativeObjectType SkPdfMapper::mapTableAttributesDictionary(const SkPdfNativ eObject* in) const {
1222 if (in == NULL || !isTableAttributesDictionary(in)) return kNone_SkPdfNativeOb jectType;
1223
1224
1225 return kTableAttributesDictionary_SkPdfNativeObjectType;
1226 }
1227
1228 SkPdfNativeObjectType SkPdfMapper::mapWebCaptureInformationDictionary(const SkPd fNativeObject* in) const {
1229 if (in == NULL || !isWebCaptureInformationDictionary(in)) return kNone_SkPdfNa tiveObjectType;
1230
1231
1232 return kWebCaptureInformationDictionary_SkPdfNativeObjectType;
1233 }
1234
1235 SkPdfNativeObjectType SkPdfMapper::mapWebCaptureDictionary(const SkPdfNativeObje ct* in) const {
1236 if (in == NULL || !isWebCaptureDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1237
1238
1239 return kWebCaptureDictionary_SkPdfNativeObjectType;
1240 }
1241
1242 SkPdfNativeObjectType SkPdfMapper::mapWebCapturePageSetDictionary(const SkPdfNat iveObject* in) const {
1243 if (in == NULL || !isWebCapturePageSetDictionary(in)) return kNone_SkPdfNative ObjectType;
1244
1245
1246 return kWebCapturePageSetDictionary_SkPdfNativeObjectType;
1247 }
1248
1249 SkPdfNativeObjectType SkPdfMapper::mapWebCaptureImageSetDictionary(const SkPdfNa tiveObject* in) const {
1250 if (in == NULL || !isWebCaptureImageSetDictionary(in)) return kNone_SkPdfNativ eObjectType;
1251
1252
1253 return kWebCaptureImageSetDictionary_SkPdfNativeObjectType;
1254 }
1255
1256 SkPdfNativeObjectType SkPdfMapper::mapSourceInformationDictionary(const SkPdfNat iveObject* in) const {
1257 if (in == NULL || !isSourceInformationDictionary(in)) return kNone_SkPdfNative ObjectType;
1258
1259
1260 return kSourceInformationDictionary_SkPdfNativeObjectType;
1261 }
1262
1263 SkPdfNativeObjectType SkPdfMapper::mapURLAliasDictionary(const SkPdfNativeObject * in) const {
1264 if (in == NULL || !isURLAliasDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
1265
1266
1267 return kURLAliasDictionary_SkPdfNativeObjectType;
1268 }
1269
1270 SkPdfNativeObjectType SkPdfMapper::mapWebCaptureCommandDictionary(const SkPdfNat iveObject* in) const {
1271 if (in == NULL || !isWebCaptureCommandDictionary(in)) return kNone_SkPdfNative ObjectType;
1272
1273
1274 return kWebCaptureCommandDictionary_SkPdfNativeObjectType;
1275 }
1276
1277 SkPdfNativeObjectType SkPdfMapper::mapWebCaptureCommandSettingsDictionary(const SkPdfNativeObject* in) const {
1278 if (in == NULL || !isWebCaptureCommandSettingsDictionary(in)) return kNone_SkP dfNativeObjectType;
1279
1280
1281 return kWebCaptureCommandSettingsDictionary_SkPdfNativeObjectType;
1282 }
1283
1284 SkPdfNativeObjectType SkPdfMapper::mapBoxColorInformationDictionary(const SkPdfN ativeObject* in) const {
1285 if (in == NULL || !isBoxColorInformationDictionary(in)) return kNone_SkPdfNati veObjectType;
1286
1287
1288 return kBoxColorInformationDictionary_SkPdfNativeObjectType;
1289 }
1290
1291 SkPdfNativeObjectType SkPdfMapper::mapBoxStyleDictionary(const SkPdfNativeObject * in) const {
1292 if (in == NULL || !isBoxStyleDictionary(in)) return kNone_SkPdfNativeObjectTyp e;
1293
1294
1295 return kBoxStyleDictionary_SkPdfNativeObjectType;
1296 }
1297
1298 SkPdfNativeObjectType SkPdfMapper::mapPrinterMarkAnnotationDictionary(const SkPd fNativeObject* in) const {
1299 if (in == NULL || !isPrinterMarkAnnotationDictionary(in)) return kNone_SkPdfNa tiveObjectType;
1300
1301
1302 return kPrinterMarkAnnotationDictionary_SkPdfNativeObjectType;
1303 }
1304
1305 SkPdfNativeObjectType SkPdfMapper::mapPrinterMarkFormDictionary(const SkPdfNativ eObject* in) const {
1306 if (in == NULL || !isPrinterMarkFormDictionary(in)) return kNone_SkPdfNativeOb jectType;
1307
1308
1309 return kPrinterMarkFormDictionary_SkPdfNativeObjectType;
1310 }
1311
1312 SkPdfNativeObjectType SkPdfMapper::mapSeparationDictionary(const SkPdfNativeObje ct* in) const {
1313 if (in == NULL || !isSeparationDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1314
1315
1316 return kSeparationDictionary_SkPdfNativeObjectType;
1317 }
1318
1319 SkPdfNativeObjectType SkPdfMapper::mapPDF_XOutputIntentDictionary(const SkPdfNat iveObject* in) const {
1320 if (in == NULL || !isPDF_XOutputIntentDictionary(in)) return kNone_SkPdfNative ObjectType;
1321
1322
1323 return kPDF_XOutputIntentDictionary_SkPdfNativeObjectType;
1324 }
1325
1326 SkPdfNativeObjectType SkPdfMapper::mapTrapNetworkAnnotationDictionary(const SkPd fNativeObject* in) const {
1327 if (in == NULL || !isTrapNetworkAnnotationDictionary(in)) return kNone_SkPdfNa tiveObjectType;
1328
1329
1330 return kTrapNetworkAnnotationDictionary_SkPdfNativeObjectType;
1331 }
1332
1333 SkPdfNativeObjectType SkPdfMapper::mapTrapNetworkAppearanceStreamDictionary(cons t SkPdfNativeObject* in) const {
1334 if (in == NULL || !isTrapNetworkAppearanceStreamDictionary(in)) return kNone_S kPdfNativeObjectType;
1335
1336
1337 return kTrapNetworkAppearanceStreamDictionary_SkPdfNativeObjectType;
1338 }
1339
1340 SkPdfNativeObjectType SkPdfMapper::mapOpiVersionDictionary(const SkPdfNativeObje ct* in) const {
1341 if (in == NULL || !isOpiVersionDictionary(in)) return kNone_SkPdfNativeObjectT ype;
1342
1343
1344 return kOpiVersionDictionary_SkPdfNativeObjectType;
1345 }
1346
1347 SkPdfNativeObjectType SkPdfMapper::mapMultiMasterFontDictionary(const SkPdfNativ eObject* in) const {
1348 if (in == NULL || !isMultiMasterFontDictionary(in)) return kNone_SkPdfNativeOb jectType;
1349
1350
1351 return kMultiMasterFontDictionary_SkPdfNativeObjectType;
1352 }
1353
1354 bool SkPdfMapper::isDictionary(const SkPdfNativeObject* nativeObj) const {
1355 return true;
1356 }
1357
1358 bool SkPdfMapper::SkPdfDictionaryFromDictionary(const SkPdfNativeObject* dict, c onst char* key, SkPdfDictionary** data) const {
1359 const SkPdfNativeObject* value = dict->get(key);
1360 if (value == NULL) { return false; }
1361 if (data == NULL) { return true; }
1362 if (kNone_SkPdfNativeObjectType == mapDictionary(value)) return false;
1363 *data = (SkPdfDictionary*)value;
1364 return true;
1365 }
1366
1367 bool SkPdfMapper::SkPdfDictionaryFromDictionary(const SkPdfNativeObject* dict, c onst char* key, const char* abr, SkPdfDictionary** data) const {
1368 if (SkPdfDictionaryFromDictionary(dict, key, data)) return true;
1369 if (abr == NULL || *abr == '\0') return false;
1370 return SkPdfDictionaryFromDictionary(dict, abr, data);
1371 }
1372
1373 bool SkPdfMapper::isXObjectDictionary(const SkPdfNativeObject* nativeObj) const {
1374 return true;
1375 }
1376
1377 bool SkPdfMapper::SkPdfXObjectDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfXObjectDictionary** data) const {
1378 const SkPdfNativeObject* value = dict->get(key);
1379 if (value == NULL) { return false; }
1380 if (data == NULL) { return true; }
1381 if (kNone_SkPdfNativeObjectType == mapXObjectDictionary(value)) return false;
1382 *data = (SkPdfXObjectDictionary*)value;
1383 return true;
1384 }
1385
1386 bool SkPdfMapper::SkPdfXObjectDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfXObjectDictionary** data) const {
1387 if (SkPdfXObjectDictionaryFromDictionary(dict, key, data)) return true;
1388 if (abr == NULL || *abr == '\0') return false;
1389 return SkPdfXObjectDictionaryFromDictionary(dict, abr, data);
1390 }
1391
1392 bool SkPdfMapper::isFontDictionary(const SkPdfNativeObject* nativeObj) const {
1393 return true;
1394 }
1395
1396 bool SkPdfMapper::SkPdfFontDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, SkPdfFontDictionary** data) const {
1397 const SkPdfNativeObject* value = dict->get(key);
1398 if (value == NULL) { return false; }
1399 if (data == NULL) { return true; }
1400 if (kNone_SkPdfNativeObjectType == mapFontDictionary(value)) return false;
1401 *data = (SkPdfFontDictionary*)value;
1402 return true;
1403 }
1404
1405 bool SkPdfMapper::SkPdfFontDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, const char* abr, SkPdfFontDictionary** data) const {
1406 if (SkPdfFontDictionaryFromDictionary(dict, key, data)) return true;
1407 if (abr == NULL || *abr == '\0') return false;
1408 return SkPdfFontDictionaryFromDictionary(dict, abr, data);
1409 }
1410
1411 bool SkPdfMapper::isTrueTypeFontDictionary(const SkPdfNativeObject* nativeObj) c onst {
1412 const SkPdfNativeObject* ret = NULL;
1413 if (!nativeObj->isDictionary()) return false;
1414 ret = nativeObj->get("Subtype", "");
1415 if (ret == NULL || !ret->isName()) return false;
1416 if ((ret->nameValue2() != "TrueType")) return false;
1417
1418 return true;
1419 }
1420
1421 bool SkPdfMapper::SkPdfTrueTypeFontDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfTrueTypeFontDictionary** data) const {
1422 const SkPdfNativeObject* value = dict->get(key);
1423 if (value == NULL) { return false; }
1424 if (data == NULL) { return true; }
1425 if (kNone_SkPdfNativeObjectType == mapTrueTypeFontDictionary(value)) return fa lse;
1426 *data = (SkPdfTrueTypeFontDictionary*)value;
1427 return true;
1428 }
1429
1430 bool SkPdfMapper::SkPdfTrueTypeFontDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfTrueTypeFontDictionary** data) const {
1431 if (SkPdfTrueTypeFontDictionaryFromDictionary(dict, key, data)) return true;
1432 if (abr == NULL || *abr == '\0') return false;
1433 return SkPdfTrueTypeFontDictionaryFromDictionary(dict, abr, data);
1434 }
1435
1436 bool SkPdfMapper::isStreamCommonDictionary(const SkPdfNativeObject* nativeObj) c onst {
1437 return true;
1438 }
1439
1440 bool SkPdfMapper::SkPdfStreamCommonDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfStreamCommonDictionary** data) const {
1441 const SkPdfNativeObject* value = dict->get(key);
1442 if (value == NULL) { return false; }
1443 if (data == NULL) { return true; }
1444 if (kNone_SkPdfNativeObjectType == mapStreamCommonDictionary(value)) return fa lse;
1445 *data = (SkPdfStreamCommonDictionary*)value;
1446 return true;
1447 }
1448
1449 bool SkPdfMapper::SkPdfStreamCommonDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfStreamCommonDictionary** data) const {
1450 if (SkPdfStreamCommonDictionaryFromDictionary(dict, key, data)) return true;
1451 if (abr == NULL || *abr == '\0') return false;
1452 return SkPdfStreamCommonDictionaryFromDictionary(dict, abr, data);
1453 }
1454
1455 bool SkPdfMapper::isLzwdecodeAndFlatedecodeFiltersDictionary(const SkPdfNativeOb ject* nativeObj) const {
1456 return true;
1457 }
1458
1459 bool SkPdfMapper::SkPdfLzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(co nst SkPdfNativeObject* dict, const char* key, SkPdfLzwdecodeAndFlatedecodeFilter sDictionary** data) const {
1460 const SkPdfNativeObject* value = dict->get(key);
1461 if (value == NULL) { return false; }
1462 if (data == NULL) { return true; }
1463 if (kNone_SkPdfNativeObjectType == mapLzwdecodeAndFlatedecodeFiltersDictionary (value)) return false;
1464 *data = (SkPdfLzwdecodeAndFlatedecodeFiltersDictionary*)value;
1465 return true;
1466 }
1467
1468 bool SkPdfMapper::SkPdfLzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(co nst SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfLzwdecodeAnd FlatedecodeFiltersDictionary** data) const {
1469 if (SkPdfLzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(dict, key, dat a)) return true;
1470 if (abr == NULL || *abr == '\0') return false;
1471 return SkPdfLzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(dict, abr, data);
1472 }
1473
1474 bool SkPdfMapper::isCcittfaxdecodeFilterDictionary(const SkPdfNativeObject* nati veObj) const {
1475 return true;
1476 }
1477
1478 bool SkPdfMapper::SkPdfCcittfaxdecodeFilterDictionaryFromDictionary(const SkPdfN ativeObject* dict, const char* key, SkPdfCcittfaxdecodeFilterDictionary** data) const {
1479 const SkPdfNativeObject* value = dict->get(key);
1480 if (value == NULL) { return false; }
1481 if (data == NULL) { return true; }
1482 if (kNone_SkPdfNativeObjectType == mapCcittfaxdecodeFilterDictionary(value)) r eturn false;
1483 *data = (SkPdfCcittfaxdecodeFilterDictionary*)value;
1484 return true;
1485 }
1486
1487 bool SkPdfMapper::SkPdfCcittfaxdecodeFilterDictionaryFromDictionary(const SkPdfN ativeObject* dict, const char* key, const char* abr, SkPdfCcittfaxdecodeFilterDi ctionary** data) const {
1488 if (SkPdfCcittfaxdecodeFilterDictionaryFromDictionary(dict, key, data)) return true;
1489 if (abr == NULL || *abr == '\0') return false;
1490 return SkPdfCcittfaxdecodeFilterDictionaryFromDictionary(dict, abr, data);
1491 }
1492
1493 bool SkPdfMapper::isJbig2DecodeFilterDictionary(const SkPdfNativeObject* nativeO bj) const {
1494 return true;
1495 }
1496
1497 bool SkPdfMapper::SkPdfJbig2DecodeFilterDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfJbig2DecodeFilterDictionary** data) const {
1498 const SkPdfNativeObject* value = dict->get(key);
1499 if (value == NULL) { return false; }
1500 if (data == NULL) { return true; }
1501 if (kNone_SkPdfNativeObjectType == mapJbig2DecodeFilterDictionary(value)) retu rn false;
1502 *data = (SkPdfJbig2DecodeFilterDictionary*)value;
1503 return true;
1504 }
1505
1506 bool SkPdfMapper::SkPdfJbig2DecodeFilterDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfJbig2DecodeFilterDictiona ry** data) const {
1507 if (SkPdfJbig2DecodeFilterDictionaryFromDictionary(dict, key, data)) return tr ue;
1508 if (abr == NULL || *abr == '\0') return false;
1509 return SkPdfJbig2DecodeFilterDictionaryFromDictionary(dict, abr, data);
1510 }
1511
1512 bool SkPdfMapper::isDctdecodeFilterDictionary(const SkPdfNativeObject* nativeObj ) const {
1513 return true;
1514 }
1515
1516 bool SkPdfMapper::SkPdfDctdecodeFilterDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfDctdecodeFilterDictionary** data) const {
1517 const SkPdfNativeObject* value = dict->get(key);
1518 if (value == NULL) { return false; }
1519 if (data == NULL) { return true; }
1520 if (kNone_SkPdfNativeObjectType == mapDctdecodeFilterDictionary(value)) return false;
1521 *data = (SkPdfDctdecodeFilterDictionary*)value;
1522 return true;
1523 }
1524
1525 bool SkPdfMapper::SkPdfDctdecodeFilterDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfDctdecodeFilterDictionary** data) const {
1526 if (SkPdfDctdecodeFilterDictionaryFromDictionary(dict, key, data)) return true ;
1527 if (abr == NULL || *abr == '\0') return false;
1528 return SkPdfDctdecodeFilterDictionaryFromDictionary(dict, abr, data);
1529 }
1530
1531 bool SkPdfMapper::isFileTrailerDictionary(const SkPdfNativeObject* nativeObj) co nst {
1532 return true;
1533 }
1534
1535 bool SkPdfMapper::SkPdfFileTrailerDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfFileTrailerDictionary** data) const {
1536 const SkPdfNativeObject* value = dict->get(key);
1537 if (value == NULL) { return false; }
1538 if (data == NULL) { return true; }
1539 if (kNone_SkPdfNativeObjectType == mapFileTrailerDictionary(value)) return fal se;
1540 *data = (SkPdfFileTrailerDictionary*)value;
1541 return true;
1542 }
1543
1544 bool SkPdfMapper::SkPdfFileTrailerDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfFileTrailerDictionary** data) c onst {
1545 if (SkPdfFileTrailerDictionaryFromDictionary(dict, key, data)) return true;
1546 if (abr == NULL || *abr == '\0') return false;
1547 return SkPdfFileTrailerDictionaryFromDictionary(dict, abr, data);
1548 }
1549
1550 bool SkPdfMapper::isEncryptionCommonDictionary(const SkPdfNativeObject* nativeOb j) const {
1551 return true;
1552 }
1553
1554 bool SkPdfMapper::SkPdfEncryptionCommonDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfEncryptionCommonDictionary** data) const {
1555 const SkPdfNativeObject* value = dict->get(key);
1556 if (value == NULL) { return false; }
1557 if (data == NULL) { return true; }
1558 if (kNone_SkPdfNativeObjectType == mapEncryptionCommonDictionary(value)) retur n false;
1559 *data = (SkPdfEncryptionCommonDictionary*)value;
1560 return true;
1561 }
1562
1563 bool SkPdfMapper::SkPdfEncryptionCommonDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfEncryptionCommonDictionary ** data) const {
1564 if (SkPdfEncryptionCommonDictionaryFromDictionary(dict, key, data)) return tru e;
1565 if (abr == NULL || *abr == '\0') return false;
1566 return SkPdfEncryptionCommonDictionaryFromDictionary(dict, abr, data);
1567 }
1568
1569 bool SkPdfMapper::isStandardSecurityHandlerDictionary(const SkPdfNativeObject* n ativeObj) const {
1570 return true;
1571 }
1572
1573 bool SkPdfMapper::SkPdfStandardSecurityHandlerDictionaryFromDictionary(const SkP dfNativeObject* dict, const char* key, SkPdfStandardSecurityHandlerDictionary** data) const {
1574 const SkPdfNativeObject* value = dict->get(key);
1575 if (value == NULL) { return false; }
1576 if (data == NULL) { return true; }
1577 if (kNone_SkPdfNativeObjectType == mapStandardSecurityHandlerDictionary(value) ) return false;
1578 *data = (SkPdfStandardSecurityHandlerDictionary*)value;
1579 return true;
1580 }
1581
1582 bool SkPdfMapper::SkPdfStandardSecurityHandlerDictionaryFromDictionary(const SkP dfNativeObject* dict, const char* key, const char* abr, SkPdfStandardSecurityHan dlerDictionary** data) const {
1583 if (SkPdfStandardSecurityHandlerDictionaryFromDictionary(dict, key, data)) ret urn true;
1584 if (abr == NULL || *abr == '\0') return false;
1585 return SkPdfStandardSecurityHandlerDictionaryFromDictionary(dict, abr, data);
1586 }
1587
1588 bool SkPdfMapper::isCatalogDictionary(const SkPdfNativeObject* nativeObj) const {
1589 return true;
1590 }
1591
1592 bool SkPdfMapper::SkPdfCatalogDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfCatalogDictionary** data) const {
1593 const SkPdfNativeObject* value = dict->get(key);
1594 if (value == NULL) { return false; }
1595 if (data == NULL) { return true; }
1596 if (kNone_SkPdfNativeObjectType == mapCatalogDictionary(value)) return false;
1597 *data = (SkPdfCatalogDictionary*)value;
1598 return true;
1599 }
1600
1601 bool SkPdfMapper::SkPdfCatalogDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfCatalogDictionary** data) const {
1602 if (SkPdfCatalogDictionaryFromDictionary(dict, key, data)) return true;
1603 if (abr == NULL || *abr == '\0') return false;
1604 return SkPdfCatalogDictionaryFromDictionary(dict, abr, data);
1605 }
1606
1607 bool SkPdfMapper::isPageTreeNodeDictionary(const SkPdfNativeObject* nativeObj) c onst {
1608 return true;
1609 }
1610
1611 bool SkPdfMapper::SkPdfPageTreeNodeDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfPageTreeNodeDictionary** data) const {
1612 const SkPdfNativeObject* value = dict->get(key);
1613 if (value == NULL) { return false; }
1614 if (data == NULL) { return true; }
1615 if (kNone_SkPdfNativeObjectType == mapPageTreeNodeDictionary(value)) return fa lse;
1616 *data = (SkPdfPageTreeNodeDictionary*)value;
1617 return true;
1618 }
1619
1620 bool SkPdfMapper::SkPdfPageTreeNodeDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfPageTreeNodeDictionary** data) const {
1621 if (SkPdfPageTreeNodeDictionaryFromDictionary(dict, key, data)) return true;
1622 if (abr == NULL || *abr == '\0') return false;
1623 return SkPdfPageTreeNodeDictionaryFromDictionary(dict, abr, data);
1624 }
1625
1626 bool SkPdfMapper::isPageObjectDictionary(const SkPdfNativeObject* nativeObj) con st {
1627 return true;
1628 }
1629
1630 bool SkPdfMapper::SkPdfPageObjectDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfPageObjectDictionary** data) const {
1631 const SkPdfNativeObject* value = dict->get(key);
1632 if (value == NULL) { return false; }
1633 if (data == NULL) { return true; }
1634 if (kNone_SkPdfNativeObjectType == mapPageObjectDictionary(value)) return fals e;
1635 *data = (SkPdfPageObjectDictionary*)value;
1636 return true;
1637 }
1638
1639 bool SkPdfMapper::SkPdfPageObjectDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfPageObjectDictionary** data) con st {
1640 if (SkPdfPageObjectDictionaryFromDictionary(dict, key, data)) return true;
1641 if (abr == NULL || *abr == '\0') return false;
1642 return SkPdfPageObjectDictionaryFromDictionary(dict, abr, data);
1643 }
1644
1645 bool SkPdfMapper::isNameDictionary(const SkPdfNativeObject* nativeObj) const {
1646 return true;
1647 }
1648
1649 bool SkPdfMapper::SkPdfNameDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, SkPdfNameDictionary** data) const {
1650 const SkPdfNativeObject* value = dict->get(key);
1651 if (value == NULL) { return false; }
1652 if (data == NULL) { return true; }
1653 if (kNone_SkPdfNativeObjectType == mapNameDictionary(value)) return false;
1654 *data = (SkPdfNameDictionary*)value;
1655 return true;
1656 }
1657
1658 bool SkPdfMapper::SkPdfNameDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, const char* abr, SkPdfNameDictionary** data) const {
1659 if (SkPdfNameDictionaryFromDictionary(dict, key, data)) return true;
1660 if (abr == NULL || *abr == '\0') return false;
1661 return SkPdfNameDictionaryFromDictionary(dict, abr, data);
1662 }
1663
1664 bool SkPdfMapper::isResourceDictionary(const SkPdfNativeObject* nativeObj) const {
1665 return true;
1666 }
1667
1668 bool SkPdfMapper::SkPdfResourceDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfResourceDictionary** data) const {
1669 const SkPdfNativeObject* value = dict->get(key);
1670 if (value == NULL) { return false; }
1671 if (data == NULL) { return true; }
1672 if (kNone_SkPdfNativeObjectType == mapResourceDictionary(value)) return false;
1673 *data = (SkPdfResourceDictionary*)value;
1674 return true;
1675 }
1676
1677 bool SkPdfMapper::SkPdfResourceDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfResourceDictionary** data) const {
1678 if (SkPdfResourceDictionaryFromDictionary(dict, key, data)) return true;
1679 if (abr == NULL || *abr == '\0') return false;
1680 return SkPdfResourceDictionaryFromDictionary(dict, abr, data);
1681 }
1682
1683 bool SkPdfMapper::isNameTreeNodeDictionary(const SkPdfNativeObject* nativeObj) c onst {
1684 return true;
1685 }
1686
1687 bool SkPdfMapper::SkPdfNameTreeNodeDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfNameTreeNodeDictionary** data) const {
1688 const SkPdfNativeObject* value = dict->get(key);
1689 if (value == NULL) { return false; }
1690 if (data == NULL) { return true; }
1691 if (kNone_SkPdfNativeObjectType == mapNameTreeNodeDictionary(value)) return fa lse;
1692 *data = (SkPdfNameTreeNodeDictionary*)value;
1693 return true;
1694 }
1695
1696 bool SkPdfMapper::SkPdfNameTreeNodeDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfNameTreeNodeDictionary** data) const {
1697 if (SkPdfNameTreeNodeDictionaryFromDictionary(dict, key, data)) return true;
1698 if (abr == NULL || *abr == '\0') return false;
1699 return SkPdfNameTreeNodeDictionaryFromDictionary(dict, abr, data);
1700 }
1701
1702 bool SkPdfMapper::isNumberTreeNodeDictionary(const SkPdfNativeObject* nativeObj) const {
1703 return true;
1704 }
1705
1706 bool SkPdfMapper::SkPdfNumberTreeNodeDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfNumberTreeNodeDictionary** data) const {
1707 const SkPdfNativeObject* value = dict->get(key);
1708 if (value == NULL) { return false; }
1709 if (data == NULL) { return true; }
1710 if (kNone_SkPdfNativeObjectType == mapNumberTreeNodeDictionary(value)) return false;
1711 *data = (SkPdfNumberTreeNodeDictionary*)value;
1712 return true;
1713 }
1714
1715 bool SkPdfMapper::SkPdfNumberTreeNodeDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfNumberTreeNodeDictionary** d ata) const {
1716 if (SkPdfNumberTreeNodeDictionaryFromDictionary(dict, key, data)) return true;
1717 if (abr == NULL || *abr == '\0') return false;
1718 return SkPdfNumberTreeNodeDictionaryFromDictionary(dict, abr, data);
1719 }
1720
1721 bool SkPdfMapper::isFunctionCommonDictionary(const SkPdfNativeObject* nativeObj) const {
1722 return true;
1723 }
1724
1725 bool SkPdfMapper::SkPdfFunctionCommonDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfFunctionCommonDictionary** data) const {
1726 const SkPdfNativeObject* value = dict->get(key);
1727 if (value == NULL) { return false; }
1728 if (data == NULL) { return true; }
1729 if (kNone_SkPdfNativeObjectType == mapFunctionCommonDictionary(value)) return false;
1730 *data = (SkPdfFunctionCommonDictionary*)value;
1731 return true;
1732 }
1733
1734 bool SkPdfMapper::SkPdfFunctionCommonDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfFunctionCommonDictionary** d ata) const {
1735 if (SkPdfFunctionCommonDictionaryFromDictionary(dict, key, data)) return true;
1736 if (abr == NULL || *abr == '\0') return false;
1737 return SkPdfFunctionCommonDictionaryFromDictionary(dict, abr, data);
1738 }
1739
1740 bool SkPdfMapper::isType0FunctionDictionary(const SkPdfNativeObject* nativeObj) const {
1741 return true;
1742 }
1743
1744 bool SkPdfMapper::SkPdfType0FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType0FunctionDictionary** data) const {
1745 const SkPdfNativeObject* value = dict->get(key);
1746 if (value == NULL) { return false; }
1747 if (data == NULL) { return true; }
1748 if (kNone_SkPdfNativeObjectType == mapType0FunctionDictionary(value)) return f alse;
1749 *data = (SkPdfType0FunctionDictionary*)value;
1750 return true;
1751 }
1752
1753 bool SkPdfMapper::SkPdfType0FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType0FunctionDictionary** dat a) const {
1754 if (SkPdfType0FunctionDictionaryFromDictionary(dict, key, data)) return true;
1755 if (abr == NULL || *abr == '\0') return false;
1756 return SkPdfType0FunctionDictionaryFromDictionary(dict, abr, data);
1757 }
1758
1759 bool SkPdfMapper::isType2FunctionDictionary(const SkPdfNativeObject* nativeObj) const {
1760 return true;
1761 }
1762
1763 bool SkPdfMapper::SkPdfType2FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType2FunctionDictionary** data) const {
1764 const SkPdfNativeObject* value = dict->get(key);
1765 if (value == NULL) { return false; }
1766 if (data == NULL) { return true; }
1767 if (kNone_SkPdfNativeObjectType == mapType2FunctionDictionary(value)) return f alse;
1768 *data = (SkPdfType2FunctionDictionary*)value;
1769 return true;
1770 }
1771
1772 bool SkPdfMapper::SkPdfType2FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType2FunctionDictionary** dat a) const {
1773 if (SkPdfType2FunctionDictionaryFromDictionary(dict, key, data)) return true;
1774 if (abr == NULL || *abr == '\0') return false;
1775 return SkPdfType2FunctionDictionaryFromDictionary(dict, abr, data);
1776 }
1777
1778 bool SkPdfMapper::isType3FunctionDictionary(const SkPdfNativeObject* nativeObj) const {
1779 return true;
1780 }
1781
1782 bool SkPdfMapper::SkPdfType3FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType3FunctionDictionary** data) const {
1783 const SkPdfNativeObject* value = dict->get(key);
1784 if (value == NULL) { return false; }
1785 if (data == NULL) { return true; }
1786 if (kNone_SkPdfNativeObjectType == mapType3FunctionDictionary(value)) return f alse;
1787 *data = (SkPdfType3FunctionDictionary*)value;
1788 return true;
1789 }
1790
1791 bool SkPdfMapper::SkPdfType3FunctionDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType3FunctionDictionary** dat a) const {
1792 if (SkPdfType3FunctionDictionaryFromDictionary(dict, key, data)) return true;
1793 if (abr == NULL || *abr == '\0') return false;
1794 return SkPdfType3FunctionDictionaryFromDictionary(dict, abr, data);
1795 }
1796
1797 bool SkPdfMapper::isFileSpecificationDictionary(const SkPdfNativeObject* nativeO bj) const {
1798 return true;
1799 }
1800
1801 bool SkPdfMapper::SkPdfFileSpecificationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfFileSpecificationDictionary** data) const {
1802 const SkPdfNativeObject* value = dict->get(key);
1803 if (value == NULL) { return false; }
1804 if (data == NULL) { return true; }
1805 if (kNone_SkPdfNativeObjectType == mapFileSpecificationDictionary(value)) retu rn false;
1806 *data = (SkPdfFileSpecificationDictionary*)value;
1807 return true;
1808 }
1809
1810 bool SkPdfMapper::SkPdfFileSpecificationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfFileSpecificationDictiona ry** data) const {
1811 if (SkPdfFileSpecificationDictionaryFromDictionary(dict, key, data)) return tr ue;
1812 if (abr == NULL || *abr == '\0') return false;
1813 return SkPdfFileSpecificationDictionaryFromDictionary(dict, abr, data);
1814 }
1815
1816 bool SkPdfMapper::isEmbeddedFileStreamDictionary(const SkPdfNativeObject* native Obj) const {
1817 return true;
1818 }
1819
1820 bool SkPdfMapper::SkPdfEmbeddedFileStreamDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, SkPdfEmbeddedFileStreamDictionary** data) cons t {
1821 const SkPdfNativeObject* value = dict->get(key);
1822 if (value == NULL) { return false; }
1823 if (data == NULL) { return true; }
1824 if (kNone_SkPdfNativeObjectType == mapEmbeddedFileStreamDictionary(value)) ret urn false;
1825 *data = (SkPdfEmbeddedFileStreamDictionary*)value;
1826 return true;
1827 }
1828
1829 bool SkPdfMapper::SkPdfEmbeddedFileStreamDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, const char* abr, SkPdfEmbeddedFileStreamDictio nary** data) const {
1830 if (SkPdfEmbeddedFileStreamDictionaryFromDictionary(dict, key, data)) return t rue;
1831 if (abr == NULL || *abr == '\0') return false;
1832 return SkPdfEmbeddedFileStreamDictionaryFromDictionary(dict, abr, data);
1833 }
1834
1835 bool SkPdfMapper::isEmbeddedFileParameterDictionary(const SkPdfNativeObject* nat iveObj) const {
1836 return true;
1837 }
1838
1839 bool SkPdfMapper::SkPdfEmbeddedFileParameterDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfEmbeddedFileParameterDictionary** data ) const {
1840 const SkPdfNativeObject* value = dict->get(key);
1841 if (value == NULL) { return false; }
1842 if (data == NULL) { return true; }
1843 if (kNone_SkPdfNativeObjectType == mapEmbeddedFileParameterDictionary(value)) return false;
1844 *data = (SkPdfEmbeddedFileParameterDictionary*)value;
1845 return true;
1846 }
1847
1848 bool SkPdfMapper::SkPdfEmbeddedFileParameterDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfEmbeddedFileParameter Dictionary** data) const {
1849 if (SkPdfEmbeddedFileParameterDictionaryFromDictionary(dict, key, data)) retur n true;
1850 if (abr == NULL || *abr == '\0') return false;
1851 return SkPdfEmbeddedFileParameterDictionaryFromDictionary(dict, abr, data);
1852 }
1853
1854 bool SkPdfMapper::isMacOsFileInformationDictionary(const SkPdfNativeObject* nati veObj) const {
1855 return true;
1856 }
1857
1858 bool SkPdfMapper::SkPdfMacOsFileInformationDictionaryFromDictionary(const SkPdfN ativeObject* dict, const char* key, SkPdfMacOsFileInformationDictionary** data) const {
1859 const SkPdfNativeObject* value = dict->get(key);
1860 if (value == NULL) { return false; }
1861 if (data == NULL) { return true; }
1862 if (kNone_SkPdfNativeObjectType == mapMacOsFileInformationDictionary(value)) r eturn false;
1863 *data = (SkPdfMacOsFileInformationDictionary*)value;
1864 return true;
1865 }
1866
1867 bool SkPdfMapper::SkPdfMacOsFileInformationDictionaryFromDictionary(const SkPdfN ativeObject* dict, const char* key, const char* abr, SkPdfMacOsFileInformationDi ctionary** data) const {
1868 if (SkPdfMacOsFileInformationDictionaryFromDictionary(dict, key, data)) return true;
1869 if (abr == NULL || *abr == '\0') return false;
1870 return SkPdfMacOsFileInformationDictionaryFromDictionary(dict, abr, data);
1871 }
1872
1873 bool SkPdfMapper::isGraphicsStateDictionary(const SkPdfNativeObject* nativeObj) const {
1874 return true;
1875 }
1876
1877 bool SkPdfMapper::SkPdfGraphicsStateDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfGraphicsStateDictionary** data) const {
1878 const SkPdfNativeObject* value = dict->get(key);
1879 if (value == NULL) { return false; }
1880 if (data == NULL) { return true; }
1881 if (kNone_SkPdfNativeObjectType == mapGraphicsStateDictionary(value)) return f alse;
1882 *data = (SkPdfGraphicsStateDictionary*)value;
1883 return true;
1884 }
1885
1886 bool SkPdfMapper::SkPdfGraphicsStateDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfGraphicsStateDictionary** dat a) const {
1887 if (SkPdfGraphicsStateDictionaryFromDictionary(dict, key, data)) return true;
1888 if (abr == NULL || *abr == '\0') return false;
1889 return SkPdfGraphicsStateDictionaryFromDictionary(dict, abr, data);
1890 }
1891
1892 bool SkPdfMapper::isCalgrayColorSpaceDictionary(const SkPdfNativeObject* nativeO bj) const {
1893 return true;
1894 }
1895
1896 bool SkPdfMapper::SkPdfCalgrayColorSpaceDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfCalgrayColorSpaceDictionary** data) const {
1897 const SkPdfNativeObject* value = dict->get(key);
1898 if (value == NULL) { return false; }
1899 if (data == NULL) { return true; }
1900 if (kNone_SkPdfNativeObjectType == mapCalgrayColorSpaceDictionary(value)) retu rn false;
1901 *data = (SkPdfCalgrayColorSpaceDictionary*)value;
1902 return true;
1903 }
1904
1905 bool SkPdfMapper::SkPdfCalgrayColorSpaceDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfCalgrayColorSpaceDictiona ry** data) const {
1906 if (SkPdfCalgrayColorSpaceDictionaryFromDictionary(dict, key, data)) return tr ue;
1907 if (abr == NULL || *abr == '\0') return false;
1908 return SkPdfCalgrayColorSpaceDictionaryFromDictionary(dict, abr, data);
1909 }
1910
1911 bool SkPdfMapper::isCalrgbColorSpaceDictionary(const SkPdfNativeObject* nativeOb j) const {
1912 return true;
1913 }
1914
1915 bool SkPdfMapper::SkPdfCalrgbColorSpaceDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfCalrgbColorSpaceDictionary** data) const {
1916 const SkPdfNativeObject* value = dict->get(key);
1917 if (value == NULL) { return false; }
1918 if (data == NULL) { return true; }
1919 if (kNone_SkPdfNativeObjectType == mapCalrgbColorSpaceDictionary(value)) retur n false;
1920 *data = (SkPdfCalrgbColorSpaceDictionary*)value;
1921 return true;
1922 }
1923
1924 bool SkPdfMapper::SkPdfCalrgbColorSpaceDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfCalrgbColorSpaceDictionary ** data) const {
1925 if (SkPdfCalrgbColorSpaceDictionaryFromDictionary(dict, key, data)) return tru e;
1926 if (abr == NULL || *abr == '\0') return false;
1927 return SkPdfCalrgbColorSpaceDictionaryFromDictionary(dict, abr, data);
1928 }
1929
1930 bool SkPdfMapper::isLabColorSpaceDictionary(const SkPdfNativeObject* nativeObj) const {
1931 return true;
1932 }
1933
1934 bool SkPdfMapper::SkPdfLabColorSpaceDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfLabColorSpaceDictionary** data) const {
1935 const SkPdfNativeObject* value = dict->get(key);
1936 if (value == NULL) { return false; }
1937 if (data == NULL) { return true; }
1938 if (kNone_SkPdfNativeObjectType == mapLabColorSpaceDictionary(value)) return f alse;
1939 *data = (SkPdfLabColorSpaceDictionary*)value;
1940 return true;
1941 }
1942
1943 bool SkPdfMapper::SkPdfLabColorSpaceDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfLabColorSpaceDictionary** dat a) const {
1944 if (SkPdfLabColorSpaceDictionaryFromDictionary(dict, key, data)) return true;
1945 if (abr == NULL || *abr == '\0') return false;
1946 return SkPdfLabColorSpaceDictionaryFromDictionary(dict, abr, data);
1947 }
1948
1949 bool SkPdfMapper::isIccProfileStreamDictionary(const SkPdfNativeObject* nativeOb j) const {
1950 return true;
1951 }
1952
1953 bool SkPdfMapper::SkPdfIccProfileStreamDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfIccProfileStreamDictionary** data) const {
1954 const SkPdfNativeObject* value = dict->get(key);
1955 if (value == NULL) { return false; }
1956 if (data == NULL) { return true; }
1957 if (kNone_SkPdfNativeObjectType == mapIccProfileStreamDictionary(value)) retur n false;
1958 *data = (SkPdfIccProfileStreamDictionary*)value;
1959 return true;
1960 }
1961
1962 bool SkPdfMapper::SkPdfIccProfileStreamDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfIccProfileStreamDictionary ** data) const {
1963 if (SkPdfIccProfileStreamDictionaryFromDictionary(dict, key, data)) return tru e;
1964 if (abr == NULL || *abr == '\0') return false;
1965 return SkPdfIccProfileStreamDictionaryFromDictionary(dict, abr, data);
1966 }
1967
1968 bool SkPdfMapper::isDeviceNColorSpaceDictionary(const SkPdfNativeObject* nativeO bj) const {
1969 return true;
1970 }
1971
1972 bool SkPdfMapper::SkPdfDeviceNColorSpaceDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfDeviceNColorSpaceDictionary** data) const {
1973 const SkPdfNativeObject* value = dict->get(key);
1974 if (value == NULL) { return false; }
1975 if (data == NULL) { return true; }
1976 if (kNone_SkPdfNativeObjectType == mapDeviceNColorSpaceDictionary(value)) retu rn false;
1977 *data = (SkPdfDeviceNColorSpaceDictionary*)value;
1978 return true;
1979 }
1980
1981 bool SkPdfMapper::SkPdfDeviceNColorSpaceDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfDeviceNColorSpaceDictiona ry** data) const {
1982 if (SkPdfDeviceNColorSpaceDictionaryFromDictionary(dict, key, data)) return tr ue;
1983 if (abr == NULL || *abr == '\0') return false;
1984 return SkPdfDeviceNColorSpaceDictionaryFromDictionary(dict, abr, data);
1985 }
1986
1987 bool SkPdfMapper::isType1PatternDictionary(const SkPdfNativeObject* nativeObj) c onst {
1988 const SkPdfNativeObject* ret = NULL;
1989 if (!nativeObj->isDictionary()) return false;
1990 ret = nativeObj->get("PatternType", "");
1991 if (ret == NULL || !ret->isInteger()) return false;
1992 if ((ret->intValue() != 1)) return false;
1993
1994 return true;
1995 }
1996
1997 bool SkPdfMapper::SkPdfType1PatternDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType1PatternDictionary** data) const {
1998 const SkPdfNativeObject* value = dict->get(key);
1999 if (value == NULL) { return false; }
2000 if (data == NULL) { return true; }
2001 if (kNone_SkPdfNativeObjectType == mapType1PatternDictionary(value)) return fa lse;
2002 *data = (SkPdfType1PatternDictionary*)value;
2003 return true;
2004 }
2005
2006 bool SkPdfMapper::SkPdfType1PatternDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType1PatternDictionary** data) const {
2007 if (SkPdfType1PatternDictionaryFromDictionary(dict, key, data)) return true;
2008 if (abr == NULL || *abr == '\0') return false;
2009 return SkPdfType1PatternDictionaryFromDictionary(dict, abr, data);
2010 }
2011
2012 bool SkPdfMapper::isType2PatternDictionary(const SkPdfNativeObject* nativeObj) c onst {
2013 return true;
2014 }
2015
2016 bool SkPdfMapper::SkPdfType2PatternDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType2PatternDictionary** data) const {
2017 const SkPdfNativeObject* value = dict->get(key);
2018 if (value == NULL) { return false; }
2019 if (data == NULL) { return true; }
2020 if (kNone_SkPdfNativeObjectType == mapType2PatternDictionary(value)) return fa lse;
2021 *data = (SkPdfType2PatternDictionary*)value;
2022 return true;
2023 }
2024
2025 bool SkPdfMapper::SkPdfType2PatternDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType2PatternDictionary** data) const {
2026 if (SkPdfType2PatternDictionaryFromDictionary(dict, key, data)) return true;
2027 if (abr == NULL || *abr == '\0') return false;
2028 return SkPdfType2PatternDictionaryFromDictionary(dict, abr, data);
2029 }
2030
2031 bool SkPdfMapper::isShadingDictionary(const SkPdfNativeObject* nativeObj) const {
2032 return true;
2033 }
2034
2035 bool SkPdfMapper::SkPdfShadingDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfShadingDictionary** data) const {
2036 const SkPdfNativeObject* value = dict->get(key);
2037 if (value == NULL) { return false; }
2038 if (data == NULL) { return true; }
2039 if (kNone_SkPdfNativeObjectType == mapShadingDictionary(value)) return false;
2040 *data = (SkPdfShadingDictionary*)value;
2041 return true;
2042 }
2043
2044 bool SkPdfMapper::SkPdfShadingDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfShadingDictionary** data) const {
2045 if (SkPdfShadingDictionaryFromDictionary(dict, key, data)) return true;
2046 if (abr == NULL || *abr == '\0') return false;
2047 return SkPdfShadingDictionaryFromDictionary(dict, abr, data);
2048 }
2049
2050 bool SkPdfMapper::isType1ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2051 return true;
2052 }
2053
2054 bool SkPdfMapper::SkPdfType1ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType1ShadingDictionary** data) const {
2055 const SkPdfNativeObject* value = dict->get(key);
2056 if (value == NULL) { return false; }
2057 if (data == NULL) { return true; }
2058 if (kNone_SkPdfNativeObjectType == mapType1ShadingDictionary(value)) return fa lse;
2059 *data = (SkPdfType1ShadingDictionary*)value;
2060 return true;
2061 }
2062
2063 bool SkPdfMapper::SkPdfType1ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType1ShadingDictionary** data) const {
2064 if (SkPdfType1ShadingDictionaryFromDictionary(dict, key, data)) return true;
2065 if (abr == NULL || *abr == '\0') return false;
2066 return SkPdfType1ShadingDictionaryFromDictionary(dict, abr, data);
2067 }
2068
2069 bool SkPdfMapper::isType2ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2070 return true;
2071 }
2072
2073 bool SkPdfMapper::SkPdfType2ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType2ShadingDictionary** data) const {
2074 const SkPdfNativeObject* value = dict->get(key);
2075 if (value == NULL) { return false; }
2076 if (data == NULL) { return true; }
2077 if (kNone_SkPdfNativeObjectType == mapType2ShadingDictionary(value)) return fa lse;
2078 *data = (SkPdfType2ShadingDictionary*)value;
2079 return true;
2080 }
2081
2082 bool SkPdfMapper::SkPdfType2ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType2ShadingDictionary** data) const {
2083 if (SkPdfType2ShadingDictionaryFromDictionary(dict, key, data)) return true;
2084 if (abr == NULL || *abr == '\0') return false;
2085 return SkPdfType2ShadingDictionaryFromDictionary(dict, abr, data);
2086 }
2087
2088 bool SkPdfMapper::isType3ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2089 return true;
2090 }
2091
2092 bool SkPdfMapper::SkPdfType3ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType3ShadingDictionary** data) const {
2093 const SkPdfNativeObject* value = dict->get(key);
2094 if (value == NULL) { return false; }
2095 if (data == NULL) { return true; }
2096 if (kNone_SkPdfNativeObjectType == mapType3ShadingDictionary(value)) return fa lse;
2097 *data = (SkPdfType3ShadingDictionary*)value;
2098 return true;
2099 }
2100
2101 bool SkPdfMapper::SkPdfType3ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType3ShadingDictionary** data) const {
2102 if (SkPdfType3ShadingDictionaryFromDictionary(dict, key, data)) return true;
2103 if (abr == NULL || *abr == '\0') return false;
2104 return SkPdfType3ShadingDictionaryFromDictionary(dict, abr, data);
2105 }
2106
2107 bool SkPdfMapper::isType4ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2108 return true;
2109 }
2110
2111 bool SkPdfMapper::SkPdfType4ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType4ShadingDictionary** data) const {
2112 const SkPdfNativeObject* value = dict->get(key);
2113 if (value == NULL) { return false; }
2114 if (data == NULL) { return true; }
2115 if (kNone_SkPdfNativeObjectType == mapType4ShadingDictionary(value)) return fa lse;
2116 *data = (SkPdfType4ShadingDictionary*)value;
2117 return true;
2118 }
2119
2120 bool SkPdfMapper::SkPdfType4ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType4ShadingDictionary** data) const {
2121 if (SkPdfType4ShadingDictionaryFromDictionary(dict, key, data)) return true;
2122 if (abr == NULL || *abr == '\0') return false;
2123 return SkPdfType4ShadingDictionaryFromDictionary(dict, abr, data);
2124 }
2125
2126 bool SkPdfMapper::isType5ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2127 return true;
2128 }
2129
2130 bool SkPdfMapper::SkPdfType5ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType5ShadingDictionary** data) const {
2131 const SkPdfNativeObject* value = dict->get(key);
2132 if (value == NULL) { return false; }
2133 if (data == NULL) { return true; }
2134 if (kNone_SkPdfNativeObjectType == mapType5ShadingDictionary(value)) return fa lse;
2135 *data = (SkPdfType5ShadingDictionary*)value;
2136 return true;
2137 }
2138
2139 bool SkPdfMapper::SkPdfType5ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType5ShadingDictionary** data) const {
2140 if (SkPdfType5ShadingDictionaryFromDictionary(dict, key, data)) return true;
2141 if (abr == NULL || *abr == '\0') return false;
2142 return SkPdfType5ShadingDictionaryFromDictionary(dict, abr, data);
2143 }
2144
2145 bool SkPdfMapper::isType6ShadingDictionary(const SkPdfNativeObject* nativeObj) c onst {
2146 return true;
2147 }
2148
2149 bool SkPdfMapper::SkPdfType6ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfType6ShadingDictionary** data) const {
2150 const SkPdfNativeObject* value = dict->get(key);
2151 if (value == NULL) { return false; }
2152 if (data == NULL) { return true; }
2153 if (kNone_SkPdfNativeObjectType == mapType6ShadingDictionary(value)) return fa lse;
2154 *data = (SkPdfType6ShadingDictionary*)value;
2155 return true;
2156 }
2157
2158 bool SkPdfMapper::SkPdfType6ShadingDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfType6ShadingDictionary** data) const {
2159 if (SkPdfType6ShadingDictionaryFromDictionary(dict, key, data)) return true;
2160 if (abr == NULL || *abr == '\0') return false;
2161 return SkPdfType6ShadingDictionaryFromDictionary(dict, abr, data);
2162 }
2163
2164 bool SkPdfMapper::isImageDictionary(const SkPdfNativeObject* nativeObj) const {
2165 const SkPdfNativeObject* ret = NULL;
2166 if (!nativeObj->isDictionary()) return false;
2167 ret = nativeObj->get("Subtype", "");
2168 if (ret == NULL || !ret->isName()) return false;
2169 if ((ret->nameValue2() != "Image") && (ret->nameValue2() != "Image")) return f alse;
2170
2171 return true;
2172 }
2173
2174 bool SkPdfMapper::SkPdfImageDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, SkPdfImageDictionary** data) const {
2175 const SkPdfNativeObject* value = dict->get(key);
2176 if (value == NULL) { return false; }
2177 if (data == NULL) { return true; }
2178 if (kNone_SkPdfNativeObjectType == mapImageDictionary(value)) return false;
2179 *data = (SkPdfImageDictionary*)value;
2180 return true;
2181 }
2182
2183 bool SkPdfMapper::SkPdfImageDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, const char* abr, SkPdfImageDictionary** data) const {
2184 if (SkPdfImageDictionaryFromDictionary(dict, key, data)) return true;
2185 if (abr == NULL || *abr == '\0') return false;
2186 return SkPdfImageDictionaryFromDictionary(dict, abr, data);
2187 }
2188
2189 bool SkPdfMapper::isAlternateImageDictionary(const SkPdfNativeObject* nativeObj) const {
2190 return true;
2191 }
2192
2193 bool SkPdfMapper::SkPdfAlternateImageDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfAlternateImageDictionary** data) const {
2194 const SkPdfNativeObject* value = dict->get(key);
2195 if (value == NULL) { return false; }
2196 if (data == NULL) { return true; }
2197 if (kNone_SkPdfNativeObjectType == mapAlternateImageDictionary(value)) return false;
2198 *data = (SkPdfAlternateImageDictionary*)value;
2199 return true;
2200 }
2201
2202 bool SkPdfMapper::SkPdfAlternateImageDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfAlternateImageDictionary** d ata) const {
2203 if (SkPdfAlternateImageDictionaryFromDictionary(dict, key, data)) return true;
2204 if (abr == NULL || *abr == '\0') return false;
2205 return SkPdfAlternateImageDictionaryFromDictionary(dict, abr, data);
2206 }
2207
2208 bool SkPdfMapper::isType1FormDictionary(const SkPdfNativeObject* nativeObj) cons t {
2209 const SkPdfNativeObject* ret = NULL;
2210 if (!nativeObj->isDictionary()) return false;
2211 ret = nativeObj->get("Subtype", "");
2212 if (ret == NULL || !ret->isName()) return false;
2213 if ((ret->nameValue2() != "Form")) return false;
2214
2215 return true;
2216 }
2217
2218 bool SkPdfMapper::SkPdfType1FormDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfType1FormDictionary** data) const {
2219 const SkPdfNativeObject* value = dict->get(key);
2220 if (value == NULL) { return false; }
2221 if (data == NULL) { return true; }
2222 if (kNone_SkPdfNativeObjectType == mapType1FormDictionary(value)) return false ;
2223 *data = (SkPdfType1FormDictionary*)value;
2224 return true;
2225 }
2226
2227 bool SkPdfMapper::SkPdfType1FormDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfType1FormDictionary** data) const {
2228 if (SkPdfType1FormDictionaryFromDictionary(dict, key, data)) return true;
2229 if (abr == NULL || *abr == '\0') return false;
2230 return SkPdfType1FormDictionaryFromDictionary(dict, abr, data);
2231 }
2232
2233 bool SkPdfMapper::isGroupAttributesDictionary(const SkPdfNativeObject* nativeObj ) const {
2234 return true;
2235 }
2236
2237 bool SkPdfMapper::SkPdfGroupAttributesDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfGroupAttributesDictionary** data) const {
2238 const SkPdfNativeObject* value = dict->get(key);
2239 if (value == NULL) { return false; }
2240 if (data == NULL) { return true; }
2241 if (kNone_SkPdfNativeObjectType == mapGroupAttributesDictionary(value)) return false;
2242 *data = (SkPdfGroupAttributesDictionary*)value;
2243 return true;
2244 }
2245
2246 bool SkPdfMapper::SkPdfGroupAttributesDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfGroupAttributesDictionary** data) const {
2247 if (SkPdfGroupAttributesDictionaryFromDictionary(dict, key, data)) return true ;
2248 if (abr == NULL || *abr == '\0') return false;
2249 return SkPdfGroupAttributesDictionaryFromDictionary(dict, abr, data);
2250 }
2251
2252 bool SkPdfMapper::isReferenceDictionary(const SkPdfNativeObject* nativeObj) cons t {
2253 return true;
2254 }
2255
2256 bool SkPdfMapper::SkPdfReferenceDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfReferenceDictionary** data) const {
2257 const SkPdfNativeObject* value = dict->get(key);
2258 if (value == NULL) { return false; }
2259 if (data == NULL) { return true; }
2260 if (kNone_SkPdfNativeObjectType == mapReferenceDictionary(value)) return false ;
2261 *data = (SkPdfReferenceDictionary*)value;
2262 return true;
2263 }
2264
2265 bool SkPdfMapper::SkPdfReferenceDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfReferenceDictionary** data) const {
2266 if (SkPdfReferenceDictionaryFromDictionary(dict, key, data)) return true;
2267 if (abr == NULL || *abr == '\0') return false;
2268 return SkPdfReferenceDictionaryFromDictionary(dict, abr, data);
2269 }
2270
2271 bool SkPdfMapper::isPSXobjectDictionary(const SkPdfNativeObject* nativeObj) cons t {
2272 return true;
2273 }
2274
2275 bool SkPdfMapper::SkPdfPSXobjectDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfPSXobjectDictionary** data) const {
2276 const SkPdfNativeObject* value = dict->get(key);
2277 if (value == NULL) { return false; }
2278 if (data == NULL) { return true; }
2279 if (kNone_SkPdfNativeObjectType == mapPSXobjectDictionary(value)) return false ;
2280 *data = (SkPdfPSXobjectDictionary*)value;
2281 return true;
2282 }
2283
2284 bool SkPdfMapper::SkPdfPSXobjectDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfPSXobjectDictionary** data) const {
2285 if (SkPdfPSXobjectDictionaryFromDictionary(dict, key, data)) return true;
2286 if (abr == NULL || *abr == '\0') return false;
2287 return SkPdfPSXobjectDictionaryFromDictionary(dict, abr, data);
2288 }
2289
2290 bool SkPdfMapper::isType1FontDictionary(const SkPdfNativeObject* nativeObj) cons t {
2291 const SkPdfNativeObject* ret = NULL;
2292 if (!nativeObj->isDictionary()) return false;
2293 ret = nativeObj->get("Subtype", "");
2294 if (ret == NULL || !ret->isName()) return false;
2295 if ((ret->nameValue2() != "MMType1") && (ret->nameValue2() != "TrueType") && ( ret->nameValue2() != "Type3") && (ret->nameValue2() != "Type1")) return false;
2296
2297 return true;
2298 }
2299
2300 bool SkPdfMapper::SkPdfType1FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfType1FontDictionary** data) const {
2301 const SkPdfNativeObject* value = dict->get(key);
2302 if (value == NULL) { return false; }
2303 if (data == NULL) { return true; }
2304 if (kNone_SkPdfNativeObjectType == mapType1FontDictionary(value)) return false ;
2305 *data = (SkPdfType1FontDictionary*)value;
2306 return true;
2307 }
2308
2309 bool SkPdfMapper::SkPdfType1FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfType1FontDictionary** data) const {
2310 if (SkPdfType1FontDictionaryFromDictionary(dict, key, data)) return true;
2311 if (abr == NULL || *abr == '\0') return false;
2312 return SkPdfType1FontDictionaryFromDictionary(dict, abr, data);
2313 }
2314
2315 bool SkPdfMapper::isType3FontDictionary(const SkPdfNativeObject* nativeObj) cons t {
2316 const SkPdfNativeObject* ret = NULL;
2317 if (!nativeObj->isDictionary()) return false;
2318 ret = nativeObj->get("Subtype", "");
2319 if (ret == NULL || !ret->isName()) return false;
2320 if ((ret->nameValue2() != "Type3")) return false;
2321
2322 return true;
2323 }
2324
2325 bool SkPdfMapper::SkPdfType3FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfType3FontDictionary** data) const {
2326 const SkPdfNativeObject* value = dict->get(key);
2327 if (value == NULL) { return false; }
2328 if (data == NULL) { return true; }
2329 if (kNone_SkPdfNativeObjectType == mapType3FontDictionary(value)) return false ;
2330 *data = (SkPdfType3FontDictionary*)value;
2331 return true;
2332 }
2333
2334 bool SkPdfMapper::SkPdfType3FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfType3FontDictionary** data) const {
2335 if (SkPdfType3FontDictionaryFromDictionary(dict, key, data)) return true;
2336 if (abr == NULL || *abr == '\0') return false;
2337 return SkPdfType3FontDictionaryFromDictionary(dict, abr, data);
2338 }
2339
2340 bool SkPdfMapper::isEncodingDictionary(const SkPdfNativeObject* nativeObj) const {
2341 return true;
2342 }
2343
2344 bool SkPdfMapper::SkPdfEncodingDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfEncodingDictionary** data) const {
2345 const SkPdfNativeObject* value = dict->get(key);
2346 if (value == NULL) { return false; }
2347 if (data == NULL) { return true; }
2348 if (kNone_SkPdfNativeObjectType == mapEncodingDictionary(value)) return false;
2349 *data = (SkPdfEncodingDictionary*)value;
2350 return true;
2351 }
2352
2353 bool SkPdfMapper::SkPdfEncodingDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfEncodingDictionary** data) const {
2354 if (SkPdfEncodingDictionaryFromDictionary(dict, key, data)) return true;
2355 if (abr == NULL || *abr == '\0') return false;
2356 return SkPdfEncodingDictionaryFromDictionary(dict, abr, data);
2357 }
2358
2359 bool SkPdfMapper::isCIDSystemInfoDictionary(const SkPdfNativeObject* nativeObj) const {
2360 return true;
2361 }
2362
2363 bool SkPdfMapper::SkPdfCIDSystemInfoDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfCIDSystemInfoDictionary** data) const {
2364 const SkPdfNativeObject* value = dict->get(key);
2365 if (value == NULL) { return false; }
2366 if (data == NULL) { return true; }
2367 if (kNone_SkPdfNativeObjectType == mapCIDSystemInfoDictionary(value)) return f alse;
2368 *data = (SkPdfCIDSystemInfoDictionary*)value;
2369 return true;
2370 }
2371
2372 bool SkPdfMapper::SkPdfCIDSystemInfoDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfCIDSystemInfoDictionary** dat a) const {
2373 if (SkPdfCIDSystemInfoDictionaryFromDictionary(dict, key, data)) return true;
2374 if (abr == NULL || *abr == '\0') return false;
2375 return SkPdfCIDSystemInfoDictionaryFromDictionary(dict, abr, data);
2376 }
2377
2378 bool SkPdfMapper::isCIDFontDictionary(const SkPdfNativeObject* nativeObj) const {
2379 const SkPdfNativeObject* ret = NULL;
2380 if (!nativeObj->isDictionary()) return false;
2381 ret = nativeObj->get("Subtype", "");
2382 if (ret == NULL || !ret->isName()) return false;
2383 if ((ret->nameValue2() != "CIDFontType0") && (ret->nameValue2() != "CIDFontTyp e2")) return false;
2384
2385 return true;
2386 }
2387
2388 bool SkPdfMapper::SkPdfCIDFontDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfCIDFontDictionary** data) const {
2389 const SkPdfNativeObject* value = dict->get(key);
2390 if (value == NULL) { return false; }
2391 if (data == NULL) { return true; }
2392 if (kNone_SkPdfNativeObjectType == mapCIDFontDictionary(value)) return false;
2393 *data = (SkPdfCIDFontDictionary*)value;
2394 return true;
2395 }
2396
2397 bool SkPdfMapper::SkPdfCIDFontDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfCIDFontDictionary** data) const {
2398 if (SkPdfCIDFontDictionaryFromDictionary(dict, key, data)) return true;
2399 if (abr == NULL || *abr == '\0') return false;
2400 return SkPdfCIDFontDictionaryFromDictionary(dict, abr, data);
2401 }
2402
2403 bool SkPdfMapper::isCMapDictionary(const SkPdfNativeObject* nativeObj) const {
2404 return true;
2405 }
2406
2407 bool SkPdfMapper::SkPdfCMapDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, SkPdfCMapDictionary** data) const {
2408 const SkPdfNativeObject* value = dict->get(key);
2409 if (value == NULL) { return false; }
2410 if (data == NULL) { return true; }
2411 if (kNone_SkPdfNativeObjectType == mapCMapDictionary(value)) return false;
2412 *data = (SkPdfCMapDictionary*)value;
2413 return true;
2414 }
2415
2416 bool SkPdfMapper::SkPdfCMapDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, const char* abr, SkPdfCMapDictionary** data) const {
2417 if (SkPdfCMapDictionaryFromDictionary(dict, key, data)) return true;
2418 if (abr == NULL || *abr == '\0') return false;
2419 return SkPdfCMapDictionaryFromDictionary(dict, abr, data);
2420 }
2421
2422 bool SkPdfMapper::isType0FontDictionary(const SkPdfNativeObject* nativeObj) cons t {
2423 const SkPdfNativeObject* ret = NULL;
2424 if (!nativeObj->isDictionary()) return false;
2425 ret = nativeObj->get("Subtype", "");
2426 if (ret == NULL || !ret->isName()) return false;
2427 if ((ret->nameValue2() != "Type0")) return false;
2428
2429 return true;
2430 }
2431
2432 bool SkPdfMapper::SkPdfType0FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfType0FontDictionary** data) const {
2433 const SkPdfNativeObject* value = dict->get(key);
2434 if (value == NULL) { return false; }
2435 if (data == NULL) { return true; }
2436 if (kNone_SkPdfNativeObjectType == mapType0FontDictionary(value)) return false ;
2437 *data = (SkPdfType0FontDictionary*)value;
2438 return true;
2439 }
2440
2441 bool SkPdfMapper::SkPdfType0FontDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfType0FontDictionary** data) const {
2442 if (SkPdfType0FontDictionaryFromDictionary(dict, key, data)) return true;
2443 if (abr == NULL || *abr == '\0') return false;
2444 return SkPdfType0FontDictionaryFromDictionary(dict, abr, data);
2445 }
2446
2447 bool SkPdfMapper::isFontDescriptorDictionary(const SkPdfNativeObject* nativeObj) const {
2448 const SkPdfNativeObject* ret = NULL;
2449 if (!nativeObj->isDictionary()) return false;
2450 ret = nativeObj->get("Type", "");
2451 if (ret == NULL || !ret->isName()) return false;
2452 if ((ret->nameValue2() != "FontDescriptor")) return false;
2453
2454 return true;
2455 }
2456
2457 bool SkPdfMapper::SkPdfFontDescriptorDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfFontDescriptorDictionary** data) const {
2458 const SkPdfNativeObject* value = dict->get(key);
2459 if (value == NULL) { return false; }
2460 if (data == NULL) { return true; }
2461 if (kNone_SkPdfNativeObjectType == mapFontDescriptorDictionary(value)) return false;
2462 *data = (SkPdfFontDescriptorDictionary*)value;
2463 return true;
2464 }
2465
2466 bool SkPdfMapper::SkPdfFontDescriptorDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfFontDescriptorDictionary** d ata) const {
2467 if (SkPdfFontDescriptorDictionaryFromDictionary(dict, key, data)) return true;
2468 if (abr == NULL || *abr == '\0') return false;
2469 return SkPdfFontDescriptorDictionaryFromDictionary(dict, abr, data);
2470 }
2471
2472 bool SkPdfMapper::isCIDFontDescriptorDictionary(const SkPdfNativeObject* nativeO bj) const {
2473 return true;
2474 }
2475
2476 bool SkPdfMapper::SkPdfCIDFontDescriptorDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfCIDFontDescriptorDictionary** data) const {
2477 const SkPdfNativeObject* value = dict->get(key);
2478 if (value == NULL) { return false; }
2479 if (data == NULL) { return true; }
2480 if (kNone_SkPdfNativeObjectType == mapCIDFontDescriptorDictionary(value)) retu rn false;
2481 *data = (SkPdfCIDFontDescriptorDictionary*)value;
2482 return true;
2483 }
2484
2485 bool SkPdfMapper::SkPdfCIDFontDescriptorDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfCIDFontDescriptorDictiona ry** data) const {
2486 if (SkPdfCIDFontDescriptorDictionaryFromDictionary(dict, key, data)) return tr ue;
2487 if (abr == NULL || *abr == '\0') return false;
2488 return SkPdfCIDFontDescriptorDictionaryFromDictionary(dict, abr, data);
2489 }
2490
2491 bool SkPdfMapper::isEmbeddedFontStreamDictionary(const SkPdfNativeObject* native Obj) const {
2492 return true;
2493 }
2494
2495 bool SkPdfMapper::SkPdfEmbeddedFontStreamDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, SkPdfEmbeddedFontStreamDictionary** data) cons t {
2496 const SkPdfNativeObject* value = dict->get(key);
2497 if (value == NULL) { return false; }
2498 if (data == NULL) { return true; }
2499 if (kNone_SkPdfNativeObjectType == mapEmbeddedFontStreamDictionary(value)) ret urn false;
2500 *data = (SkPdfEmbeddedFontStreamDictionary*)value;
2501 return true;
2502 }
2503
2504 bool SkPdfMapper::SkPdfEmbeddedFontStreamDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, const char* abr, SkPdfEmbeddedFontStreamDictio nary** data) const {
2505 if (SkPdfEmbeddedFontStreamDictionaryFromDictionary(dict, key, data)) return t rue;
2506 if (abr == NULL || *abr == '\0') return false;
2507 return SkPdfEmbeddedFontStreamDictionaryFromDictionary(dict, abr, data);
2508 }
2509
2510 bool SkPdfMapper::isType1HalftoneDictionary(const SkPdfNativeObject* nativeObj) const {
2511 return true;
2512 }
2513
2514 bool SkPdfMapper::SkPdfType1HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType1HalftoneDictionary** data) const {
2515 const SkPdfNativeObject* value = dict->get(key);
2516 if (value == NULL) { return false; }
2517 if (data == NULL) { return true; }
2518 if (kNone_SkPdfNativeObjectType == mapType1HalftoneDictionary(value)) return f alse;
2519 *data = (SkPdfType1HalftoneDictionary*)value;
2520 return true;
2521 }
2522
2523 bool SkPdfMapper::SkPdfType1HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType1HalftoneDictionary** dat a) const {
2524 if (SkPdfType1HalftoneDictionaryFromDictionary(dict, key, data)) return true;
2525 if (abr == NULL || *abr == '\0') return false;
2526 return SkPdfType1HalftoneDictionaryFromDictionary(dict, abr, data);
2527 }
2528
2529 bool SkPdfMapper::isType6HalftoneDictionary(const SkPdfNativeObject* nativeObj) const {
2530 return true;
2531 }
2532
2533 bool SkPdfMapper::SkPdfType6HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType6HalftoneDictionary** data) const {
2534 const SkPdfNativeObject* value = dict->get(key);
2535 if (value == NULL) { return false; }
2536 if (data == NULL) { return true; }
2537 if (kNone_SkPdfNativeObjectType == mapType6HalftoneDictionary(value)) return f alse;
2538 *data = (SkPdfType6HalftoneDictionary*)value;
2539 return true;
2540 }
2541
2542 bool SkPdfMapper::SkPdfType6HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType6HalftoneDictionary** dat a) const {
2543 if (SkPdfType6HalftoneDictionaryFromDictionary(dict, key, data)) return true;
2544 if (abr == NULL || *abr == '\0') return false;
2545 return SkPdfType6HalftoneDictionaryFromDictionary(dict, abr, data);
2546 }
2547
2548 bool SkPdfMapper::isType10HalftoneDictionary(const SkPdfNativeObject* nativeObj) const {
2549 return true;
2550 }
2551
2552 bool SkPdfMapper::SkPdfType10HalftoneDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfType10HalftoneDictionary** data) const {
2553 const SkPdfNativeObject* value = dict->get(key);
2554 if (value == NULL) { return false; }
2555 if (data == NULL) { return true; }
2556 if (kNone_SkPdfNativeObjectType == mapType10HalftoneDictionary(value)) return false;
2557 *data = (SkPdfType10HalftoneDictionary*)value;
2558 return true;
2559 }
2560
2561 bool SkPdfMapper::SkPdfType10HalftoneDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfType10HalftoneDictionary** d ata) const {
2562 if (SkPdfType10HalftoneDictionaryFromDictionary(dict, key, data)) return true;
2563 if (abr == NULL || *abr == '\0') return false;
2564 return SkPdfType10HalftoneDictionaryFromDictionary(dict, abr, data);
2565 }
2566
2567 bool SkPdfMapper::isType16HalftoneDictionary(const SkPdfNativeObject* nativeObj) const {
2568 return true;
2569 }
2570
2571 bool SkPdfMapper::SkPdfType16HalftoneDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfType16HalftoneDictionary** data) const {
2572 const SkPdfNativeObject* value = dict->get(key);
2573 if (value == NULL) { return false; }
2574 if (data == NULL) { return true; }
2575 if (kNone_SkPdfNativeObjectType == mapType16HalftoneDictionary(value)) return false;
2576 *data = (SkPdfType16HalftoneDictionary*)value;
2577 return true;
2578 }
2579
2580 bool SkPdfMapper::SkPdfType16HalftoneDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfType16HalftoneDictionary** d ata) const {
2581 if (SkPdfType16HalftoneDictionaryFromDictionary(dict, key, data)) return true;
2582 if (abr == NULL || *abr == '\0') return false;
2583 return SkPdfType16HalftoneDictionaryFromDictionary(dict, abr, data);
2584 }
2585
2586 bool SkPdfMapper::isType5HalftoneDictionary(const SkPdfNativeObject* nativeObj) const {
2587 return true;
2588 }
2589
2590 bool SkPdfMapper::SkPdfType5HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfType5HalftoneDictionary** data) const {
2591 const SkPdfNativeObject* value = dict->get(key);
2592 if (value == NULL) { return false; }
2593 if (data == NULL) { return true; }
2594 if (kNone_SkPdfNativeObjectType == mapType5HalftoneDictionary(value)) return f alse;
2595 *data = (SkPdfType5HalftoneDictionary*)value;
2596 return true;
2597 }
2598
2599 bool SkPdfMapper::SkPdfType5HalftoneDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfType5HalftoneDictionary** dat a) const {
2600 if (SkPdfType5HalftoneDictionaryFromDictionary(dict, key, data)) return true;
2601 if (abr == NULL || *abr == '\0') return false;
2602 return SkPdfType5HalftoneDictionaryFromDictionary(dict, abr, data);
2603 }
2604
2605 bool SkPdfMapper::isSoftMaskDictionary(const SkPdfNativeObject* nativeObj) const {
2606 const SkPdfNativeObject* ret = NULL;
2607 if (!nativeObj->isDictionary()) return false;
2608 ret = nativeObj->get("S", "");
2609 if (ret == NULL || !ret->isName()) return false;
2610 if ((ret->nameValue2() != "Alpha") && (ret->nameValue2() != "Luminosity")) ret urn false;
2611
2612 return true;
2613 }
2614
2615 bool SkPdfMapper::SkPdfSoftMaskDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfSoftMaskDictionary** data) const {
2616 const SkPdfNativeObject* value = dict->get(key);
2617 if (value == NULL) { return false; }
2618 if (data == NULL) { return true; }
2619 if (kNone_SkPdfNativeObjectType == mapSoftMaskDictionary(value)) return false;
2620 *data = (SkPdfSoftMaskDictionary*)value;
2621 return true;
2622 }
2623
2624 bool SkPdfMapper::SkPdfSoftMaskDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfSoftMaskDictionary** data) const {
2625 if (SkPdfSoftMaskDictionaryFromDictionary(dict, key, data)) return true;
2626 if (abr == NULL || *abr == '\0') return false;
2627 return SkPdfSoftMaskDictionaryFromDictionary(dict, abr, data);
2628 }
2629
2630 bool SkPdfMapper::isSoftMaskImageDictionary(const SkPdfNativeObject* nativeObj) const {
2631 const SkPdfNativeObject* ret = NULL;
2632 if (!nativeObj->isDictionary()) return false;
2633 ret = nativeObj->get("Subtype", "");
2634 if (ret == NULL || !ret->isName()) return false;
2635 if ((ret->nameValue2() != "Image")) return false;
2636
2637 if (!nativeObj->isDictionary()) return false;
2638 ret = nativeObj->get("ColorSpace", "");
2639 if (ret == NULL || !ret->isName()) return false;
2640 if ((ret->nameValue2() != "DeviceGray") && (ret->nameValue2() != "Gray")) retu rn false;
2641
2642 return true;
2643 }
2644
2645 bool SkPdfMapper::SkPdfSoftMaskImageDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfSoftMaskImageDictionary** data) const {
2646 const SkPdfNativeObject* value = dict->get(key);
2647 if (value == NULL) { return false; }
2648 if (data == NULL) { return true; }
2649 if (kNone_SkPdfNativeObjectType == mapSoftMaskImageDictionary(value)) return f alse;
2650 *data = (SkPdfSoftMaskImageDictionary*)value;
2651 return true;
2652 }
2653
2654 bool SkPdfMapper::SkPdfSoftMaskImageDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfSoftMaskImageDictionary** dat a) const {
2655 if (SkPdfSoftMaskImageDictionaryFromDictionary(dict, key, data)) return true;
2656 if (abr == NULL || *abr == '\0') return false;
2657 return SkPdfSoftMaskImageDictionaryFromDictionary(dict, abr, data);
2658 }
2659
2660 bool SkPdfMapper::isTransparencyGroupDictionary(const SkPdfNativeObject* nativeO bj) const {
2661 const SkPdfNativeObject* ret = NULL;
2662 if (!nativeObj->isDictionary()) return false;
2663 ret = nativeObj->get("S", "");
2664 if (ret == NULL || !ret->isName()) return false;
2665 if ((ret->nameValue2() != "Transparency")) return false;
2666
2667 return true;
2668 }
2669
2670 bool SkPdfMapper::SkPdfTransparencyGroupDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfTransparencyGroupDictionary** data) const {
2671 const SkPdfNativeObject* value = dict->get(key);
2672 if (value == NULL) { return false; }
2673 if (data == NULL) { return true; }
2674 if (kNone_SkPdfNativeObjectType == mapTransparencyGroupDictionary(value)) retu rn false;
2675 *data = (SkPdfTransparencyGroupDictionary*)value;
2676 return true;
2677 }
2678
2679 bool SkPdfMapper::SkPdfTransparencyGroupDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfTransparencyGroupDictiona ry** data) const {
2680 if (SkPdfTransparencyGroupDictionaryFromDictionary(dict, key, data)) return tr ue;
2681 if (abr == NULL || *abr == '\0') return false;
2682 return SkPdfTransparencyGroupDictionaryFromDictionary(dict, abr, data);
2683 }
2684
2685 bool SkPdfMapper::isViewerPreferencesDictionary(const SkPdfNativeObject* nativeO bj) const {
2686 return true;
2687 }
2688
2689 bool SkPdfMapper::SkPdfViewerPreferencesDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfViewerPreferencesDictionary** data) const {
2690 const SkPdfNativeObject* value = dict->get(key);
2691 if (value == NULL) { return false; }
2692 if (data == NULL) { return true; }
2693 if (kNone_SkPdfNativeObjectType == mapViewerPreferencesDictionary(value)) retu rn false;
2694 *data = (SkPdfViewerPreferencesDictionary*)value;
2695 return true;
2696 }
2697
2698 bool SkPdfMapper::SkPdfViewerPreferencesDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfViewerPreferencesDictiona ry** data) const {
2699 if (SkPdfViewerPreferencesDictionaryFromDictionary(dict, key, data)) return tr ue;
2700 if (abr == NULL || *abr == '\0') return false;
2701 return SkPdfViewerPreferencesDictionaryFromDictionary(dict, abr, data);
2702 }
2703
2704 bool SkPdfMapper::isOutlineDictionary(const SkPdfNativeObject* nativeObj) const {
2705 return true;
2706 }
2707
2708 bool SkPdfMapper::SkPdfOutlineDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfOutlineDictionary** data) const {
2709 const SkPdfNativeObject* value = dict->get(key);
2710 if (value == NULL) { return false; }
2711 if (data == NULL) { return true; }
2712 if (kNone_SkPdfNativeObjectType == mapOutlineDictionary(value)) return false;
2713 *data = (SkPdfOutlineDictionary*)value;
2714 return true;
2715 }
2716
2717 bool SkPdfMapper::SkPdfOutlineDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfOutlineDictionary** data) const {
2718 if (SkPdfOutlineDictionaryFromDictionary(dict, key, data)) return true;
2719 if (abr == NULL || *abr == '\0') return false;
2720 return SkPdfOutlineDictionaryFromDictionary(dict, abr, data);
2721 }
2722
2723 bool SkPdfMapper::isOutlineItemDictionary(const SkPdfNativeObject* nativeObj) co nst {
2724 return true;
2725 }
2726
2727 bool SkPdfMapper::SkPdfOutlineItemDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfOutlineItemDictionary** data) const {
2728 const SkPdfNativeObject* value = dict->get(key);
2729 if (value == NULL) { return false; }
2730 if (data == NULL) { return true; }
2731 if (kNone_SkPdfNativeObjectType == mapOutlineItemDictionary(value)) return fal se;
2732 *data = (SkPdfOutlineItemDictionary*)value;
2733 return true;
2734 }
2735
2736 bool SkPdfMapper::SkPdfOutlineItemDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfOutlineItemDictionary** data) c onst {
2737 if (SkPdfOutlineItemDictionaryFromDictionary(dict, key, data)) return true;
2738 if (abr == NULL || *abr == '\0') return false;
2739 return SkPdfOutlineItemDictionaryFromDictionary(dict, abr, data);
2740 }
2741
2742 bool SkPdfMapper::isPageLabelDictionary(const SkPdfNativeObject* nativeObj) cons t {
2743 return true;
2744 }
2745
2746 bool SkPdfMapper::SkPdfPageLabelDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfPageLabelDictionary** data) const {
2747 const SkPdfNativeObject* value = dict->get(key);
2748 if (value == NULL) { return false; }
2749 if (data == NULL) { return true; }
2750 if (kNone_SkPdfNativeObjectType == mapPageLabelDictionary(value)) return false ;
2751 *data = (SkPdfPageLabelDictionary*)value;
2752 return true;
2753 }
2754
2755 bool SkPdfMapper::SkPdfPageLabelDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfPageLabelDictionary** data) const {
2756 if (SkPdfPageLabelDictionaryFromDictionary(dict, key, data)) return true;
2757 if (abr == NULL || *abr == '\0') return false;
2758 return SkPdfPageLabelDictionaryFromDictionary(dict, abr, data);
2759 }
2760
2761 bool SkPdfMapper::isThreadDictionary(const SkPdfNativeObject* nativeObj) const {
2762 return true;
2763 }
2764
2765 bool SkPdfMapper::SkPdfThreadDictionaryFromDictionary(const SkPdfNativeObject* d ict, const char* key, SkPdfThreadDictionary** data) const {
2766 const SkPdfNativeObject* value = dict->get(key);
2767 if (value == NULL) { return false; }
2768 if (data == NULL) { return true; }
2769 if (kNone_SkPdfNativeObjectType == mapThreadDictionary(value)) return false;
2770 *data = (SkPdfThreadDictionary*)value;
2771 return true;
2772 }
2773
2774 bool SkPdfMapper::SkPdfThreadDictionaryFromDictionary(const SkPdfNativeObject* d ict, const char* key, const char* abr, SkPdfThreadDictionary** data) const {
2775 if (SkPdfThreadDictionaryFromDictionary(dict, key, data)) return true;
2776 if (abr == NULL || *abr == '\0') return false;
2777 return SkPdfThreadDictionaryFromDictionary(dict, abr, data);
2778 }
2779
2780 bool SkPdfMapper::isBeadDictionary(const SkPdfNativeObject* nativeObj) const {
2781 return true;
2782 }
2783
2784 bool SkPdfMapper::SkPdfBeadDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, SkPdfBeadDictionary** data) const {
2785 const SkPdfNativeObject* value = dict->get(key);
2786 if (value == NULL) { return false; }
2787 if (data == NULL) { return true; }
2788 if (kNone_SkPdfNativeObjectType == mapBeadDictionary(value)) return false;
2789 *data = (SkPdfBeadDictionary*)value;
2790 return true;
2791 }
2792
2793 bool SkPdfMapper::SkPdfBeadDictionaryFromDictionary(const SkPdfNativeObject* dic t, const char* key, const char* abr, SkPdfBeadDictionary** data) const {
2794 if (SkPdfBeadDictionaryFromDictionary(dict, key, data)) return true;
2795 if (abr == NULL || *abr == '\0') return false;
2796 return SkPdfBeadDictionaryFromDictionary(dict, abr, data);
2797 }
2798
2799 bool SkPdfMapper::isTransitionDictionary(const SkPdfNativeObject* nativeObj) con st {
2800 return true;
2801 }
2802
2803 bool SkPdfMapper::SkPdfTransitionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfTransitionDictionary** data) const {
2804 const SkPdfNativeObject* value = dict->get(key);
2805 if (value == NULL) { return false; }
2806 if (data == NULL) { return true; }
2807 if (kNone_SkPdfNativeObjectType == mapTransitionDictionary(value)) return fals e;
2808 *data = (SkPdfTransitionDictionary*)value;
2809 return true;
2810 }
2811
2812 bool SkPdfMapper::SkPdfTransitionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfTransitionDictionary** data) con st {
2813 if (SkPdfTransitionDictionaryFromDictionary(dict, key, data)) return true;
2814 if (abr == NULL || *abr == '\0') return false;
2815 return SkPdfTransitionDictionaryFromDictionary(dict, abr, data);
2816 }
2817
2818 bool SkPdfMapper::isAnnotationDictionary(const SkPdfNativeObject* nativeObj) con st {
2819 return true;
2820 }
2821
2822 bool SkPdfMapper::SkPdfAnnotationDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfAnnotationDictionary** data) const {
2823 const SkPdfNativeObject* value = dict->get(key);
2824 if (value == NULL) { return false; }
2825 if (data == NULL) { return true; }
2826 if (kNone_SkPdfNativeObjectType == mapAnnotationDictionary(value)) return fals e;
2827 *data = (SkPdfAnnotationDictionary*)value;
2828 return true;
2829 }
2830
2831 bool SkPdfMapper::SkPdfAnnotationDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfAnnotationDictionary** data) con st {
2832 if (SkPdfAnnotationDictionaryFromDictionary(dict, key, data)) return true;
2833 if (abr == NULL || *abr == '\0') return false;
2834 return SkPdfAnnotationDictionaryFromDictionary(dict, abr, data);
2835 }
2836
2837 bool SkPdfMapper::isBorderStyleDictionary(const SkPdfNativeObject* nativeObj) co nst {
2838 return true;
2839 }
2840
2841 bool SkPdfMapper::SkPdfBorderStyleDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfBorderStyleDictionary** data) const {
2842 const SkPdfNativeObject* value = dict->get(key);
2843 if (value == NULL) { return false; }
2844 if (data == NULL) { return true; }
2845 if (kNone_SkPdfNativeObjectType == mapBorderStyleDictionary(value)) return fal se;
2846 *data = (SkPdfBorderStyleDictionary*)value;
2847 return true;
2848 }
2849
2850 bool SkPdfMapper::SkPdfBorderStyleDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfBorderStyleDictionary** data) c onst {
2851 if (SkPdfBorderStyleDictionaryFromDictionary(dict, key, data)) return true;
2852 if (abr == NULL || *abr == '\0') return false;
2853 return SkPdfBorderStyleDictionaryFromDictionary(dict, abr, data);
2854 }
2855
2856 bool SkPdfMapper::isAppearanceDictionary(const SkPdfNativeObject* nativeObj) con st {
2857 return true;
2858 }
2859
2860 bool SkPdfMapper::SkPdfAppearanceDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfAppearanceDictionary** data) const {
2861 const SkPdfNativeObject* value = dict->get(key);
2862 if (value == NULL) { return false; }
2863 if (data == NULL) { return true; }
2864 if (kNone_SkPdfNativeObjectType == mapAppearanceDictionary(value)) return fals e;
2865 *data = (SkPdfAppearanceDictionary*)value;
2866 return true;
2867 }
2868
2869 bool SkPdfMapper::SkPdfAppearanceDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfAppearanceDictionary** data) con st {
2870 if (SkPdfAppearanceDictionaryFromDictionary(dict, key, data)) return true;
2871 if (abr == NULL || *abr == '\0') return false;
2872 return SkPdfAppearanceDictionaryFromDictionary(dict, abr, data);
2873 }
2874
2875 bool SkPdfMapper::isTextAnnotationDictionary(const SkPdfNativeObject* nativeObj) const {
2876 return true;
2877 }
2878
2879 bool SkPdfMapper::SkPdfTextAnnotationDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfTextAnnotationDictionary** data) const {
2880 const SkPdfNativeObject* value = dict->get(key);
2881 if (value == NULL) { return false; }
2882 if (data == NULL) { return true; }
2883 if (kNone_SkPdfNativeObjectType == mapTextAnnotationDictionary(value)) return false;
2884 *data = (SkPdfTextAnnotationDictionary*)value;
2885 return true;
2886 }
2887
2888 bool SkPdfMapper::SkPdfTextAnnotationDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfTextAnnotationDictionary** d ata) const {
2889 if (SkPdfTextAnnotationDictionaryFromDictionary(dict, key, data)) return true;
2890 if (abr == NULL || *abr == '\0') return false;
2891 return SkPdfTextAnnotationDictionaryFromDictionary(dict, abr, data);
2892 }
2893
2894 bool SkPdfMapper::isALinkAnnotationDictionary(const SkPdfNativeObject* nativeObj ) const {
2895 return true;
2896 }
2897
2898 bool SkPdfMapper::SkPdfALinkAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfALinkAnnotationDictionary** data) const {
2899 const SkPdfNativeObject* value = dict->get(key);
2900 if (value == NULL) { return false; }
2901 if (data == NULL) { return true; }
2902 if (kNone_SkPdfNativeObjectType == mapALinkAnnotationDictionary(value)) return false;
2903 *data = (SkPdfALinkAnnotationDictionary*)value;
2904 return true;
2905 }
2906
2907 bool SkPdfMapper::SkPdfALinkAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfALinkAnnotationDictionary** data) const {
2908 if (SkPdfALinkAnnotationDictionaryFromDictionary(dict, key, data)) return true ;
2909 if (abr == NULL || *abr == '\0') return false;
2910 return SkPdfALinkAnnotationDictionaryFromDictionary(dict, abr, data);
2911 }
2912
2913 bool SkPdfMapper::isFreeTextAnnotationDictionary(const SkPdfNativeObject* native Obj) const {
2914 return true;
2915 }
2916
2917 bool SkPdfMapper::SkPdfFreeTextAnnotationDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, SkPdfFreeTextAnnotationDictionary** data) cons t {
2918 const SkPdfNativeObject* value = dict->get(key);
2919 if (value == NULL) { return false; }
2920 if (data == NULL) { return true; }
2921 if (kNone_SkPdfNativeObjectType == mapFreeTextAnnotationDictionary(value)) ret urn false;
2922 *data = (SkPdfFreeTextAnnotationDictionary*)value;
2923 return true;
2924 }
2925
2926 bool SkPdfMapper::SkPdfFreeTextAnnotationDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, const char* abr, SkPdfFreeTextAnnotationDictio nary** data) const {
2927 if (SkPdfFreeTextAnnotationDictionaryFromDictionary(dict, key, data)) return t rue;
2928 if (abr == NULL || *abr == '\0') return false;
2929 return SkPdfFreeTextAnnotationDictionaryFromDictionary(dict, abr, data);
2930 }
2931
2932 bool SkPdfMapper::isLineAnnotationDictionary(const SkPdfNativeObject* nativeObj) const {
2933 return true;
2934 }
2935
2936 bool SkPdfMapper::SkPdfLineAnnotationDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfLineAnnotationDictionary** data) const {
2937 const SkPdfNativeObject* value = dict->get(key);
2938 if (value == NULL) { return false; }
2939 if (data == NULL) { return true; }
2940 if (kNone_SkPdfNativeObjectType == mapLineAnnotationDictionary(value)) return false;
2941 *data = (SkPdfLineAnnotationDictionary*)value;
2942 return true;
2943 }
2944
2945 bool SkPdfMapper::SkPdfLineAnnotationDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfLineAnnotationDictionary** d ata) const {
2946 if (SkPdfLineAnnotationDictionaryFromDictionary(dict, key, data)) return true;
2947 if (abr == NULL || *abr == '\0') return false;
2948 return SkPdfLineAnnotationDictionaryFromDictionary(dict, abr, data);
2949 }
2950
2951 bool SkPdfMapper::isSquareOrCircleAnnotation(const SkPdfNativeObject* nativeObj) const {
2952 return true;
2953 }
2954
2955 bool SkPdfMapper::SkPdfSquareOrCircleAnnotationFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfSquareOrCircleAnnotation** data) const {
2956 const SkPdfNativeObject* value = dict->get(key);
2957 if (value == NULL) { return false; }
2958 if (data == NULL) { return true; }
2959 if (kNone_SkPdfNativeObjectType == mapSquareOrCircleAnnotation(value)) return false;
2960 *data = (SkPdfSquareOrCircleAnnotation*)value;
2961 return true;
2962 }
2963
2964 bool SkPdfMapper::SkPdfSquareOrCircleAnnotationFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfSquareOrCircleAnnotation** d ata) const {
2965 if (SkPdfSquareOrCircleAnnotationFromDictionary(dict, key, data)) return true;
2966 if (abr == NULL || *abr == '\0') return false;
2967 return SkPdfSquareOrCircleAnnotationFromDictionary(dict, abr, data);
2968 }
2969
2970 bool SkPdfMapper::isMarkupAnnotationsDictionary(const SkPdfNativeObject* nativeO bj) const {
2971 return true;
2972 }
2973
2974 bool SkPdfMapper::SkPdfMarkupAnnotationsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfMarkupAnnotationsDictionary** data) const {
2975 const SkPdfNativeObject* value = dict->get(key);
2976 if (value == NULL) { return false; }
2977 if (data == NULL) { return true; }
2978 if (kNone_SkPdfNativeObjectType == mapMarkupAnnotationsDictionary(value)) retu rn false;
2979 *data = (SkPdfMarkupAnnotationsDictionary*)value;
2980 return true;
2981 }
2982
2983 bool SkPdfMapper::SkPdfMarkupAnnotationsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfMarkupAnnotationsDictiona ry** data) const {
2984 if (SkPdfMarkupAnnotationsDictionaryFromDictionary(dict, key, data)) return tr ue;
2985 if (abr == NULL || *abr == '\0') return false;
2986 return SkPdfMarkupAnnotationsDictionaryFromDictionary(dict, abr, data);
2987 }
2988
2989 bool SkPdfMapper::isRubberStampAnnotationDictionary(const SkPdfNativeObject* nat iveObj) const {
2990 return true;
2991 }
2992
2993 bool SkPdfMapper::SkPdfRubberStampAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfRubberStampAnnotationDictionary** data ) const {
2994 const SkPdfNativeObject* value = dict->get(key);
2995 if (value == NULL) { return false; }
2996 if (data == NULL) { return true; }
2997 if (kNone_SkPdfNativeObjectType == mapRubberStampAnnotationDictionary(value)) return false;
2998 *data = (SkPdfRubberStampAnnotationDictionary*)value;
2999 return true;
3000 }
3001
3002 bool SkPdfMapper::SkPdfRubberStampAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfRubberStampAnnotation Dictionary** data) const {
3003 if (SkPdfRubberStampAnnotationDictionaryFromDictionary(dict, key, data)) retur n true;
3004 if (abr == NULL || *abr == '\0') return false;
3005 return SkPdfRubberStampAnnotationDictionaryFromDictionary(dict, abr, data);
3006 }
3007
3008 bool SkPdfMapper::isInkAnnotationDictionary(const SkPdfNativeObject* nativeObj) const {
3009 return true;
3010 }
3011
3012 bool SkPdfMapper::SkPdfInkAnnotationDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfInkAnnotationDictionary** data) const {
3013 const SkPdfNativeObject* value = dict->get(key);
3014 if (value == NULL) { return false; }
3015 if (data == NULL) { return true; }
3016 if (kNone_SkPdfNativeObjectType == mapInkAnnotationDictionary(value)) return f alse;
3017 *data = (SkPdfInkAnnotationDictionary*)value;
3018 return true;
3019 }
3020
3021 bool SkPdfMapper::SkPdfInkAnnotationDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfInkAnnotationDictionary** dat a) const {
3022 if (SkPdfInkAnnotationDictionaryFromDictionary(dict, key, data)) return true;
3023 if (abr == NULL || *abr == '\0') return false;
3024 return SkPdfInkAnnotationDictionaryFromDictionary(dict, abr, data);
3025 }
3026
3027 bool SkPdfMapper::isPopUpAnnotationDictionary(const SkPdfNativeObject* nativeObj ) const {
3028 return true;
3029 }
3030
3031 bool SkPdfMapper::SkPdfPopUpAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfPopUpAnnotationDictionary** data) const {
3032 const SkPdfNativeObject* value = dict->get(key);
3033 if (value == NULL) { return false; }
3034 if (data == NULL) { return true; }
3035 if (kNone_SkPdfNativeObjectType == mapPopUpAnnotationDictionary(value)) return false;
3036 *data = (SkPdfPopUpAnnotationDictionary*)value;
3037 return true;
3038 }
3039
3040 bool SkPdfMapper::SkPdfPopUpAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfPopUpAnnotationDictionary** data) const {
3041 if (SkPdfPopUpAnnotationDictionaryFromDictionary(dict, key, data)) return true ;
3042 if (abr == NULL || *abr == '\0') return false;
3043 return SkPdfPopUpAnnotationDictionaryFromDictionary(dict, abr, data);
3044 }
3045
3046 bool SkPdfMapper::isFileAttachmentAnnotationDictionary(const SkPdfNativeObject* nativeObj) const {
3047 return true;
3048 }
3049
3050 bool SkPdfMapper::SkPdfFileAttachmentAnnotationDictionaryFromDictionary(const Sk PdfNativeObject* dict, const char* key, SkPdfFileAttachmentAnnotationDictionary* * data) const {
3051 const SkPdfNativeObject* value = dict->get(key);
3052 if (value == NULL) { return false; }
3053 if (data == NULL) { return true; }
3054 if (kNone_SkPdfNativeObjectType == mapFileAttachmentAnnotationDictionary(value )) return false;
3055 *data = (SkPdfFileAttachmentAnnotationDictionary*)value;
3056 return true;
3057 }
3058
3059 bool SkPdfMapper::SkPdfFileAttachmentAnnotationDictionaryFromDictionary(const Sk PdfNativeObject* dict, const char* key, const char* abr, SkPdfFileAttachmentAnno tationDictionary** data) const {
3060 if (SkPdfFileAttachmentAnnotationDictionaryFromDictionary(dict, key, data)) re turn true;
3061 if (abr == NULL || *abr == '\0') return false;
3062 return SkPdfFileAttachmentAnnotationDictionaryFromDictionary(dict, abr, data);
3063 }
3064
3065 bool SkPdfMapper::isSoundAnnotationDictionary(const SkPdfNativeObject* nativeObj ) const {
3066 return true;
3067 }
3068
3069 bool SkPdfMapper::SkPdfSoundAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfSoundAnnotationDictionary** data) const {
3070 const SkPdfNativeObject* value = dict->get(key);
3071 if (value == NULL) { return false; }
3072 if (data == NULL) { return true; }
3073 if (kNone_SkPdfNativeObjectType == mapSoundAnnotationDictionary(value)) return false;
3074 *data = (SkPdfSoundAnnotationDictionary*)value;
3075 return true;
3076 }
3077
3078 bool SkPdfMapper::SkPdfSoundAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfSoundAnnotationDictionary** data) const {
3079 if (SkPdfSoundAnnotationDictionaryFromDictionary(dict, key, data)) return true ;
3080 if (abr == NULL || *abr == '\0') return false;
3081 return SkPdfSoundAnnotationDictionaryFromDictionary(dict, abr, data);
3082 }
3083
3084 bool SkPdfMapper::isMovieAnnotationDictionary(const SkPdfNativeObject* nativeObj ) const {
3085 return true;
3086 }
3087
3088 bool SkPdfMapper::SkPdfMovieAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfMovieAnnotationDictionary** data) const {
3089 const SkPdfNativeObject* value = dict->get(key);
3090 if (value == NULL) { return false; }
3091 if (data == NULL) { return true; }
3092 if (kNone_SkPdfNativeObjectType == mapMovieAnnotationDictionary(value)) return false;
3093 *data = (SkPdfMovieAnnotationDictionary*)value;
3094 return true;
3095 }
3096
3097 bool SkPdfMapper::SkPdfMovieAnnotationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfMovieAnnotationDictionary** data) const {
3098 if (SkPdfMovieAnnotationDictionaryFromDictionary(dict, key, data)) return true ;
3099 if (abr == NULL || *abr == '\0') return false;
3100 return SkPdfMovieAnnotationDictionaryFromDictionary(dict, abr, data);
3101 }
3102
3103 bool SkPdfMapper::isWidgetAnnotationDictionary(const SkPdfNativeObject* nativeOb j) const {
3104 return true;
3105 }
3106
3107 bool SkPdfMapper::SkPdfWidgetAnnotationDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfWidgetAnnotationDictionary** data) const {
3108 const SkPdfNativeObject* value = dict->get(key);
3109 if (value == NULL) { return false; }
3110 if (data == NULL) { return true; }
3111 if (kNone_SkPdfNativeObjectType == mapWidgetAnnotationDictionary(value)) retur n false;
3112 *data = (SkPdfWidgetAnnotationDictionary*)value;
3113 return true;
3114 }
3115
3116 bool SkPdfMapper::SkPdfWidgetAnnotationDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfWidgetAnnotationDictionary ** data) const {
3117 if (SkPdfWidgetAnnotationDictionaryFromDictionary(dict, key, data)) return tru e;
3118 if (abr == NULL || *abr == '\0') return false;
3119 return SkPdfWidgetAnnotationDictionaryFromDictionary(dict, abr, data);
3120 }
3121
3122 bool SkPdfMapper::isActionDictionary(const SkPdfNativeObject* nativeObj) const {
3123 return true;
3124 }
3125
3126 bool SkPdfMapper::SkPdfActionDictionaryFromDictionary(const SkPdfNativeObject* d ict, const char* key, SkPdfActionDictionary** data) const {
3127 const SkPdfNativeObject* value = dict->get(key);
3128 if (value == NULL) { return false; }
3129 if (data == NULL) { return true; }
3130 if (kNone_SkPdfNativeObjectType == mapActionDictionary(value)) return false;
3131 *data = (SkPdfActionDictionary*)value;
3132 return true;
3133 }
3134
3135 bool SkPdfMapper::SkPdfActionDictionaryFromDictionary(const SkPdfNativeObject* d ict, const char* key, const char* abr, SkPdfActionDictionary** data) const {
3136 if (SkPdfActionDictionaryFromDictionary(dict, key, data)) return true;
3137 if (abr == NULL || *abr == '\0') return false;
3138 return SkPdfActionDictionaryFromDictionary(dict, abr, data);
3139 }
3140
3141 bool SkPdfMapper::isAnnotationActionsDictionary(const SkPdfNativeObject* nativeO bj) const {
3142 return true;
3143 }
3144
3145 bool SkPdfMapper::SkPdfAnnotationActionsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfAnnotationActionsDictionary** data) const {
3146 const SkPdfNativeObject* value = dict->get(key);
3147 if (value == NULL) { return false; }
3148 if (data == NULL) { return true; }
3149 if (kNone_SkPdfNativeObjectType == mapAnnotationActionsDictionary(value)) retu rn false;
3150 *data = (SkPdfAnnotationActionsDictionary*)value;
3151 return true;
3152 }
3153
3154 bool SkPdfMapper::SkPdfAnnotationActionsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfAnnotationActionsDictiona ry** data) const {
3155 if (SkPdfAnnotationActionsDictionaryFromDictionary(dict, key, data)) return tr ue;
3156 if (abr == NULL || *abr == '\0') return false;
3157 return SkPdfAnnotationActionsDictionaryFromDictionary(dict, abr, data);
3158 }
3159
3160 bool SkPdfMapper::isPageObjectActionsDictionary(const SkPdfNativeObject* nativeO bj) const {
3161 return true;
3162 }
3163
3164 bool SkPdfMapper::SkPdfPageObjectActionsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfPageObjectActionsDictionary** data) const {
3165 const SkPdfNativeObject* value = dict->get(key);
3166 if (value == NULL) { return false; }
3167 if (data == NULL) { return true; }
3168 if (kNone_SkPdfNativeObjectType == mapPageObjectActionsDictionary(value)) retu rn false;
3169 *data = (SkPdfPageObjectActionsDictionary*)value;
3170 return true;
3171 }
3172
3173 bool SkPdfMapper::SkPdfPageObjectActionsDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfPageObjectActionsDictiona ry** data) const {
3174 if (SkPdfPageObjectActionsDictionaryFromDictionary(dict, key, data)) return tr ue;
3175 if (abr == NULL || *abr == '\0') return false;
3176 return SkPdfPageObjectActionsDictionaryFromDictionary(dict, abr, data);
3177 }
3178
3179 bool SkPdfMapper::isFormFieldActionsDictionary(const SkPdfNativeObject* nativeOb j) const {
3180 return true;
3181 }
3182
3183 bool SkPdfMapper::SkPdfFormFieldActionsDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfFormFieldActionsDictionary** data) const {
3184 const SkPdfNativeObject* value = dict->get(key);
3185 if (value == NULL) { return false; }
3186 if (data == NULL) { return true; }
3187 if (kNone_SkPdfNativeObjectType == mapFormFieldActionsDictionary(value)) retur n false;
3188 *data = (SkPdfFormFieldActionsDictionary*)value;
3189 return true;
3190 }
3191
3192 bool SkPdfMapper::SkPdfFormFieldActionsDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfFormFieldActionsDictionary ** data) const {
3193 if (SkPdfFormFieldActionsDictionaryFromDictionary(dict, key, data)) return tru e;
3194 if (abr == NULL || *abr == '\0') return false;
3195 return SkPdfFormFieldActionsDictionaryFromDictionary(dict, abr, data);
3196 }
3197
3198 bool SkPdfMapper::isDocumentCatalogActionsDictionary(const SkPdfNativeObject* na tiveObj) const {
3199 return true;
3200 }
3201
3202 bool SkPdfMapper::SkPdfDocumentCatalogActionsDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, SkPdfDocumentCatalogActionsDictionary** da ta) const {
3203 const SkPdfNativeObject* value = dict->get(key);
3204 if (value == NULL) { return false; }
3205 if (data == NULL) { return true; }
3206 if (kNone_SkPdfNativeObjectType == mapDocumentCatalogActionsDictionary(value)) return false;
3207 *data = (SkPdfDocumentCatalogActionsDictionary*)value;
3208 return true;
3209 }
3210
3211 bool SkPdfMapper::SkPdfDocumentCatalogActionsDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, const char* abr, SkPdfDocumentCatalogActio nsDictionary** data) const {
3212 if (SkPdfDocumentCatalogActionsDictionaryFromDictionary(dict, key, data)) retu rn true;
3213 if (abr == NULL || *abr == '\0') return false;
3214 return SkPdfDocumentCatalogActionsDictionaryFromDictionary(dict, abr, data);
3215 }
3216
3217 bool SkPdfMapper::isGoToActionDictionary(const SkPdfNativeObject* nativeObj) con st {
3218 return true;
3219 }
3220
3221 bool SkPdfMapper::SkPdfGoToActionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfGoToActionDictionary** data) const {
3222 const SkPdfNativeObject* value = dict->get(key);
3223 if (value == NULL) { return false; }
3224 if (data == NULL) { return true; }
3225 if (kNone_SkPdfNativeObjectType == mapGoToActionDictionary(value)) return fals e;
3226 *data = (SkPdfGoToActionDictionary*)value;
3227 return true;
3228 }
3229
3230 bool SkPdfMapper::SkPdfGoToActionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfGoToActionDictionary** data) con st {
3231 if (SkPdfGoToActionDictionaryFromDictionary(dict, key, data)) return true;
3232 if (abr == NULL || *abr == '\0') return false;
3233 return SkPdfGoToActionDictionaryFromDictionary(dict, abr, data);
3234 }
3235
3236 bool SkPdfMapper::isRemoteGoToActionDictionary(const SkPdfNativeObject* nativeOb j) const {
3237 return true;
3238 }
3239
3240 bool SkPdfMapper::SkPdfRemoteGoToActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfRemoteGoToActionDictionary** data) const {
3241 const SkPdfNativeObject* value = dict->get(key);
3242 if (value == NULL) { return false; }
3243 if (data == NULL) { return true; }
3244 if (kNone_SkPdfNativeObjectType == mapRemoteGoToActionDictionary(value)) retur n false;
3245 *data = (SkPdfRemoteGoToActionDictionary*)value;
3246 return true;
3247 }
3248
3249 bool SkPdfMapper::SkPdfRemoteGoToActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfRemoteGoToActionDictionary ** data) const {
3250 if (SkPdfRemoteGoToActionDictionaryFromDictionary(dict, key, data)) return tru e;
3251 if (abr == NULL || *abr == '\0') return false;
3252 return SkPdfRemoteGoToActionDictionaryFromDictionary(dict, abr, data);
3253 }
3254
3255 bool SkPdfMapper::isLaunchActionDictionary(const SkPdfNativeObject* nativeObj) c onst {
3256 return true;
3257 }
3258
3259 bool SkPdfMapper::SkPdfLaunchActionDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfLaunchActionDictionary** data) const {
3260 const SkPdfNativeObject* value = dict->get(key);
3261 if (value == NULL) { return false; }
3262 if (data == NULL) { return true; }
3263 if (kNone_SkPdfNativeObjectType == mapLaunchActionDictionary(value)) return fa lse;
3264 *data = (SkPdfLaunchActionDictionary*)value;
3265 return true;
3266 }
3267
3268 bool SkPdfMapper::SkPdfLaunchActionDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfLaunchActionDictionary** data) const {
3269 if (SkPdfLaunchActionDictionaryFromDictionary(dict, key, data)) return true;
3270 if (abr == NULL || *abr == '\0') return false;
3271 return SkPdfLaunchActionDictionaryFromDictionary(dict, abr, data);
3272 }
3273
3274 bool SkPdfMapper::isWindowsLaunchActionDictionary(const SkPdfNativeObject* nativ eObj) const {
3275 return true;
3276 }
3277
3278 bool SkPdfMapper::SkPdfWindowsLaunchActionDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, SkPdfWindowsLaunchActionDictionary** data) co nst {
3279 const SkPdfNativeObject* value = dict->get(key);
3280 if (value == NULL) { return false; }
3281 if (data == NULL) { return true; }
3282 if (kNone_SkPdfNativeObjectType == mapWindowsLaunchActionDictionary(value)) re turn false;
3283 *data = (SkPdfWindowsLaunchActionDictionary*)value;
3284 return true;
3285 }
3286
3287 bool SkPdfMapper::SkPdfWindowsLaunchActionDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, const char* abr, SkPdfWindowsLaunchActionDict ionary** data) const {
3288 if (SkPdfWindowsLaunchActionDictionaryFromDictionary(dict, key, data)) return true;
3289 if (abr == NULL || *abr == '\0') return false;
3290 return SkPdfWindowsLaunchActionDictionaryFromDictionary(dict, abr, data);
3291 }
3292
3293 bool SkPdfMapper::isThreadActionDictionary(const SkPdfNativeObject* nativeObj) c onst {
3294 return true;
3295 }
3296
3297 bool SkPdfMapper::SkPdfThreadActionDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfThreadActionDictionary** data) const {
3298 const SkPdfNativeObject* value = dict->get(key);
3299 if (value == NULL) { return false; }
3300 if (data == NULL) { return true; }
3301 if (kNone_SkPdfNativeObjectType == mapThreadActionDictionary(value)) return fa lse;
3302 *data = (SkPdfThreadActionDictionary*)value;
3303 return true;
3304 }
3305
3306 bool SkPdfMapper::SkPdfThreadActionDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfThreadActionDictionary** data) const {
3307 if (SkPdfThreadActionDictionaryFromDictionary(dict, key, data)) return true;
3308 if (abr == NULL || *abr == '\0') return false;
3309 return SkPdfThreadActionDictionaryFromDictionary(dict, abr, data);
3310 }
3311
3312 bool SkPdfMapper::isURIActionDictionary(const SkPdfNativeObject* nativeObj) cons t {
3313 return true;
3314 }
3315
3316 bool SkPdfMapper::SkPdfURIActionDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfURIActionDictionary** data) const {
3317 const SkPdfNativeObject* value = dict->get(key);
3318 if (value == NULL) { return false; }
3319 if (data == NULL) { return true; }
3320 if (kNone_SkPdfNativeObjectType == mapURIActionDictionary(value)) return false ;
3321 *data = (SkPdfURIActionDictionary*)value;
3322 return true;
3323 }
3324
3325 bool SkPdfMapper::SkPdfURIActionDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfURIActionDictionary** data) const {
3326 if (SkPdfURIActionDictionaryFromDictionary(dict, key, data)) return true;
3327 if (abr == NULL || *abr == '\0') return false;
3328 return SkPdfURIActionDictionaryFromDictionary(dict, abr, data);
3329 }
3330
3331 bool SkPdfMapper::isURIDictionary(const SkPdfNativeObject* nativeObj) const {
3332 return true;
3333 }
3334
3335 bool SkPdfMapper::SkPdfURIDictionaryFromDictionary(const SkPdfNativeObject* dict , const char* key, SkPdfURIDictionary** data) const {
3336 const SkPdfNativeObject* value = dict->get(key);
3337 if (value == NULL) { return false; }
3338 if (data == NULL) { return true; }
3339 if (kNone_SkPdfNativeObjectType == mapURIDictionary(value)) return false;
3340 *data = (SkPdfURIDictionary*)value;
3341 return true;
3342 }
3343
3344 bool SkPdfMapper::SkPdfURIDictionaryFromDictionary(const SkPdfNativeObject* dict , const char* key, const char* abr, SkPdfURIDictionary** data) const {
3345 if (SkPdfURIDictionaryFromDictionary(dict, key, data)) return true;
3346 if (abr == NULL || *abr == '\0') return false;
3347 return SkPdfURIDictionaryFromDictionary(dict, abr, data);
3348 }
3349
3350 bool SkPdfMapper::isSoundActionDictionary(const SkPdfNativeObject* nativeObj) co nst {
3351 return true;
3352 }
3353
3354 bool SkPdfMapper::SkPdfSoundActionDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfSoundActionDictionary** data) const {
3355 const SkPdfNativeObject* value = dict->get(key);
3356 if (value == NULL) { return false; }
3357 if (data == NULL) { return true; }
3358 if (kNone_SkPdfNativeObjectType == mapSoundActionDictionary(value)) return fal se;
3359 *data = (SkPdfSoundActionDictionary*)value;
3360 return true;
3361 }
3362
3363 bool SkPdfMapper::SkPdfSoundActionDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfSoundActionDictionary** data) c onst {
3364 if (SkPdfSoundActionDictionaryFromDictionary(dict, key, data)) return true;
3365 if (abr == NULL || *abr == '\0') return false;
3366 return SkPdfSoundActionDictionaryFromDictionary(dict, abr, data);
3367 }
3368
3369 bool SkPdfMapper::isMovieActionDictionary(const SkPdfNativeObject* nativeObj) co nst {
3370 return true;
3371 }
3372
3373 bool SkPdfMapper::SkPdfMovieActionDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfMovieActionDictionary** data) const {
3374 const SkPdfNativeObject* value = dict->get(key);
3375 if (value == NULL) { return false; }
3376 if (data == NULL) { return true; }
3377 if (kNone_SkPdfNativeObjectType == mapMovieActionDictionary(value)) return fal se;
3378 *data = (SkPdfMovieActionDictionary*)value;
3379 return true;
3380 }
3381
3382 bool SkPdfMapper::SkPdfMovieActionDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfMovieActionDictionary** data) c onst {
3383 if (SkPdfMovieActionDictionaryFromDictionary(dict, key, data)) return true;
3384 if (abr == NULL || *abr == '\0') return false;
3385 return SkPdfMovieActionDictionaryFromDictionary(dict, abr, data);
3386 }
3387
3388 bool SkPdfMapper::isHideActionDictionary(const SkPdfNativeObject* nativeObj) con st {
3389 return true;
3390 }
3391
3392 bool SkPdfMapper::SkPdfHideActionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfHideActionDictionary** data) const {
3393 const SkPdfNativeObject* value = dict->get(key);
3394 if (value == NULL) { return false; }
3395 if (data == NULL) { return true; }
3396 if (kNone_SkPdfNativeObjectType == mapHideActionDictionary(value)) return fals e;
3397 *data = (SkPdfHideActionDictionary*)value;
3398 return true;
3399 }
3400
3401 bool SkPdfMapper::SkPdfHideActionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfHideActionDictionary** data) con st {
3402 if (SkPdfHideActionDictionaryFromDictionary(dict, key, data)) return true;
3403 if (abr == NULL || *abr == '\0') return false;
3404 return SkPdfHideActionDictionaryFromDictionary(dict, abr, data);
3405 }
3406
3407 bool SkPdfMapper::isNamedActionsDictionary(const SkPdfNativeObject* nativeObj) c onst {
3408 return true;
3409 }
3410
3411 bool SkPdfMapper::SkPdfNamedActionsDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, SkPdfNamedActionsDictionary** data) const {
3412 const SkPdfNativeObject* value = dict->get(key);
3413 if (value == NULL) { return false; }
3414 if (data == NULL) { return true; }
3415 if (kNone_SkPdfNativeObjectType == mapNamedActionsDictionary(value)) return fa lse;
3416 *data = (SkPdfNamedActionsDictionary*)value;
3417 return true;
3418 }
3419
3420 bool SkPdfMapper::SkPdfNamedActionsDictionaryFromDictionary(const SkPdfNativeObj ect* dict, const char* key, const char* abr, SkPdfNamedActionsDictionary** data) const {
3421 if (SkPdfNamedActionsDictionaryFromDictionary(dict, key, data)) return true;
3422 if (abr == NULL || *abr == '\0') return false;
3423 return SkPdfNamedActionsDictionaryFromDictionary(dict, abr, data);
3424 }
3425
3426 bool SkPdfMapper::isInteractiveFormDictionary(const SkPdfNativeObject* nativeObj ) const {
3427 return true;
3428 }
3429
3430 bool SkPdfMapper::SkPdfInteractiveFormDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfInteractiveFormDictionary** data) const {
3431 const SkPdfNativeObject* value = dict->get(key);
3432 if (value == NULL) { return false; }
3433 if (data == NULL) { return true; }
3434 if (kNone_SkPdfNativeObjectType == mapInteractiveFormDictionary(value)) return false;
3435 *data = (SkPdfInteractiveFormDictionary*)value;
3436 return true;
3437 }
3438
3439 bool SkPdfMapper::SkPdfInteractiveFormDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfInteractiveFormDictionary** data) const {
3440 if (SkPdfInteractiveFormDictionaryFromDictionary(dict, key, data)) return true ;
3441 if (abr == NULL || *abr == '\0') return false;
3442 return SkPdfInteractiveFormDictionaryFromDictionary(dict, abr, data);
3443 }
3444
3445 bool SkPdfMapper::isFieldDictionary(const SkPdfNativeObject* nativeObj) const {
3446 return true;
3447 }
3448
3449 bool SkPdfMapper::SkPdfFieldDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, SkPdfFieldDictionary** data) const {
3450 const SkPdfNativeObject* value = dict->get(key);
3451 if (value == NULL) { return false; }
3452 if (data == NULL) { return true; }
3453 if (kNone_SkPdfNativeObjectType == mapFieldDictionary(value)) return false;
3454 *data = (SkPdfFieldDictionary*)value;
3455 return true;
3456 }
3457
3458 bool SkPdfMapper::SkPdfFieldDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, const char* abr, SkPdfFieldDictionary** data) const {
3459 if (SkPdfFieldDictionaryFromDictionary(dict, key, data)) return true;
3460 if (abr == NULL || *abr == '\0') return false;
3461 return SkPdfFieldDictionaryFromDictionary(dict, abr, data);
3462 }
3463
3464 bool SkPdfMapper::isVariableTextFieldDictionary(const SkPdfNativeObject* nativeO bj) const {
3465 return true;
3466 }
3467
3468 bool SkPdfMapper::SkPdfVariableTextFieldDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfVariableTextFieldDictionary** data) const {
3469 const SkPdfNativeObject* value = dict->get(key);
3470 if (value == NULL) { return false; }
3471 if (data == NULL) { return true; }
3472 if (kNone_SkPdfNativeObjectType == mapVariableTextFieldDictionary(value)) retu rn false;
3473 *data = (SkPdfVariableTextFieldDictionary*)value;
3474 return true;
3475 }
3476
3477 bool SkPdfMapper::SkPdfVariableTextFieldDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfVariableTextFieldDictiona ry** data) const {
3478 if (SkPdfVariableTextFieldDictionaryFromDictionary(dict, key, data)) return tr ue;
3479 if (abr == NULL || *abr == '\0') return false;
3480 return SkPdfVariableTextFieldDictionaryFromDictionary(dict, abr, data);
3481 }
3482
3483 bool SkPdfMapper::isAppearanceCharacteristicsDictionary(const SkPdfNativeObject* nativeObj) const {
3484 return true;
3485 }
3486
3487 bool SkPdfMapper::SkPdfAppearanceCharacteristicsDictionaryFromDictionary(const S kPdfNativeObject* dict, const char* key, SkPdfAppearanceCharacteristicsDictionar y** data) const {
3488 const SkPdfNativeObject* value = dict->get(key);
3489 if (value == NULL) { return false; }
3490 if (data == NULL) { return true; }
3491 if (kNone_SkPdfNativeObjectType == mapAppearanceCharacteristicsDictionary(valu e)) return false;
3492 *data = (SkPdfAppearanceCharacteristicsDictionary*)value;
3493 return true;
3494 }
3495
3496 bool SkPdfMapper::SkPdfAppearanceCharacteristicsDictionaryFromDictionary(const S kPdfNativeObject* dict, const char* key, const char* abr, SkPdfAppearanceCharact eristicsDictionary** data) const {
3497 if (SkPdfAppearanceCharacteristicsDictionaryFromDictionary(dict, key, data)) r eturn true;
3498 if (abr == NULL || *abr == '\0') return false;
3499 return SkPdfAppearanceCharacteristicsDictionaryFromDictionary(dict, abr, data) ;
3500 }
3501
3502 bool SkPdfMapper::isCheckboxFieldDictionary(const SkPdfNativeObject* nativeObj) const {
3503 return true;
3504 }
3505
3506 bool SkPdfMapper::SkPdfCheckboxFieldDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfCheckboxFieldDictionary** data) const {
3507 const SkPdfNativeObject* value = dict->get(key);
3508 if (value == NULL) { return false; }
3509 if (data == NULL) { return true; }
3510 if (kNone_SkPdfNativeObjectType == mapCheckboxFieldDictionary(value)) return f alse;
3511 *data = (SkPdfCheckboxFieldDictionary*)value;
3512 return true;
3513 }
3514
3515 bool SkPdfMapper::SkPdfCheckboxFieldDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfCheckboxFieldDictionary** dat a) const {
3516 if (SkPdfCheckboxFieldDictionaryFromDictionary(dict, key, data)) return true;
3517 if (abr == NULL || *abr == '\0') return false;
3518 return SkPdfCheckboxFieldDictionaryFromDictionary(dict, abr, data);
3519 }
3520
3521 bool SkPdfMapper::isRadioButtonFieldDictionary(const SkPdfNativeObject* nativeOb j) const {
3522 return true;
3523 }
3524
3525 bool SkPdfMapper::SkPdfRadioButtonFieldDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfRadioButtonFieldDictionary** data) const {
3526 const SkPdfNativeObject* value = dict->get(key);
3527 if (value == NULL) { return false; }
3528 if (data == NULL) { return true; }
3529 if (kNone_SkPdfNativeObjectType == mapRadioButtonFieldDictionary(value)) retur n false;
3530 *data = (SkPdfRadioButtonFieldDictionary*)value;
3531 return true;
3532 }
3533
3534 bool SkPdfMapper::SkPdfRadioButtonFieldDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfRadioButtonFieldDictionary ** data) const {
3535 if (SkPdfRadioButtonFieldDictionaryFromDictionary(dict, key, data)) return tru e;
3536 if (abr == NULL || *abr == '\0') return false;
3537 return SkPdfRadioButtonFieldDictionaryFromDictionary(dict, abr, data);
3538 }
3539
3540 bool SkPdfMapper::isTextFieldDictionary(const SkPdfNativeObject* nativeObj) cons t {
3541 return true;
3542 }
3543
3544 bool SkPdfMapper::SkPdfTextFieldDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfTextFieldDictionary** data) const {
3545 const SkPdfNativeObject* value = dict->get(key);
3546 if (value == NULL) { return false; }
3547 if (data == NULL) { return true; }
3548 if (kNone_SkPdfNativeObjectType == mapTextFieldDictionary(value)) return false ;
3549 *data = (SkPdfTextFieldDictionary*)value;
3550 return true;
3551 }
3552
3553 bool SkPdfMapper::SkPdfTextFieldDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfTextFieldDictionary** data) const {
3554 if (SkPdfTextFieldDictionaryFromDictionary(dict, key, data)) return true;
3555 if (abr == NULL || *abr == '\0') return false;
3556 return SkPdfTextFieldDictionaryFromDictionary(dict, abr, data);
3557 }
3558
3559 bool SkPdfMapper::isChoiceFieldDictionary(const SkPdfNativeObject* nativeObj) co nst {
3560 return true;
3561 }
3562
3563 bool SkPdfMapper::SkPdfChoiceFieldDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfChoiceFieldDictionary** data) const {
3564 const SkPdfNativeObject* value = dict->get(key);
3565 if (value == NULL) { return false; }
3566 if (data == NULL) { return true; }
3567 if (kNone_SkPdfNativeObjectType == mapChoiceFieldDictionary(value)) return fal se;
3568 *data = (SkPdfChoiceFieldDictionary*)value;
3569 return true;
3570 }
3571
3572 bool SkPdfMapper::SkPdfChoiceFieldDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfChoiceFieldDictionary** data) c onst {
3573 if (SkPdfChoiceFieldDictionaryFromDictionary(dict, key, data)) return true;
3574 if (abr == NULL || *abr == '\0') return false;
3575 return SkPdfChoiceFieldDictionaryFromDictionary(dict, abr, data);
3576 }
3577
3578 bool SkPdfMapper::isSignatureDictionary(const SkPdfNativeObject* nativeObj) cons t {
3579 return true;
3580 }
3581
3582 bool SkPdfMapper::SkPdfSignatureDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfSignatureDictionary** data) const {
3583 const SkPdfNativeObject* value = dict->get(key);
3584 if (value == NULL) { return false; }
3585 if (data == NULL) { return true; }
3586 if (kNone_SkPdfNativeObjectType == mapSignatureDictionary(value)) return false ;
3587 *data = (SkPdfSignatureDictionary*)value;
3588 return true;
3589 }
3590
3591 bool SkPdfMapper::SkPdfSignatureDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfSignatureDictionary** data) const {
3592 if (SkPdfSignatureDictionaryFromDictionary(dict, key, data)) return true;
3593 if (abr == NULL || *abr == '\0') return false;
3594 return SkPdfSignatureDictionaryFromDictionary(dict, abr, data);
3595 }
3596
3597 bool SkPdfMapper::isSubmitFormActionDictionary(const SkPdfNativeObject* nativeOb j) const {
3598 return true;
3599 }
3600
3601 bool SkPdfMapper::SkPdfSubmitFormActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfSubmitFormActionDictionary** data) const {
3602 const SkPdfNativeObject* value = dict->get(key);
3603 if (value == NULL) { return false; }
3604 if (data == NULL) { return true; }
3605 if (kNone_SkPdfNativeObjectType == mapSubmitFormActionDictionary(value)) retur n false;
3606 *data = (SkPdfSubmitFormActionDictionary*)value;
3607 return true;
3608 }
3609
3610 bool SkPdfMapper::SkPdfSubmitFormActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfSubmitFormActionDictionary ** data) const {
3611 if (SkPdfSubmitFormActionDictionaryFromDictionary(dict, key, data)) return tru e;
3612 if (abr == NULL || *abr == '\0') return false;
3613 return SkPdfSubmitFormActionDictionaryFromDictionary(dict, abr, data);
3614 }
3615
3616 bool SkPdfMapper::isResetFormActionDictionary(const SkPdfNativeObject* nativeObj ) const {
3617 return true;
3618 }
3619
3620 bool SkPdfMapper::SkPdfResetFormActionDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfResetFormActionDictionary** data) const {
3621 const SkPdfNativeObject* value = dict->get(key);
3622 if (value == NULL) { return false; }
3623 if (data == NULL) { return true; }
3624 if (kNone_SkPdfNativeObjectType == mapResetFormActionDictionary(value)) return false;
3625 *data = (SkPdfResetFormActionDictionary*)value;
3626 return true;
3627 }
3628
3629 bool SkPdfMapper::SkPdfResetFormActionDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfResetFormActionDictionary** data) const {
3630 if (SkPdfResetFormActionDictionaryFromDictionary(dict, key, data)) return true ;
3631 if (abr == NULL || *abr == '\0') return false;
3632 return SkPdfResetFormActionDictionaryFromDictionary(dict, abr, data);
3633 }
3634
3635 bool SkPdfMapper::isImportDataActionDictionary(const SkPdfNativeObject* nativeOb j) const {
3636 return true;
3637 }
3638
3639 bool SkPdfMapper::SkPdfImportDataActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfImportDataActionDictionary** data) const {
3640 const SkPdfNativeObject* value = dict->get(key);
3641 if (value == NULL) { return false; }
3642 if (data == NULL) { return true; }
3643 if (kNone_SkPdfNativeObjectType == mapImportDataActionDictionary(value)) retur n false;
3644 *data = (SkPdfImportDataActionDictionary*)value;
3645 return true;
3646 }
3647
3648 bool SkPdfMapper::SkPdfImportDataActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfImportDataActionDictionary ** data) const {
3649 if (SkPdfImportDataActionDictionaryFromDictionary(dict, key, data)) return tru e;
3650 if (abr == NULL || *abr == '\0') return false;
3651 return SkPdfImportDataActionDictionaryFromDictionary(dict, abr, data);
3652 }
3653
3654 bool SkPdfMapper::isJavascriptActionDictionary(const SkPdfNativeObject* nativeOb j) const {
3655 return true;
3656 }
3657
3658 bool SkPdfMapper::SkPdfJavascriptActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfJavascriptActionDictionary** data) const {
3659 const SkPdfNativeObject* value = dict->get(key);
3660 if (value == NULL) { return false; }
3661 if (data == NULL) { return true; }
3662 if (kNone_SkPdfNativeObjectType == mapJavascriptActionDictionary(value)) retur n false;
3663 *data = (SkPdfJavascriptActionDictionary*)value;
3664 return true;
3665 }
3666
3667 bool SkPdfMapper::SkPdfJavascriptActionDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfJavascriptActionDictionary ** data) const {
3668 if (SkPdfJavascriptActionDictionaryFromDictionary(dict, key, data)) return tru e;
3669 if (abr == NULL || *abr == '\0') return false;
3670 return SkPdfJavascriptActionDictionaryFromDictionary(dict, abr, data);
3671 }
3672
3673 bool SkPdfMapper::isFDFTrailerDictionary(const SkPdfNativeObject* nativeObj) con st {
3674 return true;
3675 }
3676
3677 bool SkPdfMapper::SkPdfFDFTrailerDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfFDFTrailerDictionary** data) const {
3678 const SkPdfNativeObject* value = dict->get(key);
3679 if (value == NULL) { return false; }
3680 if (data == NULL) { return true; }
3681 if (kNone_SkPdfNativeObjectType == mapFDFTrailerDictionary(value)) return fals e;
3682 *data = (SkPdfFDFTrailerDictionary*)value;
3683 return true;
3684 }
3685
3686 bool SkPdfMapper::SkPdfFDFTrailerDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfFDFTrailerDictionary** data) con st {
3687 if (SkPdfFDFTrailerDictionaryFromDictionary(dict, key, data)) return true;
3688 if (abr == NULL || *abr == '\0') return false;
3689 return SkPdfFDFTrailerDictionaryFromDictionary(dict, abr, data);
3690 }
3691
3692 bool SkPdfMapper::isFDFCatalogDictionary(const SkPdfNativeObject* nativeObj) con st {
3693 return true;
3694 }
3695
3696 bool SkPdfMapper::SkPdfFDFCatalogDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfFDFCatalogDictionary** data) const {
3697 const SkPdfNativeObject* value = dict->get(key);
3698 if (value == NULL) { return false; }
3699 if (data == NULL) { return true; }
3700 if (kNone_SkPdfNativeObjectType == mapFDFCatalogDictionary(value)) return fals e;
3701 *data = (SkPdfFDFCatalogDictionary*)value;
3702 return true;
3703 }
3704
3705 bool SkPdfMapper::SkPdfFDFCatalogDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfFDFCatalogDictionary** data) con st {
3706 if (SkPdfFDFCatalogDictionaryFromDictionary(dict, key, data)) return true;
3707 if (abr == NULL || *abr == '\0') return false;
3708 return SkPdfFDFCatalogDictionaryFromDictionary(dict, abr, data);
3709 }
3710
3711 bool SkPdfMapper::isFDFDictionary(const SkPdfNativeObject* nativeObj) const {
3712 return true;
3713 }
3714
3715 bool SkPdfMapper::SkPdfFDFDictionaryFromDictionary(const SkPdfNativeObject* dict , const char* key, SkPdfFDFDictionary** data) const {
3716 const SkPdfNativeObject* value = dict->get(key);
3717 if (value == NULL) { return false; }
3718 if (data == NULL) { return true; }
3719 if (kNone_SkPdfNativeObjectType == mapFDFDictionary(value)) return false;
3720 *data = (SkPdfFDFDictionary*)value;
3721 return true;
3722 }
3723
3724 bool SkPdfMapper::SkPdfFDFDictionaryFromDictionary(const SkPdfNativeObject* dict , const char* key, const char* abr, SkPdfFDFDictionary** data) const {
3725 if (SkPdfFDFDictionaryFromDictionary(dict, key, data)) return true;
3726 if (abr == NULL || *abr == '\0') return false;
3727 return SkPdfFDFDictionaryFromDictionary(dict, abr, data);
3728 }
3729
3730 bool SkPdfMapper::isEncryptedEmbeddedFileStreamDictionary(const SkPdfNativeObjec t* nativeObj) const {
3731 return true;
3732 }
3733
3734 bool SkPdfMapper::SkPdfEncryptedEmbeddedFileStreamDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfEncryptedEmbeddedFileStreamDicti onary** data) const {
3735 const SkPdfNativeObject* value = dict->get(key);
3736 if (value == NULL) { return false; }
3737 if (data == NULL) { return true; }
3738 if (kNone_SkPdfNativeObjectType == mapEncryptedEmbeddedFileStreamDictionary(va lue)) return false;
3739 *data = (SkPdfEncryptedEmbeddedFileStreamDictionary*)value;
3740 return true;
3741 }
3742
3743 bool SkPdfMapper::SkPdfEncryptedEmbeddedFileStreamDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfEncryptedEmbedd edFileStreamDictionary** data) const {
3744 if (SkPdfEncryptedEmbeddedFileStreamDictionaryFromDictionary(dict, key, data)) return true;
3745 if (abr == NULL || *abr == '\0') return false;
3746 return SkPdfEncryptedEmbeddedFileStreamDictionaryFromDictionary(dict, abr, dat a);
3747 }
3748
3749 bool SkPdfMapper::isJavascriptDictionary(const SkPdfNativeObject* nativeObj) con st {
3750 return true;
3751 }
3752
3753 bool SkPdfMapper::SkPdfJavascriptDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfJavascriptDictionary** data) const {
3754 const SkPdfNativeObject* value = dict->get(key);
3755 if (value == NULL) { return false; }
3756 if (data == NULL) { return true; }
3757 if (kNone_SkPdfNativeObjectType == mapJavascriptDictionary(value)) return fals e;
3758 *data = (SkPdfJavascriptDictionary*)value;
3759 return true;
3760 }
3761
3762 bool SkPdfMapper::SkPdfJavascriptDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfJavascriptDictionary** data) con st {
3763 if (SkPdfJavascriptDictionaryFromDictionary(dict, key, data)) return true;
3764 if (abr == NULL || *abr == '\0') return false;
3765 return SkPdfJavascriptDictionaryFromDictionary(dict, abr, data);
3766 }
3767
3768 bool SkPdfMapper::isFDFFieldDictionary(const SkPdfNativeObject* nativeObj) const {
3769 return true;
3770 }
3771
3772 bool SkPdfMapper::SkPdfFDFFieldDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfFDFFieldDictionary** data) const {
3773 const SkPdfNativeObject* value = dict->get(key);
3774 if (value == NULL) { return false; }
3775 if (data == NULL) { return true; }
3776 if (kNone_SkPdfNativeObjectType == mapFDFFieldDictionary(value)) return false;
3777 *data = (SkPdfFDFFieldDictionary*)value;
3778 return true;
3779 }
3780
3781 bool SkPdfMapper::SkPdfFDFFieldDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfFDFFieldDictionary** data) const {
3782 if (SkPdfFDFFieldDictionaryFromDictionary(dict, key, data)) return true;
3783 if (abr == NULL || *abr == '\0') return false;
3784 return SkPdfFDFFieldDictionaryFromDictionary(dict, abr, data);
3785 }
3786
3787 bool SkPdfMapper::isIconFitDictionary(const SkPdfNativeObject* nativeObj) const {
3788 return true;
3789 }
3790
3791 bool SkPdfMapper::SkPdfIconFitDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfIconFitDictionary** data) const {
3792 const SkPdfNativeObject* value = dict->get(key);
3793 if (value == NULL) { return false; }
3794 if (data == NULL) { return true; }
3795 if (kNone_SkPdfNativeObjectType == mapIconFitDictionary(value)) return false;
3796 *data = (SkPdfIconFitDictionary*)value;
3797 return true;
3798 }
3799
3800 bool SkPdfMapper::SkPdfIconFitDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfIconFitDictionary** data) const {
3801 if (SkPdfIconFitDictionaryFromDictionary(dict, key, data)) return true;
3802 if (abr == NULL || *abr == '\0') return false;
3803 return SkPdfIconFitDictionaryFromDictionary(dict, abr, data);
3804 }
3805
3806 bool SkPdfMapper::isFDFPageDictionary(const SkPdfNativeObject* nativeObj) const {
3807 return true;
3808 }
3809
3810 bool SkPdfMapper::SkPdfFDFPageDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfFDFPageDictionary** data) const {
3811 const SkPdfNativeObject* value = dict->get(key);
3812 if (value == NULL) { return false; }
3813 if (data == NULL) { return true; }
3814 if (kNone_SkPdfNativeObjectType == mapFDFPageDictionary(value)) return false;
3815 *data = (SkPdfFDFPageDictionary*)value;
3816 return true;
3817 }
3818
3819 bool SkPdfMapper::SkPdfFDFPageDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfFDFPageDictionary** data) const {
3820 if (SkPdfFDFPageDictionaryFromDictionary(dict, key, data)) return true;
3821 if (abr == NULL || *abr == '\0') return false;
3822 return SkPdfFDFPageDictionaryFromDictionary(dict, abr, data);
3823 }
3824
3825 bool SkPdfMapper::isFDFTemplateDictionary(const SkPdfNativeObject* nativeObj) co nst {
3826 return true;
3827 }
3828
3829 bool SkPdfMapper::SkPdfFDFTemplateDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfFDFTemplateDictionary** data) const {
3830 const SkPdfNativeObject* value = dict->get(key);
3831 if (value == NULL) { return false; }
3832 if (data == NULL) { return true; }
3833 if (kNone_SkPdfNativeObjectType == mapFDFTemplateDictionary(value)) return fal se;
3834 *data = (SkPdfFDFTemplateDictionary*)value;
3835 return true;
3836 }
3837
3838 bool SkPdfMapper::SkPdfFDFTemplateDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfFDFTemplateDictionary** data) c onst {
3839 if (SkPdfFDFTemplateDictionaryFromDictionary(dict, key, data)) return true;
3840 if (abr == NULL || *abr == '\0') return false;
3841 return SkPdfFDFTemplateDictionaryFromDictionary(dict, abr, data);
3842 }
3843
3844 bool SkPdfMapper::isFDFNamedPageReferenceDictionary(const SkPdfNativeObject* nat iveObj) const {
3845 return true;
3846 }
3847
3848 bool SkPdfMapper::SkPdfFDFNamedPageReferenceDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfFDFNamedPageReferenceDictionary** data ) const {
3849 const SkPdfNativeObject* value = dict->get(key);
3850 if (value == NULL) { return false; }
3851 if (data == NULL) { return true; }
3852 if (kNone_SkPdfNativeObjectType == mapFDFNamedPageReferenceDictionary(value)) return false;
3853 *data = (SkPdfFDFNamedPageReferenceDictionary*)value;
3854 return true;
3855 }
3856
3857 bool SkPdfMapper::SkPdfFDFNamedPageReferenceDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfFDFNamedPageReference Dictionary** data) const {
3858 if (SkPdfFDFNamedPageReferenceDictionaryFromDictionary(dict, key, data)) retur n true;
3859 if (abr == NULL || *abr == '\0') return false;
3860 return SkPdfFDFNamedPageReferenceDictionaryFromDictionary(dict, abr, data);
3861 }
3862
3863 bool SkPdfMapper::isFDFFileAnnotationDictionary(const SkPdfNativeObject* nativeO bj) const {
3864 return true;
3865 }
3866
3867 bool SkPdfMapper::SkPdfFDFFileAnnotationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfFDFFileAnnotationDictionary** data) const {
3868 const SkPdfNativeObject* value = dict->get(key);
3869 if (value == NULL) { return false; }
3870 if (data == NULL) { return true; }
3871 if (kNone_SkPdfNativeObjectType == mapFDFFileAnnotationDictionary(value)) retu rn false;
3872 *data = (SkPdfFDFFileAnnotationDictionary*)value;
3873 return true;
3874 }
3875
3876 bool SkPdfMapper::SkPdfFDFFileAnnotationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfFDFFileAnnotationDictiona ry** data) const {
3877 if (SkPdfFDFFileAnnotationDictionaryFromDictionary(dict, key, data)) return tr ue;
3878 if (abr == NULL || *abr == '\0') return false;
3879 return SkPdfFDFFileAnnotationDictionaryFromDictionary(dict, abr, data);
3880 }
3881
3882 bool SkPdfMapper::isSoundObjectDictionary(const SkPdfNativeObject* nativeObj) co nst {
3883 return true;
3884 }
3885
3886 bool SkPdfMapper::SkPdfSoundObjectDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, SkPdfSoundObjectDictionary** data) const {
3887 const SkPdfNativeObject* value = dict->get(key);
3888 if (value == NULL) { return false; }
3889 if (data == NULL) { return true; }
3890 if (kNone_SkPdfNativeObjectType == mapSoundObjectDictionary(value)) return fal se;
3891 *data = (SkPdfSoundObjectDictionary*)value;
3892 return true;
3893 }
3894
3895 bool SkPdfMapper::SkPdfSoundObjectDictionaryFromDictionary(const SkPdfNativeObje ct* dict, const char* key, const char* abr, SkPdfSoundObjectDictionary** data) c onst {
3896 if (SkPdfSoundObjectDictionaryFromDictionary(dict, key, data)) return true;
3897 if (abr == NULL || *abr == '\0') return false;
3898 return SkPdfSoundObjectDictionaryFromDictionary(dict, abr, data);
3899 }
3900
3901 bool SkPdfMapper::isMovieDictionary(const SkPdfNativeObject* nativeObj) const {
3902 return true;
3903 }
3904
3905 bool SkPdfMapper::SkPdfMovieDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, SkPdfMovieDictionary** data) const {
3906 const SkPdfNativeObject* value = dict->get(key);
3907 if (value == NULL) { return false; }
3908 if (data == NULL) { return true; }
3909 if (kNone_SkPdfNativeObjectType == mapMovieDictionary(value)) return false;
3910 *data = (SkPdfMovieDictionary*)value;
3911 return true;
3912 }
3913
3914 bool SkPdfMapper::SkPdfMovieDictionaryFromDictionary(const SkPdfNativeObject* di ct, const char* key, const char* abr, SkPdfMovieDictionary** data) const {
3915 if (SkPdfMovieDictionaryFromDictionary(dict, key, data)) return true;
3916 if (abr == NULL || *abr == '\0') return false;
3917 return SkPdfMovieDictionaryFromDictionary(dict, abr, data);
3918 }
3919
3920 bool SkPdfMapper::isMovieActivationDictionary(const SkPdfNativeObject* nativeObj ) const {
3921 return true;
3922 }
3923
3924 bool SkPdfMapper::SkPdfMovieActivationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfMovieActivationDictionary** data) const {
3925 const SkPdfNativeObject* value = dict->get(key);
3926 if (value == NULL) { return false; }
3927 if (data == NULL) { return true; }
3928 if (kNone_SkPdfNativeObjectType == mapMovieActivationDictionary(value)) return false;
3929 *data = (SkPdfMovieActivationDictionary*)value;
3930 return true;
3931 }
3932
3933 bool SkPdfMapper::SkPdfMovieActivationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfMovieActivationDictionary** data) const {
3934 if (SkPdfMovieActivationDictionaryFromDictionary(dict, key, data)) return true ;
3935 if (abr == NULL || *abr == '\0') return false;
3936 return SkPdfMovieActivationDictionaryFromDictionary(dict, abr, data);
3937 }
3938
3939 bool SkPdfMapper::isDocumentInformationDictionary(const SkPdfNativeObject* nativ eObj) const {
3940 return true;
3941 }
3942
3943 bool SkPdfMapper::SkPdfDocumentInformationDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, SkPdfDocumentInformationDictionary** data) co nst {
3944 const SkPdfNativeObject* value = dict->get(key);
3945 if (value == NULL) { return false; }
3946 if (data == NULL) { return true; }
3947 if (kNone_SkPdfNativeObjectType == mapDocumentInformationDictionary(value)) re turn false;
3948 *data = (SkPdfDocumentInformationDictionary*)value;
3949 return true;
3950 }
3951
3952 bool SkPdfMapper::SkPdfDocumentInformationDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, const char* abr, SkPdfDocumentInformationDict ionary** data) const {
3953 if (SkPdfDocumentInformationDictionaryFromDictionary(dict, key, data)) return true;
3954 if (abr == NULL || *abr == '\0') return false;
3955 return SkPdfDocumentInformationDictionaryFromDictionary(dict, abr, data);
3956 }
3957
3958 bool SkPdfMapper::isMetadataStreamDictionary(const SkPdfNativeObject* nativeObj) const {
3959 return true;
3960 }
3961
3962 bool SkPdfMapper::SkPdfMetadataStreamDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, SkPdfMetadataStreamDictionary** data) const {
3963 const SkPdfNativeObject* value = dict->get(key);
3964 if (value == NULL) { return false; }
3965 if (data == NULL) { return true; }
3966 if (kNone_SkPdfNativeObjectType == mapMetadataStreamDictionary(value)) return false;
3967 *data = (SkPdfMetadataStreamDictionary*)value;
3968 return true;
3969 }
3970
3971 bool SkPdfMapper::SkPdfMetadataStreamDictionaryFromDictionary(const SkPdfNativeO bject* dict, const char* key, const char* abr, SkPdfMetadataStreamDictionary** d ata) const {
3972 if (SkPdfMetadataStreamDictionaryFromDictionary(dict, key, data)) return true;
3973 if (abr == NULL || *abr == '\0') return false;
3974 return SkPdfMetadataStreamDictionaryFromDictionary(dict, abr, data);
3975 }
3976
3977 bool SkPdfMapper::isComponentsWithMetadataDictionary(const SkPdfNativeObject* na tiveObj) const {
3978 return true;
3979 }
3980
3981 bool SkPdfMapper::SkPdfComponentsWithMetadataDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, SkPdfComponentsWithMetadataDictionary** da ta) const {
3982 const SkPdfNativeObject* value = dict->get(key);
3983 if (value == NULL) { return false; }
3984 if (data == NULL) { return true; }
3985 if (kNone_SkPdfNativeObjectType == mapComponentsWithMetadataDictionary(value)) return false;
3986 *data = (SkPdfComponentsWithMetadataDictionary*)value;
3987 return true;
3988 }
3989
3990 bool SkPdfMapper::SkPdfComponentsWithMetadataDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, const char* abr, SkPdfComponentsWithMetada taDictionary** data) const {
3991 if (SkPdfComponentsWithMetadataDictionaryFromDictionary(dict, key, data)) retu rn true;
3992 if (abr == NULL || *abr == '\0') return false;
3993 return SkPdfComponentsWithMetadataDictionaryFromDictionary(dict, abr, data);
3994 }
3995
3996 bool SkPdfMapper::isPagePieceDictionary(const SkPdfNativeObject* nativeObj) cons t {
3997 return true;
3998 }
3999
4000 bool SkPdfMapper::SkPdfPagePieceDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfPagePieceDictionary** data) const {
4001 const SkPdfNativeObject* value = dict->get(key);
4002 if (value == NULL) { return false; }
4003 if (data == NULL) { return true; }
4004 if (kNone_SkPdfNativeObjectType == mapPagePieceDictionary(value)) return false ;
4005 *data = (SkPdfPagePieceDictionary*)value;
4006 return true;
4007 }
4008
4009 bool SkPdfMapper::SkPdfPagePieceDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfPagePieceDictionary** data) const {
4010 if (SkPdfPagePieceDictionaryFromDictionary(dict, key, data)) return true;
4011 if (abr == NULL || *abr == '\0') return false;
4012 return SkPdfPagePieceDictionaryFromDictionary(dict, abr, data);
4013 }
4014
4015 bool SkPdfMapper::isApplicationDataDictionary(const SkPdfNativeObject* nativeObj ) const {
4016 return true;
4017 }
4018
4019 bool SkPdfMapper::SkPdfApplicationDataDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfApplicationDataDictionary** data) const {
4020 const SkPdfNativeObject* value = dict->get(key);
4021 if (value == NULL) { return false; }
4022 if (data == NULL) { return true; }
4023 if (kNone_SkPdfNativeObjectType == mapApplicationDataDictionary(value)) return false;
4024 *data = (SkPdfApplicationDataDictionary*)value;
4025 return true;
4026 }
4027
4028 bool SkPdfMapper::SkPdfApplicationDataDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfApplicationDataDictionary** data) const {
4029 if (SkPdfApplicationDataDictionaryFromDictionary(dict, key, data)) return true ;
4030 if (abr == NULL || *abr == '\0') return false;
4031 return SkPdfApplicationDataDictionaryFromDictionary(dict, abr, data);
4032 }
4033
4034 bool SkPdfMapper::isStructureTreeRootDictionary(const SkPdfNativeObject* nativeO bj) const {
4035 return true;
4036 }
4037
4038 bool SkPdfMapper::SkPdfStructureTreeRootDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfStructureTreeRootDictionary** data) const {
4039 const SkPdfNativeObject* value = dict->get(key);
4040 if (value == NULL) { return false; }
4041 if (data == NULL) { return true; }
4042 if (kNone_SkPdfNativeObjectType == mapStructureTreeRootDictionary(value)) retu rn false;
4043 *data = (SkPdfStructureTreeRootDictionary*)value;
4044 return true;
4045 }
4046
4047 bool SkPdfMapper::SkPdfStructureTreeRootDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfStructureTreeRootDictiona ry** data) const {
4048 if (SkPdfStructureTreeRootDictionaryFromDictionary(dict, key, data)) return tr ue;
4049 if (abr == NULL || *abr == '\0') return false;
4050 return SkPdfStructureTreeRootDictionaryFromDictionary(dict, abr, data);
4051 }
4052
4053 bool SkPdfMapper::isStructureElementDictionary(const SkPdfNativeObject* nativeOb j) const {
4054 return true;
4055 }
4056
4057 bool SkPdfMapper::SkPdfStructureElementDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, SkPdfStructureElementDictionary** data) const {
4058 const SkPdfNativeObject* value = dict->get(key);
4059 if (value == NULL) { return false; }
4060 if (data == NULL) { return true; }
4061 if (kNone_SkPdfNativeObjectType == mapStructureElementDictionary(value)) retur n false;
4062 *data = (SkPdfStructureElementDictionary*)value;
4063 return true;
4064 }
4065
4066 bool SkPdfMapper::SkPdfStructureElementDictionaryFromDictionary(const SkPdfNativ eObject* dict, const char* key, const char* abr, SkPdfStructureElementDictionary ** data) const {
4067 if (SkPdfStructureElementDictionaryFromDictionary(dict, key, data)) return tru e;
4068 if (abr == NULL || *abr == '\0') return false;
4069 return SkPdfStructureElementDictionaryFromDictionary(dict, abr, data);
4070 }
4071
4072 bool SkPdfMapper::isMarkedContentReferenceDictionary(const SkPdfNativeObject* na tiveObj) const {
4073 return true;
4074 }
4075
4076 bool SkPdfMapper::SkPdfMarkedContentReferenceDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, SkPdfMarkedContentReferenceDictionary** da ta) const {
4077 const SkPdfNativeObject* value = dict->get(key);
4078 if (value == NULL) { return false; }
4079 if (data == NULL) { return true; }
4080 if (kNone_SkPdfNativeObjectType == mapMarkedContentReferenceDictionary(value)) return false;
4081 *data = (SkPdfMarkedContentReferenceDictionary*)value;
4082 return true;
4083 }
4084
4085 bool SkPdfMapper::SkPdfMarkedContentReferenceDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, const char* abr, SkPdfMarkedContentReferen ceDictionary** data) const {
4086 if (SkPdfMarkedContentReferenceDictionaryFromDictionary(dict, key, data)) retu rn true;
4087 if (abr == NULL || *abr == '\0') return false;
4088 return SkPdfMarkedContentReferenceDictionaryFromDictionary(dict, abr, data);
4089 }
4090
4091 bool SkPdfMapper::isObjectReferenceDictionary(const SkPdfNativeObject* nativeObj ) const {
4092 return true;
4093 }
4094
4095 bool SkPdfMapper::SkPdfObjectReferenceDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfObjectReferenceDictionary** data) const {
4096 const SkPdfNativeObject* value = dict->get(key);
4097 if (value == NULL) { return false; }
4098 if (data == NULL) { return true; }
4099 if (kNone_SkPdfNativeObjectType == mapObjectReferenceDictionary(value)) return false;
4100 *data = (SkPdfObjectReferenceDictionary*)value;
4101 return true;
4102 }
4103
4104 bool SkPdfMapper::SkPdfObjectReferenceDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfObjectReferenceDictionary** data) const {
4105 if (SkPdfObjectReferenceDictionaryFromDictionary(dict, key, data)) return true ;
4106 if (abr == NULL || *abr == '\0') return false;
4107 return SkPdfObjectReferenceDictionaryFromDictionary(dict, abr, data);
4108 }
4109
4110 bool SkPdfMapper::isStructureElementAccessDictionary(const SkPdfNativeObject* na tiveObj) const {
4111 return true;
4112 }
4113
4114 bool SkPdfMapper::SkPdfStructureElementAccessDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, SkPdfStructureElementAccessDictionary** da ta) const {
4115 const SkPdfNativeObject* value = dict->get(key);
4116 if (value == NULL) { return false; }
4117 if (data == NULL) { return true; }
4118 if (kNone_SkPdfNativeObjectType == mapStructureElementAccessDictionary(value)) return false;
4119 *data = (SkPdfStructureElementAccessDictionary*)value;
4120 return true;
4121 }
4122
4123 bool SkPdfMapper::SkPdfStructureElementAccessDictionaryFromDictionary(const SkPd fNativeObject* dict, const char* key, const char* abr, SkPdfStructureElementAcce ssDictionary** data) const {
4124 if (SkPdfStructureElementAccessDictionaryFromDictionary(dict, key, data)) retu rn true;
4125 if (abr == NULL || *abr == '\0') return false;
4126 return SkPdfStructureElementAccessDictionaryFromDictionary(dict, abr, data);
4127 }
4128
4129 bool SkPdfMapper::isAttributeObjectDictionary(const SkPdfNativeObject* nativeObj ) const {
4130 return true;
4131 }
4132
4133 bool SkPdfMapper::SkPdfAttributeObjectDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfAttributeObjectDictionary** data) const {
4134 const SkPdfNativeObject* value = dict->get(key);
4135 if (value == NULL) { return false; }
4136 if (data == NULL) { return true; }
4137 if (kNone_SkPdfNativeObjectType == mapAttributeObjectDictionary(value)) return false;
4138 *data = (SkPdfAttributeObjectDictionary*)value;
4139 return true;
4140 }
4141
4142 bool SkPdfMapper::SkPdfAttributeObjectDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfAttributeObjectDictionary** data) const {
4143 if (SkPdfAttributeObjectDictionaryFromDictionary(dict, key, data)) return true ;
4144 if (abr == NULL || *abr == '\0') return false;
4145 return SkPdfAttributeObjectDictionaryFromDictionary(dict, abr, data);
4146 }
4147
4148 bool SkPdfMapper::isMarkInformationDictionary(const SkPdfNativeObject* nativeObj ) const {
4149 return true;
4150 }
4151
4152 bool SkPdfMapper::SkPdfMarkInformationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfMarkInformationDictionary** data) const {
4153 const SkPdfNativeObject* value = dict->get(key);
4154 if (value == NULL) { return false; }
4155 if (data == NULL) { return true; }
4156 if (kNone_SkPdfNativeObjectType == mapMarkInformationDictionary(value)) return false;
4157 *data = (SkPdfMarkInformationDictionary*)value;
4158 return true;
4159 }
4160
4161 bool SkPdfMapper::SkPdfMarkInformationDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfMarkInformationDictionary** data) const {
4162 if (SkPdfMarkInformationDictionaryFromDictionary(dict, key, data)) return true ;
4163 if (abr == NULL || *abr == '\0') return false;
4164 return SkPdfMarkInformationDictionaryFromDictionary(dict, abr, data);
4165 }
4166
4167 bool SkPdfMapper::isArtifactsDictionary(const SkPdfNativeObject* nativeObj) cons t {
4168 return true;
4169 }
4170
4171 bool SkPdfMapper::SkPdfArtifactsDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, SkPdfArtifactsDictionary** data) const {
4172 const SkPdfNativeObject* value = dict->get(key);
4173 if (value == NULL) { return false; }
4174 if (data == NULL) { return true; }
4175 if (kNone_SkPdfNativeObjectType == mapArtifactsDictionary(value)) return false ;
4176 *data = (SkPdfArtifactsDictionary*)value;
4177 return true;
4178 }
4179
4180 bool SkPdfMapper::SkPdfArtifactsDictionaryFromDictionary(const SkPdfNativeObject * dict, const char* key, const char* abr, SkPdfArtifactsDictionary** data) const {
4181 if (SkPdfArtifactsDictionaryFromDictionary(dict, key, data)) return true;
4182 if (abr == NULL || *abr == '\0') return false;
4183 return SkPdfArtifactsDictionaryFromDictionary(dict, abr, data);
4184 }
4185
4186 bool SkPdfMapper::isStandardStructureDictionary(const SkPdfNativeObject* nativeO bj) const {
4187 return true;
4188 }
4189
4190 bool SkPdfMapper::SkPdfStandardStructureDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfStandardStructureDictionary** data) const {
4191 const SkPdfNativeObject* value = dict->get(key);
4192 if (value == NULL) { return false; }
4193 if (data == NULL) { return true; }
4194 if (kNone_SkPdfNativeObjectType == mapStandardStructureDictionary(value)) retu rn false;
4195 *data = (SkPdfStandardStructureDictionary*)value;
4196 return true;
4197 }
4198
4199 bool SkPdfMapper::SkPdfStandardStructureDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfStandardStructureDictiona ry** data) const {
4200 if (SkPdfStandardStructureDictionaryFromDictionary(dict, key, data)) return tr ue;
4201 if (abr == NULL || *abr == '\0') return false;
4202 return SkPdfStandardStructureDictionaryFromDictionary(dict, abr, data);
4203 }
4204
4205 bool SkPdfMapper::isBlockLevelStructureElementsDictionary(const SkPdfNativeObjec t* nativeObj) const {
4206 return true;
4207 }
4208
4209 bool SkPdfMapper::SkPdfBlockLevelStructureElementsDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfBlockLevelStructureElementsDicti onary** data) const {
4210 const SkPdfNativeObject* value = dict->get(key);
4211 if (value == NULL) { return false; }
4212 if (data == NULL) { return true; }
4213 if (kNone_SkPdfNativeObjectType == mapBlockLevelStructureElementsDictionary(va lue)) return false;
4214 *data = (SkPdfBlockLevelStructureElementsDictionary*)value;
4215 return true;
4216 }
4217
4218 bool SkPdfMapper::SkPdfBlockLevelStructureElementsDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfBlockLevelStruc tureElementsDictionary** data) const {
4219 if (SkPdfBlockLevelStructureElementsDictionaryFromDictionary(dict, key, data)) return true;
4220 if (abr == NULL || *abr == '\0') return false;
4221 return SkPdfBlockLevelStructureElementsDictionaryFromDictionary(dict, abr, dat a);
4222 }
4223
4224 bool SkPdfMapper::isInlineLevelStructureElementsDictionary(const SkPdfNativeObje ct* nativeObj) const {
4225 return true;
4226 }
4227
4228 bool SkPdfMapper::SkPdfInlineLevelStructureElementsDictionaryFromDictionary(cons t SkPdfNativeObject* dict, const char* key, SkPdfInlineLevelStructureElementsDic tionary** data) const {
4229 const SkPdfNativeObject* value = dict->get(key);
4230 if (value == NULL) { return false; }
4231 if (data == NULL) { return true; }
4232 if (kNone_SkPdfNativeObjectType == mapInlineLevelStructureElementsDictionary(v alue)) return false;
4233 *data = (SkPdfInlineLevelStructureElementsDictionary*)value;
4234 return true;
4235 }
4236
4237 bool SkPdfMapper::SkPdfInlineLevelStructureElementsDictionaryFromDictionary(cons t SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfInlineLevelStr uctureElementsDictionary** data) const {
4238 if (SkPdfInlineLevelStructureElementsDictionaryFromDictionary(dict, key, data) ) return true;
4239 if (abr == NULL || *abr == '\0') return false;
4240 return SkPdfInlineLevelStructureElementsDictionaryFromDictionary(dict, abr, da ta);
4241 }
4242
4243 bool SkPdfMapper::isListAttributeDictionary(const SkPdfNativeObject* nativeObj) const {
4244 return true;
4245 }
4246
4247 bool SkPdfMapper::SkPdfListAttributeDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, SkPdfListAttributeDictionary** data) const {
4248 const SkPdfNativeObject* value = dict->get(key);
4249 if (value == NULL) { return false; }
4250 if (data == NULL) { return true; }
4251 if (kNone_SkPdfNativeObjectType == mapListAttributeDictionary(value)) return f alse;
4252 *data = (SkPdfListAttributeDictionary*)value;
4253 return true;
4254 }
4255
4256 bool SkPdfMapper::SkPdfListAttributeDictionaryFromDictionary(const SkPdfNativeOb ject* dict, const char* key, const char* abr, SkPdfListAttributeDictionary** dat a) const {
4257 if (SkPdfListAttributeDictionaryFromDictionary(dict, key, data)) return true;
4258 if (abr == NULL || *abr == '\0') return false;
4259 return SkPdfListAttributeDictionaryFromDictionary(dict, abr, data);
4260 }
4261
4262 bool SkPdfMapper::isTableAttributesDictionary(const SkPdfNativeObject* nativeObj ) const {
4263 return true;
4264 }
4265
4266 bool SkPdfMapper::SkPdfTableAttributesDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfTableAttributesDictionary** data) const {
4267 const SkPdfNativeObject* value = dict->get(key);
4268 if (value == NULL) { return false; }
4269 if (data == NULL) { return true; }
4270 if (kNone_SkPdfNativeObjectType == mapTableAttributesDictionary(value)) return false;
4271 *data = (SkPdfTableAttributesDictionary*)value;
4272 return true;
4273 }
4274
4275 bool SkPdfMapper::SkPdfTableAttributesDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfTableAttributesDictionary** data) const {
4276 if (SkPdfTableAttributesDictionaryFromDictionary(dict, key, data)) return true ;
4277 if (abr == NULL || *abr == '\0') return false;
4278 return SkPdfTableAttributesDictionaryFromDictionary(dict, abr, data);
4279 }
4280
4281 bool SkPdfMapper::isWebCaptureInformationDictionary(const SkPdfNativeObject* nat iveObj) const {
4282 return true;
4283 }
4284
4285 bool SkPdfMapper::SkPdfWebCaptureInformationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfWebCaptureInformationDictionary** data ) const {
4286 const SkPdfNativeObject* value = dict->get(key);
4287 if (value == NULL) { return false; }
4288 if (data == NULL) { return true; }
4289 if (kNone_SkPdfNativeObjectType == mapWebCaptureInformationDictionary(value)) return false;
4290 *data = (SkPdfWebCaptureInformationDictionary*)value;
4291 return true;
4292 }
4293
4294 bool SkPdfMapper::SkPdfWebCaptureInformationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfWebCaptureInformation Dictionary** data) const {
4295 if (SkPdfWebCaptureInformationDictionaryFromDictionary(dict, key, data)) retur n true;
4296 if (abr == NULL || *abr == '\0') return false;
4297 return SkPdfWebCaptureInformationDictionaryFromDictionary(dict, abr, data);
4298 }
4299
4300 bool SkPdfMapper::isWebCaptureDictionary(const SkPdfNativeObject* nativeObj) con st {
4301 return true;
4302 }
4303
4304 bool SkPdfMapper::SkPdfWebCaptureDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfWebCaptureDictionary** data) const {
4305 const SkPdfNativeObject* value = dict->get(key);
4306 if (value == NULL) { return false; }
4307 if (data == NULL) { return true; }
4308 if (kNone_SkPdfNativeObjectType == mapWebCaptureDictionary(value)) return fals e;
4309 *data = (SkPdfWebCaptureDictionary*)value;
4310 return true;
4311 }
4312
4313 bool SkPdfMapper::SkPdfWebCaptureDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfWebCaptureDictionary** data) con st {
4314 if (SkPdfWebCaptureDictionaryFromDictionary(dict, key, data)) return true;
4315 if (abr == NULL || *abr == '\0') return false;
4316 return SkPdfWebCaptureDictionaryFromDictionary(dict, abr, data);
4317 }
4318
4319 bool SkPdfMapper::isWebCapturePageSetDictionary(const SkPdfNativeObject* nativeO bj) const {
4320 return true;
4321 }
4322
4323 bool SkPdfMapper::SkPdfWebCapturePageSetDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfWebCapturePageSetDictionary** data) const {
4324 const SkPdfNativeObject* value = dict->get(key);
4325 if (value == NULL) { return false; }
4326 if (data == NULL) { return true; }
4327 if (kNone_SkPdfNativeObjectType == mapWebCapturePageSetDictionary(value)) retu rn false;
4328 *data = (SkPdfWebCapturePageSetDictionary*)value;
4329 return true;
4330 }
4331
4332 bool SkPdfMapper::SkPdfWebCapturePageSetDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfWebCapturePageSetDictiona ry** data) const {
4333 if (SkPdfWebCapturePageSetDictionaryFromDictionary(dict, key, data)) return tr ue;
4334 if (abr == NULL || *abr == '\0') return false;
4335 return SkPdfWebCapturePageSetDictionaryFromDictionary(dict, abr, data);
4336 }
4337
4338 bool SkPdfMapper::isWebCaptureImageSetDictionary(const SkPdfNativeObject* native Obj) const {
4339 return true;
4340 }
4341
4342 bool SkPdfMapper::SkPdfWebCaptureImageSetDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, SkPdfWebCaptureImageSetDictionary** data) cons t {
4343 const SkPdfNativeObject* value = dict->get(key);
4344 if (value == NULL) { return false; }
4345 if (data == NULL) { return true; }
4346 if (kNone_SkPdfNativeObjectType == mapWebCaptureImageSetDictionary(value)) ret urn false;
4347 *data = (SkPdfWebCaptureImageSetDictionary*)value;
4348 return true;
4349 }
4350
4351 bool SkPdfMapper::SkPdfWebCaptureImageSetDictionaryFromDictionary(const SkPdfNat iveObject* dict, const char* key, const char* abr, SkPdfWebCaptureImageSetDictio nary** data) const {
4352 if (SkPdfWebCaptureImageSetDictionaryFromDictionary(dict, key, data)) return t rue;
4353 if (abr == NULL || *abr == '\0') return false;
4354 return SkPdfWebCaptureImageSetDictionaryFromDictionary(dict, abr, data);
4355 }
4356
4357 bool SkPdfMapper::isSourceInformationDictionary(const SkPdfNativeObject* nativeO bj) const {
4358 return true;
4359 }
4360
4361 bool SkPdfMapper::SkPdfSourceInformationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfSourceInformationDictionary** data) const {
4362 const SkPdfNativeObject* value = dict->get(key);
4363 if (value == NULL) { return false; }
4364 if (data == NULL) { return true; }
4365 if (kNone_SkPdfNativeObjectType == mapSourceInformationDictionary(value)) retu rn false;
4366 *data = (SkPdfSourceInformationDictionary*)value;
4367 return true;
4368 }
4369
4370 bool SkPdfMapper::SkPdfSourceInformationDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfSourceInformationDictiona ry** data) const {
4371 if (SkPdfSourceInformationDictionaryFromDictionary(dict, key, data)) return tr ue;
4372 if (abr == NULL || *abr == '\0') return false;
4373 return SkPdfSourceInformationDictionaryFromDictionary(dict, abr, data);
4374 }
4375
4376 bool SkPdfMapper::isURLAliasDictionary(const SkPdfNativeObject* nativeObj) const {
4377 return true;
4378 }
4379
4380 bool SkPdfMapper::SkPdfURLAliasDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfURLAliasDictionary** data) const {
4381 const SkPdfNativeObject* value = dict->get(key);
4382 if (value == NULL) { return false; }
4383 if (data == NULL) { return true; }
4384 if (kNone_SkPdfNativeObjectType == mapURLAliasDictionary(value)) return false;
4385 *data = (SkPdfURLAliasDictionary*)value;
4386 return true;
4387 }
4388
4389 bool SkPdfMapper::SkPdfURLAliasDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfURLAliasDictionary** data) const {
4390 if (SkPdfURLAliasDictionaryFromDictionary(dict, key, data)) return true;
4391 if (abr == NULL || *abr == '\0') return false;
4392 return SkPdfURLAliasDictionaryFromDictionary(dict, abr, data);
4393 }
4394
4395 bool SkPdfMapper::isWebCaptureCommandDictionary(const SkPdfNativeObject* nativeO bj) const {
4396 return true;
4397 }
4398
4399 bool SkPdfMapper::SkPdfWebCaptureCommandDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfWebCaptureCommandDictionary** data) const {
4400 const SkPdfNativeObject* value = dict->get(key);
4401 if (value == NULL) { return false; }
4402 if (data == NULL) { return true; }
4403 if (kNone_SkPdfNativeObjectType == mapWebCaptureCommandDictionary(value)) retu rn false;
4404 *data = (SkPdfWebCaptureCommandDictionary*)value;
4405 return true;
4406 }
4407
4408 bool SkPdfMapper::SkPdfWebCaptureCommandDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfWebCaptureCommandDictiona ry** data) const {
4409 if (SkPdfWebCaptureCommandDictionaryFromDictionary(dict, key, data)) return tr ue;
4410 if (abr == NULL || *abr == '\0') return false;
4411 return SkPdfWebCaptureCommandDictionaryFromDictionary(dict, abr, data);
4412 }
4413
4414 bool SkPdfMapper::isWebCaptureCommandSettingsDictionary(const SkPdfNativeObject* nativeObj) const {
4415 return true;
4416 }
4417
4418 bool SkPdfMapper::SkPdfWebCaptureCommandSettingsDictionaryFromDictionary(const S kPdfNativeObject* dict, const char* key, SkPdfWebCaptureCommandSettingsDictionar y** data) const {
4419 const SkPdfNativeObject* value = dict->get(key);
4420 if (value == NULL) { return false; }
4421 if (data == NULL) { return true; }
4422 if (kNone_SkPdfNativeObjectType == mapWebCaptureCommandSettingsDictionary(valu e)) return false;
4423 *data = (SkPdfWebCaptureCommandSettingsDictionary*)value;
4424 return true;
4425 }
4426
4427 bool SkPdfMapper::SkPdfWebCaptureCommandSettingsDictionaryFromDictionary(const S kPdfNativeObject* dict, const char* key, const char* abr, SkPdfWebCaptureCommand SettingsDictionary** data) const {
4428 if (SkPdfWebCaptureCommandSettingsDictionaryFromDictionary(dict, key, data)) r eturn true;
4429 if (abr == NULL || *abr == '\0') return false;
4430 return SkPdfWebCaptureCommandSettingsDictionaryFromDictionary(dict, abr, data) ;
4431 }
4432
4433 bool SkPdfMapper::isBoxColorInformationDictionary(const SkPdfNativeObject* nativ eObj) const {
4434 return true;
4435 }
4436
4437 bool SkPdfMapper::SkPdfBoxColorInformationDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, SkPdfBoxColorInformationDictionary** data) co nst {
4438 const SkPdfNativeObject* value = dict->get(key);
4439 if (value == NULL) { return false; }
4440 if (data == NULL) { return true; }
4441 if (kNone_SkPdfNativeObjectType == mapBoxColorInformationDictionary(value)) re turn false;
4442 *data = (SkPdfBoxColorInformationDictionary*)value;
4443 return true;
4444 }
4445
4446 bool SkPdfMapper::SkPdfBoxColorInformationDictionaryFromDictionary(const SkPdfNa tiveObject* dict, const char* key, const char* abr, SkPdfBoxColorInformationDict ionary** data) const {
4447 if (SkPdfBoxColorInformationDictionaryFromDictionary(dict, key, data)) return true;
4448 if (abr == NULL || *abr == '\0') return false;
4449 return SkPdfBoxColorInformationDictionaryFromDictionary(dict, abr, data);
4450 }
4451
4452 bool SkPdfMapper::isBoxStyleDictionary(const SkPdfNativeObject* nativeObj) const {
4453 return true;
4454 }
4455
4456 bool SkPdfMapper::SkPdfBoxStyleDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfBoxStyleDictionary** data) const {
4457 const SkPdfNativeObject* value = dict->get(key);
4458 if (value == NULL) { return false; }
4459 if (data == NULL) { return true; }
4460 if (kNone_SkPdfNativeObjectType == mapBoxStyleDictionary(value)) return false;
4461 *data = (SkPdfBoxStyleDictionary*)value;
4462 return true;
4463 }
4464
4465 bool SkPdfMapper::SkPdfBoxStyleDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfBoxStyleDictionary** data) const {
4466 if (SkPdfBoxStyleDictionaryFromDictionary(dict, key, data)) return true;
4467 if (abr == NULL || *abr == '\0') return false;
4468 return SkPdfBoxStyleDictionaryFromDictionary(dict, abr, data);
4469 }
4470
4471 bool SkPdfMapper::isPrinterMarkAnnotationDictionary(const SkPdfNativeObject* nat iveObj) const {
4472 return true;
4473 }
4474
4475 bool SkPdfMapper::SkPdfPrinterMarkAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfPrinterMarkAnnotationDictionary** data ) const {
4476 const SkPdfNativeObject* value = dict->get(key);
4477 if (value == NULL) { return false; }
4478 if (data == NULL) { return true; }
4479 if (kNone_SkPdfNativeObjectType == mapPrinterMarkAnnotationDictionary(value)) return false;
4480 *data = (SkPdfPrinterMarkAnnotationDictionary*)value;
4481 return true;
4482 }
4483
4484 bool SkPdfMapper::SkPdfPrinterMarkAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfPrinterMarkAnnotation Dictionary** data) const {
4485 if (SkPdfPrinterMarkAnnotationDictionaryFromDictionary(dict, key, data)) retur n true;
4486 if (abr == NULL || *abr == '\0') return false;
4487 return SkPdfPrinterMarkAnnotationDictionaryFromDictionary(dict, abr, data);
4488 }
4489
4490 bool SkPdfMapper::isPrinterMarkFormDictionary(const SkPdfNativeObject* nativeObj ) const {
4491 return true;
4492 }
4493
4494 bool SkPdfMapper::SkPdfPrinterMarkFormDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfPrinterMarkFormDictionary** data) const {
4495 const SkPdfNativeObject* value = dict->get(key);
4496 if (value == NULL) { return false; }
4497 if (data == NULL) { return true; }
4498 if (kNone_SkPdfNativeObjectType == mapPrinterMarkFormDictionary(value)) return false;
4499 *data = (SkPdfPrinterMarkFormDictionary*)value;
4500 return true;
4501 }
4502
4503 bool SkPdfMapper::SkPdfPrinterMarkFormDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfPrinterMarkFormDictionary** data) const {
4504 if (SkPdfPrinterMarkFormDictionaryFromDictionary(dict, key, data)) return true ;
4505 if (abr == NULL || *abr == '\0') return false;
4506 return SkPdfPrinterMarkFormDictionaryFromDictionary(dict, abr, data);
4507 }
4508
4509 bool SkPdfMapper::isSeparationDictionary(const SkPdfNativeObject* nativeObj) con st {
4510 return true;
4511 }
4512
4513 bool SkPdfMapper::SkPdfSeparationDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfSeparationDictionary** data) const {
4514 const SkPdfNativeObject* value = dict->get(key);
4515 if (value == NULL) { return false; }
4516 if (data == NULL) { return true; }
4517 if (kNone_SkPdfNativeObjectType == mapSeparationDictionary(value)) return fals e;
4518 *data = (SkPdfSeparationDictionary*)value;
4519 return true;
4520 }
4521
4522 bool SkPdfMapper::SkPdfSeparationDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfSeparationDictionary** data) con st {
4523 if (SkPdfSeparationDictionaryFromDictionary(dict, key, data)) return true;
4524 if (abr == NULL || *abr == '\0') return false;
4525 return SkPdfSeparationDictionaryFromDictionary(dict, abr, data);
4526 }
4527
4528 bool SkPdfMapper::isPDF_XOutputIntentDictionary(const SkPdfNativeObject* nativeO bj) const {
4529 return true;
4530 }
4531
4532 bool SkPdfMapper::SkPdfPDF_XOutputIntentDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, SkPdfPDF_XOutputIntentDictionary** data) const {
4533 const SkPdfNativeObject* value = dict->get(key);
4534 if (value == NULL) { return false; }
4535 if (data == NULL) { return true; }
4536 if (kNone_SkPdfNativeObjectType == mapPDF_XOutputIntentDictionary(value)) retu rn false;
4537 *data = (SkPdfPDF_XOutputIntentDictionary*)value;
4538 return true;
4539 }
4540
4541 bool SkPdfMapper::SkPdfPDF_XOutputIntentDictionaryFromDictionary(const SkPdfNati veObject* dict, const char* key, const char* abr, SkPdfPDF_XOutputIntentDictiona ry** data) const {
4542 if (SkPdfPDF_XOutputIntentDictionaryFromDictionary(dict, key, data)) return tr ue;
4543 if (abr == NULL || *abr == '\0') return false;
4544 return SkPdfPDF_XOutputIntentDictionaryFromDictionary(dict, abr, data);
4545 }
4546
4547 bool SkPdfMapper::isTrapNetworkAnnotationDictionary(const SkPdfNativeObject* nat iveObj) const {
4548 return true;
4549 }
4550
4551 bool SkPdfMapper::SkPdfTrapNetworkAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, SkPdfTrapNetworkAnnotationDictionary** data ) const {
4552 const SkPdfNativeObject* value = dict->get(key);
4553 if (value == NULL) { return false; }
4554 if (data == NULL) { return true; }
4555 if (kNone_SkPdfNativeObjectType == mapTrapNetworkAnnotationDictionary(value)) return false;
4556 *data = (SkPdfTrapNetworkAnnotationDictionary*)value;
4557 return true;
4558 }
4559
4560 bool SkPdfMapper::SkPdfTrapNetworkAnnotationDictionaryFromDictionary(const SkPdf NativeObject* dict, const char* key, const char* abr, SkPdfTrapNetworkAnnotation Dictionary** data) const {
4561 if (SkPdfTrapNetworkAnnotationDictionaryFromDictionary(dict, key, data)) retur n true;
4562 if (abr == NULL || *abr == '\0') return false;
4563 return SkPdfTrapNetworkAnnotationDictionaryFromDictionary(dict, abr, data);
4564 }
4565
4566 bool SkPdfMapper::isTrapNetworkAppearanceStreamDictionary(const SkPdfNativeObjec t* nativeObj) const {
4567 return true;
4568 }
4569
4570 bool SkPdfMapper::SkPdfTrapNetworkAppearanceStreamDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, SkPdfTrapNetworkAppearanceStreamDicti onary** data) const {
4571 const SkPdfNativeObject* value = dict->get(key);
4572 if (value == NULL) { return false; }
4573 if (data == NULL) { return true; }
4574 if (kNone_SkPdfNativeObjectType == mapTrapNetworkAppearanceStreamDictionary(va lue)) return false;
4575 *data = (SkPdfTrapNetworkAppearanceStreamDictionary*)value;
4576 return true;
4577 }
4578
4579 bool SkPdfMapper::SkPdfTrapNetworkAppearanceStreamDictionaryFromDictionary(const SkPdfNativeObject* dict, const char* key, const char* abr, SkPdfTrapNetworkAppe aranceStreamDictionary** data) const {
4580 if (SkPdfTrapNetworkAppearanceStreamDictionaryFromDictionary(dict, key, data)) return true;
4581 if (abr == NULL || *abr == '\0') return false;
4582 return SkPdfTrapNetworkAppearanceStreamDictionaryFromDictionary(dict, abr, dat a);
4583 }
4584
4585 bool SkPdfMapper::isOpiVersionDictionary(const SkPdfNativeObject* nativeObj) con st {
4586 return true;
4587 }
4588
4589 bool SkPdfMapper::SkPdfOpiVersionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, SkPdfOpiVersionDictionary** data) const {
4590 const SkPdfNativeObject* value = dict->get(key);
4591 if (value == NULL) { return false; }
4592 if (data == NULL) { return true; }
4593 if (kNone_SkPdfNativeObjectType == mapOpiVersionDictionary(value)) return fals e;
4594 *data = (SkPdfOpiVersionDictionary*)value;
4595 return true;
4596 }
4597
4598 bool SkPdfMapper::SkPdfOpiVersionDictionaryFromDictionary(const SkPdfNativeObjec t* dict, const char* key, const char* abr, SkPdfOpiVersionDictionary** data) con st {
4599 if (SkPdfOpiVersionDictionaryFromDictionary(dict, key, data)) return true;
4600 if (abr == NULL || *abr == '\0') return false;
4601 return SkPdfOpiVersionDictionaryFromDictionary(dict, abr, data);
4602 }
4603
4604 bool SkPdfMapper::isMultiMasterFontDictionary(const SkPdfNativeObject* nativeObj ) const {
4605 const SkPdfNativeObject* ret = NULL;
4606 if (!nativeObj->isDictionary()) return false;
4607 ret = nativeObj->get("Subtype", "");
4608 if (ret == NULL || !ret->isName()) return false;
4609 if ((ret->nameValue2() != "MMType1")) return false;
4610
4611 return true;
4612 }
4613
4614 bool SkPdfMapper::SkPdfMultiMasterFontDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, SkPdfMultiMasterFontDictionary** data) const {
4615 const SkPdfNativeObject* value = dict->get(key);
4616 if (value == NULL) { return false; }
4617 if (data == NULL) { return true; }
4618 if (kNone_SkPdfNativeObjectType == mapMultiMasterFontDictionary(value)) return false;
4619 *data = (SkPdfMultiMasterFontDictionary*)value;
4620 return true;
4621 }
4622
4623 bool SkPdfMapper::SkPdfMultiMasterFontDictionaryFromDictionary(const SkPdfNative Object* dict, const char* key, const char* abr, SkPdfMultiMasterFontDictionary** data) const {
4624 if (SkPdfMultiMasterFontDictionaryFromDictionary(dict, key, data)) return true ;
4625 if (abr == NULL || *abr == '\0') return false;
4626 return SkPdfMultiMasterFontDictionaryFromDictionary(dict, abr, data);
4627 }
4628
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698