OLD | NEW |
| (Empty) |
1 #ifndef __DEFINED__SkPdfCatalogDictionary | |
2 #define __DEFINED__SkPdfCatalogDictionary | |
3 | |
4 #include "SkPdfEnums_autogen.h" | |
5 #include "SkPdfArray_autogen.h" | |
6 #include "SkPdfDictionary_autogen.h" | |
7 | |
8 // Entries in the catalog dictionary | |
9 class SkPdfCatalogDictionary : public SkPdfDictionary { | |
10 public: | |
11 virtual SkPdfObjectType getType() const { return kCatalogDictionary_SkPdfObjec
tType;} | |
12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCatalog
Dictionary_SkPdfObjectType + 1);} | |
13 public: | |
14 virtual SkPdfCatalogDictionary* asCatalogDictionary() {return this;} | |
15 virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return this
;} | |
16 | |
17 private: | |
18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | |
19 virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() co
nst {return NULL;} | |
20 | |
21 virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} | |
22 virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} | |
23 | |
24 virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NU
LL;} | |
25 virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() cons
t {return NULL;} | |
26 | |
27 virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {ret
urn NULL;} | |
28 virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary(
) const {return NULL;} | |
29 | |
30 virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} | |
31 virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {retur
n NULL;} | |
32 | |
33 virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsD
ictionary() {return NULL;} | |
34 virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteri
sticsDictionary() const {return NULL;} | |
35 | |
36 virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} | |
37 virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {retur
n NULL;} | |
38 | |
39 virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return
NULL;} | |
40 virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() co
nst {return NULL;} | |
41 | |
42 virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} | |
43 virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return
NULL;} | |
44 | |
45 virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return
NULL;} | |
46 virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() co
nst {return NULL;} | |
47 | |
48 virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} | |
49 virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} | |
50 | |
51 virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureEleme
ntsDictionary() {return NULL;} | |
52 virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructur
eElementsDictionary() const {return NULL;} | |
53 | |
54 virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} | |
55 virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {ret
urn NULL;} | |
56 | |
57 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary()
{return NULL;} | |
58 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDiction
ary() const {return NULL;} | |
59 | |
60 virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} | |
61 virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NU
LL;} | |
62 | |
63 virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {ret
urn NULL;} | |
64 virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary(
) const {return NULL;} | |
65 | |
66 virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL
;} | |
67 virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const
{return NULL;} | |
68 | |
69 virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} | |
70 virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} | |
71 | |
72 virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {ret
urn NULL;} | |
73 virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary(
) const {return NULL;} | |
74 | |
75 virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {retur
n NULL;} | |
76 virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary()
const {return NULL;} | |
77 | |
78 virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary(
) {return NULL;} | |
79 virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDicti
onary() const {return NULL;} | |
80 | |
81 virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL
;} | |
82 virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const
{return NULL;} | |
83 | |
84 virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} | |
85 virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {ret
urn NULL;} | |
86 | |
87 virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDiction
ary() {return NULL;} | |
88 virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataD
ictionary() const {return NULL;} | |
89 | |
90 virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return
NULL;} | |
91 virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() co
nst {return NULL;} | |
92 | |
93 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {ret
urn NULL;} | |
94 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary(
) const {return NULL;} | |
95 | |
96 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDiction
ary() {return NULL;} | |
97 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsD
ictionary() const {return NULL;} | |
98 | |
99 virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary()
{return NULL;} | |
100 virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDiction
ary() const {return NULL;} | |
101 | |
102 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionar
y() {return NULL;} | |
103 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDic
tionary() const {return NULL;} | |
104 | |
105 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {r
eturn NULL;} | |
106 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionar
y() const {return NULL;} | |
107 | |
108 virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {r
eturn NULL;} | |
109 virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionar
y() const {return NULL;} | |
110 | |
111 virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} | |
112 virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NU
LL;} | |
113 | |
114 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStr
eamDictionary() {return NULL;} | |
115 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedF
ileStreamDictionary() const {return NULL;} | |
116 | |
117 virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {retur
n NULL;} | |
118 virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary()
const {return NULL;} | |
119 | |
120 virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} | |
121 virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {retur
n NULL;} | |
122 | |
123 virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} | |
124 virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} | |
125 | |
126 virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} | |
127 virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NU
LL;} | |
128 | |
129 virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {ret
urn NULL;} | |
130 virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary(
) const {return NULL;} | |
131 | |
132 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionar
y() {return NULL;} | |
133 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDic
tionary() const {return NULL;} | |
134 | |
135 virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} | |
136 virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL
;} | |
137 | |
138 virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} | |
139 virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {ret
urn NULL;} | |
140 | |
141 virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} | |
142 virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {retur
n NULL;} | |
143 | |
144 virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} | |
145 virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} | |
146 | |
147 virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDic
tionary() {return NULL;} | |
148 virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotat
ionDictionary() const {return NULL;} | |
149 | |
150 virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {ret
urn NULL;} | |
151 virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary(
) const {return NULL;} | |
152 | |
153 virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} | |
154 virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {ret
urn NULL;} | |
155 | |
156 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} | |
157 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} | |
158 | |
159 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} | |
160 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} | |
161 | |
162 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | |
163 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} | |
164 | |
165 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | |
166 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} | |
167 | |
168 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} | |
169 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} | |
170 | |
171 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | |
172 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} | |
173 | |
174 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} | |
175 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} | |
176 | |
177 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} | |
178 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} | |
179 | |
180 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} | |
181 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} | |
182 | |
183 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} | |
184 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} | |
185 | |
186 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} | |
187 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} | |
188 | |
189 virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} | |
190 virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {retur
n NULL;} | |
191 | |
192 virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL
;} | |
193 virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const
{return NULL;} | |
194 | |
195 virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return
NULL;} | |
196 virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() co
nst {return NULL;} | |
197 | |
198 virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} | |
199 virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {retur
n NULL;} | |
200 | |
201 virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {retur
n NULL;} | |
202 virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary()
const {return NULL;} | |
203 | |
204 virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} | |
205 virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL
;} | |
206 | |
207 virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {retur
n NULL;} | |
208 virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary()
const {return NULL;} | |
209 | |
210 virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL
;} | |
211 virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const
{return NULL;} | |
212 | |
213 virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureEle
mentsDictionary() {return NULL;} | |
214 virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStruct
ureElementsDictionary() const {return NULL;} | |
215 | |
216 virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return
NULL;} | |
217 virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() co
nst {return NULL;} | |
218 | |
219 virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {retur
n NULL;} | |
220 virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary()
const {return NULL;} | |
221 | |
222 virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} | |
223 virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {retur
n NULL;} | |
224 | |
225 virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {ret
urn NULL;} | |
226 virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary(
) const {return NULL;} | |
227 | |
228 virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL
;} | |
229 virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const
{return NULL;} | |
230 | |
231 virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} | |
232 virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {r
eturn NULL;} | |
233 | |
234 virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NU
LL;} | |
235 virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() cons
t {return NULL;} | |
236 | |
237 virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL
;} | |
238 virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const
{return NULL;} | |
239 | |
240 virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedeco
deFiltersDictionary() {return NULL;} | |
241 virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFla
tedecodeFiltersDictionary() const {return NULL;} | |
242 | |
243 virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary(
) {return NULL;} | |
244 virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDicti
onary() const {return NULL;} | |
245 | |
246 virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return
NULL;} | |
247 virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() co
nst {return NULL;} | |
248 | |
249 virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDiction
ary() {return NULL;} | |
250 virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceD
ictionary() const {return NULL;} | |
251 | |
252 virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {ret
urn NULL;} | |
253 virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary(
) const {return NULL;} | |
254 | |
255 virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NU
LL;} | |
256 virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() cons
t {return NULL;} | |
257 | |
258 virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} | |
259 virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {ret
urn NULL;} | |
260 | |
261 virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return
NULL;} | |
262 virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() co
nst {return NULL;} | |
263 | |
264 virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return
NULL;} | |
265 virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() co
nst {return NULL;} | |
266 | |
267 virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} | |
268 virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} | |
269 | |
270 virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} | |
271 virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} | |
272 | |
273 virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} | |
274 virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {r
eturn NULL;} | |
275 | |
276 virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} | |
277 virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {r
eturn NULL;} | |
278 | |
279 virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NU
LL;} | |
280 virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() cons
t {return NULL;} | |
281 | |
282 virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return
NULL;} | |
283 virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() co
nst {return NULL;} | |
284 | |
285 virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} | |
286 virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {retur
n NULL;} | |
287 | |
288 virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} | |
289 virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL
;} | |
290 | |
291 virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} | |
292 virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {ret
urn NULL;} | |
293 | |
294 virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {ret
urn NULL;} | |
295 virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary(
) const {return NULL;} | |
296 | |
297 virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} | |
298 virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return
NULL;} | |
299 | |
300 virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} | |
301 virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return
NULL;} | |
302 | |
303 virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {ret
urn NULL;} | |
304 virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary(
) const {return NULL;} | |
305 | |
306 virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} | |
307 virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {retur
n NULL;} | |
308 | |
309 virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} | |
310 virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return
NULL;} | |
311 | |
312 virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} | |
313 virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {r
eturn NULL;} | |
314 | |
315 virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return
NULL;} | |
316 virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() co
nst {return NULL;} | |
317 | |
318 virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionar
y() {return NULL;} | |
319 virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDic
tionary() const {return NULL;} | |
320 | |
321 virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return
NULL;} | |
322 virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() co
nst {return NULL;} | |
323 | |
324 virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {retur
n NULL;} | |
325 virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary()
const {return NULL;} | |
326 | |
327 virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} | |
328 virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return
NULL;} | |
329 | |
330 virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {retur
n NULL;} | |
331 virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary()
const {return NULL;} | |
332 | |
333 virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return
NULL;} | |
334 virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() co
nst {return NULL;} | |
335 | |
336 virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} | |
337 virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NU
LL;} | |
338 | |
339 virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionar
y() {return NULL;} | |
340 virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDic
tionary() const {return NULL;} | |
341 | |
342 virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} | |
343 virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {retur
n NULL;} | |
344 | |
345 virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} | |
346 virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL
;} | |
347 | |
348 virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} | |
349 virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {r
eturn NULL;} | |
350 | |
351 virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} | |
352 virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {r
eturn NULL;} | |
353 | |
354 virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} | |
355 virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {r
eturn NULL;} | |
356 | |
357 virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} | |
358 virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {r
eturn NULL;} | |
359 | |
360 virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} | |
361 virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {r
eturn NULL;} | |
362 | |
363 virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} | |
364 virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {r
eturn NULL;} | |
365 | |
366 virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} | |
367 virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return
NULL;} | |
368 | |
369 virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} | |
370 virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NU
LL;} | |
371 | |
372 virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL
;} | |
373 virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const
{return NULL;} | |
374 | |
375 virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} | |
376 virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {ret
urn NULL;} | |
377 | |
378 virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return
NULL;} | |
379 virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() co
nst {return NULL;} | |
380 | |
381 virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} | |
382 virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {ret
urn NULL;} | |
383 | |
384 virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {ret
urn NULL;} | |
385 virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary(
) const {return NULL;} | |
386 | |
387 virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NU
LL;} | |
388 virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() cons
t {return NULL;} | |
389 | |
390 virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDicti
onary() {return NULL;} | |
391 virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandle
rDictionary() const {return NULL;} | |
392 | |
393 virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {ret
urn NULL;} | |
394 virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary(
) const {return NULL;} | |
395 | |
396 virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} | |
397 virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {r
eturn NULL;} | |
398 | |
399 virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDiction
ary() {return NULL;} | |
400 virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessD
ictionary() const {return NULL;} | |
401 | |
402 virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {retur
n NULL;} | |
403 virtual const SkPdfStructureElementDictionary* asStructureElementDictionary()
const {return NULL;} | |
404 | |
405 virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {ret
urn NULL;} | |
406 virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary(
) const {return NULL;} | |
407 | |
408 virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {retur
n NULL;} | |
409 virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary()
const {return NULL;} | |
410 | |
411 virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return
NULL;} | |
412 virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() co
nst {return NULL;} | |
413 | |
414 virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NU
LL;} | |
415 virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() cons
t {return NULL;} | |
416 | |
417 virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} | |
418 virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return
NULL;} | |
419 | |
420 virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} | |
421 virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {r
eturn NULL;} | |
422 | |
423 virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} | |
424 virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} | |
425 | |
426 virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} | |
427 virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {retur
n NULL;} | |
428 | |
429 virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {ret
urn NULL;} | |
430 virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary(
) const {return NULL;} | |
431 | |
432 virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionar
y() {return NULL;} | |
433 virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDic
tionary() const {return NULL;} | |
434 | |
435 virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStr
eamDictionary() {return NULL;} | |
436 virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppeara
nceStreamDictionary() const {return NULL;} | |
437 | |
438 virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL
;} | |
439 virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const
{return NULL;} | |
440 | |
441 virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NU
LL;} | |
442 virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() cons
t {return NULL;} | |
443 | |
444 virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NU
LL;} | |
445 virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() cons
t {return NULL;} | |
446 | |
447 virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL
;} | |
448 virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const
{return NULL;} | |
449 | |
450 virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} | |
451 virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {r
eturn NULL;} | |
452 | |
453 virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL
;} | |
454 virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const
{return NULL;} | |
455 | |
456 virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} | |
457 virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {r
eturn NULL;} | |
458 | |
459 virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL
;} | |
460 virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const
{return NULL;} | |
461 | |
462 virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL
;} | |
463 virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const
{return NULL;} | |
464 | |
465 virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL
;} | |
466 virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const
{return NULL;} | |
467 | |
468 virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} | |
469 virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return
NULL;} | |
470 | |
471 virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} | |
472 virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} | |
473 | |
474 virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} | |
475 virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NU
LL;} | |
476 | |
477 virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {ret
urn NULL;} | |
478 virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary(
) const {return NULL;} | |
479 | |
480 virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {ret
urn NULL;} | |
481 virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary(
) const {return NULL;} | |
482 | |
483 virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {ret
urn NULL;} | |
484 virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary(
) const {return NULL;} | |
485 | |
486 virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsD
ictionary() {return NULL;} | |
487 virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSet
tingsDictionary() const {return NULL;} | |
488 | |
489 virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} | |
490 virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {retur
n NULL;} | |
491 | |
492 virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {r
eturn NULL;} | |
493 virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionar
y() const {return NULL;} | |
494 | |
495 virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionar
y() {return NULL;} | |
496 virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDic
tionary() const {return NULL;} | |
497 | |
498 virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {ret
urn NULL;} | |
499 virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary(
) const {return NULL;} | |
500 | |
501 virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {retur
n NULL;} | |
502 virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary()
const {return NULL;} | |
503 | |
504 virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary()
{return NULL;} | |
505 virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDiction
ary() const {return NULL;} | |
506 | |
507 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} | |
508 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL
;} | |
509 | |
510 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} | |
511 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} | |
512 | |
513 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} | |
514 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return
NULL;} | |
515 | |
516 public: | |
517 private: | |
518 public: | |
519 SkPdfCatalogDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject
* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | |
520 | |
521 virtual bool valid() const {return true;} | |
522 | |
523 SkPdfCatalogDictionary& operator=(const SkPdfCatalogDictionary& from) {this->f
PodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | |
524 | |
525 /** (Required) The type of PDF object that this dictionary describes; must | |
526 * be Catalog for the catalog dictionary. | |
527 **/ | |
528 bool has_Type() const { | |
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); | |
530 } | |
531 | |
532 std::string Type() const { | |
533 std::string ret; | |
534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "",
&ret)) return ret; | |
535 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
536 return ""; | |
537 } | |
538 | |
539 /** (Optional; PDF 1.4) The version of the PDF specification to which the | |
540 * document conforms (for example, 1.4), if later than the version specified | |
541 * in the file's header (see Section 3.4.1, "File Header"). If the header speci
- | |
542 * fies a later version, or if this entry is absent, the document conforms to | |
543 * the version specified in the header. This entry enables a PDF producer | |
544 * application to update the version using an incremental update; see Sec- | |
545 * tion 3.4.5, "Incremental Updates." (See implementation note 18 in Ap- | |
546 * pendix H.) | |
547 * Note: The value of this entry is a name object, not a number, and so must | |
548 * be preceded by a slash character (/) when written in the PDF file (for ex- | |
549 * ample, /1.4). | |
550 **/ | |
551 bool has_Version() const { | |
552 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Versi
on", "", NULL)); | |
553 } | |
554 | |
555 std::string Version() const { | |
556 std::string ret; | |
557 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "
", &ret)) return ret; | |
558 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
559 return ""; | |
560 } | |
561 | |
562 /** (Required; must be an indirect reference) The page tree node that is the | |
563 * root of the document's page tree (see Section 3.6.2, "Page Tree"). | |
564 **/ | |
565 bool has_Pages() const { | |
566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages
", "", NULL)); | |
567 } | |
568 | |
569 SkPdfDictionary* Pages() const { | |
570 SkPdfDictionary* ret; | |
571 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages
", "", &ret)) return ret; | |
572 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
573 return NULL; | |
574 } | |
575 | |
576 /** (Optional; PDF 1.3) A number tree (see Section 3.8.5, "Number Trees") | |
577 * defining the page labeling for the document. The keys in this tree are | |
578 * page indices; the corresponding values are page label dictionaries (see | |
579 * Section 8.3.1, "Page Labels"). Each page index denotes the first page in a | |
580 * labeling range to which the specified page label dictionary applies. The | |
581 * tree must include a value for page index 0. | |
582 **/ | |
583 bool has_PageLabels() const { | |
584 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageL
abels", "", NULL)); | |
585 } | |
586 | |
587 bool isPageLabelsANumber() const { | |
588 SkPdfObject* ret = NULL; | |
589 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabe
ls", "", &ret)) return false; | |
590 return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->G
etDataType() == ePdfDataType_Number; | |
591 } | |
592 | |
593 double getPageLabelsAsNumber() const { | |
594 double ret = 0; | |
595 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabel
s", "", &ret)) return ret; | |
596 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
597 return 0; | |
598 } | |
599 | |
600 bool isPageLabelsATree() const { | |
601 SkPdfObject* ret = NULL; | |
602 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabe
ls", "", &ret)) return false; | |
603 return ret->podofo()->GetDataType() == ePdfDataType_Reference; | |
604 } | |
605 | |
606 SkPdfTree* getPageLabelsAsTree() const { | |
607 SkPdfTree* ret = NULL; | |
608 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels"
, "", &ret)) return ret; | |
609 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
610 return NULL; | |
611 } | |
612 | |
613 /** (Optional; PDF 1.2) The document's name dictionary (see Section 3.6.3, | |
614 * "Name Dictionary"). | |
615 **/ | |
616 bool has_Names() const { | |
617 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names
", "", NULL)); | |
618 } | |
619 | |
620 SkPdfDictionary* Names() const { | |
621 SkPdfDictionary* ret; | |
622 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names
", "", &ret)) return ret; | |
623 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
624 return NULL; | |
625 } | |
626 | |
627 /** (Optional; PDF 1.1; must be an indirect reference) A dictionary of names | |
628 * and corresponding destinations (see "Named Destinations" on page | |
629 * 476). | |
630 **/ | |
631 bool has_Dests() const { | |
632 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests
", "", NULL)); | |
633 } | |
634 | |
635 SkPdfDictionary* Dests() const { | |
636 SkPdfDictionary* ret; | |
637 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests
", "", &ret)) return ret; | |
638 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
639 return NULL; | |
640 } | |
641 | |
642 /** (Optional; PDF 1.2) A viewer preferences dictionary (see Section 8.1, | |
643 * "Viewer Preferences") specifying the way the document is to be dis- | |
644 * played on the screen. If this entry is absent, viewer applications should | |
645 * use their own current user preference settings. | |
646 **/ | |
647 bool has_ViewerPreferences() const { | |
648 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Viewe
rPreferences", "", NULL)); | |
649 } | |
650 | |
651 SkPdfDictionary* ViewerPreferences() const { | |
652 SkPdfDictionary* ret; | |
653 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Viewe
rPreferences", "", &ret)) return ret; | |
654 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
655 return NULL; | |
656 } | |
657 | |
658 /** (Optional) A name object specifying the page layout to be used when the | |
659 * document is opened: | |
660 * SinglePage Display one page at a time. | |
661 * OneColumn Display the pages in one column. | |
662 * TwoColumnLeft Display the pages in two columns, with odd- | |
663 * numbered pages on the left. | |
664 * TwoColumnRight Display the pages in two columns, with odd- | |
665 * numbered pages on the right. | |
666 * (See implementation note 19 in Appendix H.) Default value: SinglePage. | |
667 **/ | |
668 bool has_PageLayout() const { | |
669 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageL
ayout", "", NULL)); | |
670 } | |
671 | |
672 std::string PageLayout() const { | |
673 std::string ret; | |
674 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLayout"
, "", &ret)) return ret; | |
675 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
676 return ""; | |
677 } | |
678 | |
679 /** (Optional) A name object specifying how the document should be dis- | |
680 * played when opened: | |
681 * UseNone Neither document outline nor thumbnail im- | |
682 * ages visible | |
683 * UseOutlines Document outline visible | |
684 * UseThumbs Thumbnail images visible | |
685 * FullScreen Full-screen mode, with no menu bar, window | |
686 * controls, or any other window visible | |
687 * Default value: UseNone. | |
688 **/ | |
689 bool has_PageMode() const { | |
690 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageM
ode", "", NULL)); | |
691 } | |
692 | |
693 std::string PageMode() const { | |
694 std::string ret; | |
695 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageMode",
"", &ret)) return ret; | |
696 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
697 return ""; | |
698 } | |
699 | |
700 /** (Optional; must be an indirect reference) The outline dictionary that is the | |
701 * root of the document's outline hierarchy (see Section 8.2.2, "Document | |
702 * Outline"). | |
703 **/ | |
704 bool has_Outlines() const { | |
705 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outli
nes", "", NULL)); | |
706 } | |
707 | |
708 SkPdfDictionary* Outlines() const { | |
709 SkPdfDictionary* ret; | |
710 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outli
nes", "", &ret)) return ret; | |
711 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
712 return NULL; | |
713 } | |
714 | |
715 /** (Optional; PDF 1.1; must be an indirect reference) An array of thread | |
716 * dictionaries representing the document's article threads (see Section | |
717 * 8.3.2, "Articles"). | |
718 **/ | |
719 bool has_Threads() const { | |
720 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Threa
ds", "", NULL)); | |
721 } | |
722 | |
723 SkPdfArray Threads() const { | |
724 SkPdfArray ret; | |
725 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Threads",
"", &ret)) return ret; | |
726 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
727 return SkPdfArray(); | |
728 } | |
729 | |
730 /** (Optional; PDF 1.1) A value specifying a destination to be displayed or | |
731 * an action to be performed when the document is opened. The value is | |
732 * either an array defining a destination (see Section 8.2.1, "Destinations") | |
733 * or an action dictionary representing an action (Section 8.5, "Actions"). If | |
734 * this entry is absent, the document should be opened to the top of the | |
735 * first page at the default magnification factor. | |
736 **/ | |
737 bool has_OpenAction() const { | |
738 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenA
ction", "", NULL)); | |
739 } | |
740 | |
741 bool isOpenActionAArray() const { | |
742 SkPdfObject* ret = NULL; | |
743 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenActi
on", "", &ret)) return false; | |
744 return ret->podofo()->GetDataType() == ePdfDataType_Array; | |
745 } | |
746 | |
747 SkPdfArray getOpenActionAsArray() const { | |
748 SkPdfArray ret = SkPdfArray(); | |
749 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction
", "", &ret)) return ret; | |
750 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
751 return SkPdfArray(); | |
752 } | |
753 | |
754 bool isOpenActionADictionary() const { | |
755 SkPdfObject* ret = NULL; | |
756 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenActi
on", "", &ret)) return false; | |
757 return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; | |
758 } | |
759 | |
760 SkPdfDictionary* getOpenActionAsDictionary() const { | |
761 SkPdfDictionary* ret = NULL; | |
762 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenA
ction", "", &ret)) return ret; | |
763 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
764 return NULL; | |
765 } | |
766 | |
767 /** (Optional; PDF 1.4) An additional-actions dictionary defining the actions | |
768 * to be taken in response to various trigger events affecting the document | |
769 * as a whole (see "Trigger Events" on page 514). (See also implementation | |
770 * note 20 in Appendix H.) | |
771 **/ | |
772 bool has_AA() const { | |
773 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA",
"", NULL)); | |
774 } | |
775 | |
776 SkPdfDictionary* AA() const { | |
777 SkPdfDictionary* ret; | |
778 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA",
"", &ret)) return ret; | |
779 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
780 return NULL; | |
781 } | |
782 | |
783 /** (Optional) A URI dictionary containing document-level information for | |
784 * URI (uniform resource identifier) actions (see "URI Actions" on page | |
785 * 523). | |
786 **/ | |
787 bool has_URI() const { | |
788 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI",
"", NULL)); | |
789 } | |
790 | |
791 SkPdfDictionary* URI() const { | |
792 SkPdfDictionary* ret; | |
793 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI",
"", &ret)) return ret; | |
794 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
795 return NULL; | |
796 } | |
797 | |
798 /** (Optional; PDF 1.2) The document's interactive form (AcroForm) dic- | |
799 * tionary (see Section 8.6.1, "Interactive Form Dictionary"). | |
800 **/ | |
801 bool has_AcroForm() const { | |
802 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AcroF
orm", "", NULL)); | |
803 } | |
804 | |
805 SkPdfDictionary* AcroForm() const { | |
806 SkPdfDictionary* ret; | |
807 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AcroF
orm", "", &ret)) return ret; | |
808 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
809 return NULL; | |
810 } | |
811 | |
812 /** (Optional; PDF 1.4; must be an indirect reference) A metadata stream | |
813 * containing metadata for the document (see Section 9.2.2, "Metadata | |
814 * Streams"). | |
815 **/ | |
816 bool has_Metadata() const { | |
817 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad
ata", "", NULL)); | |
818 } | |
819 | |
820 SkPdfStream* Metadata() const { | |
821 SkPdfStream* ret; | |
822 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata"
, "", &ret)) return ret; | |
823 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
824 return NULL; | |
825 } | |
826 | |
827 /** (Optional; PDF 1.3) The document's structure tree root dictionary (see | |
828 * Section 9.6.1, "Structure Hierarchy"). | |
829 **/ | |
830 bool has_StructTreeRoot() const { | |
831 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc
tTreeRoot", "", NULL)); | |
832 } | |
833 | |
834 SkPdfDictionary* StructTreeRoot() const { | |
835 SkPdfDictionary* ret; | |
836 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc
tTreeRoot", "", &ret)) return ret; | |
837 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
838 return NULL; | |
839 } | |
840 | |
841 /** (Optional; PDF 1.4) A mark information dictionary containing informa- | |
842 * tion about the document's usage of Tagged PDF conventions (see Sec- | |
843 * tion 9.7.1, "Mark Information Dictionary"). | |
844 **/ | |
845 bool has_MarkInfo() const { | |
846 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkI
nfo", "", NULL)); | |
847 } | |
848 | |
849 SkPdfDictionary* MarkInfo() const { | |
850 SkPdfDictionary* ret; | |
851 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkI
nfo", "", &ret)) return ret; | |
852 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
853 return NULL; | |
854 } | |
855 | |
856 /** (Optional; PDF 1.4) A language identifier specifying the natural language | |
857 * for all text in the document except where overridden by language speci- | |
858 * fications for structure elements or marked content (see Section 9.8.1, | |
859 * "Natural Language Specification"). If this entry is absent, the language is | |
860 * considered unknown. | |
861 **/ | |
862 bool has_Lang() const { | |
863 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang"
, "", NULL)); | |
864 } | |
865 | |
866 std::string Lang() const { | |
867 std::string ret; | |
868 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", ""
, &ret)) return ret; | |
869 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
870 return ""; | |
871 } | |
872 | |
873 /** (Optional; PDF 1.3) A Web Capture information dictionary containing | |
874 * state information used by the Acrobat Web Capture (AcroSpider) plug- | |
875 * in extension (see Section 9.9.1, "Web Capture Information Dictionary"). | |
876 **/ | |
877 bool has_SpiderInfo() const { | |
878 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Spide
rInfo", "", NULL)); | |
879 } | |
880 | |
881 SkPdfDictionary* SpiderInfo() const { | |
882 SkPdfDictionary* ret; | |
883 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Spide
rInfo", "", &ret)) return ret; | |
884 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
885 return NULL; | |
886 } | |
887 | |
888 /** (Optional; PDF 1.4) An array of output intent dictionaries describing the | |
889 * color characteristics of output devices on which the document might be | |
890 * rendered (see "Output Intents" on page 684). | |
891 **/ | |
892 bool has_OutputIntents() const { | |
893 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outpu
tIntents", "", NULL)); | |
894 } | |
895 | |
896 SkPdfArray OutputIntents() const { | |
897 SkPdfArray ret; | |
898 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputInte
nts", "", &ret)) return ret; | |
899 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
900 return SkPdfArray(); | |
901 } | |
902 | |
903 }; | |
904 | |
905 #endif // __DEFINED__SkPdfCatalogDictionary | |
OLD | NEW |