blob: 01f78fb1991278c08b1c7608e95930c4ea4b5d9e [file] [log] [blame]
edisonn@google.com29247622013-06-18 16:28:29 +00001#ifndef __DEFINED__SkPdfBlockLevelStructureElementsDictionary
2#define __DEFINED__SkPdfBlockLevelStructureElementsDictionary
3
edisonn@google.comb857a0c2013-06-25 20:45:40 +00004#include "SkPdfUtils.h"
edisonn@google.com29247622013-06-18 16:28:29 +00005#include "SkPdfEnums_autogen.h"
6#include "SkPdfArray_autogen.h"
7#include "SkPdfDictionary_autogen.h"
8
edisonn@google.comafe5e9e2013-06-19 17:42:17 +00009// Additional standard layout attributes specific to block-level structure elements
edisonn@google.com29247622013-06-18 16:28:29 +000010class SkPdfBlockLevelStructureElementsDictionary : public SkPdfDictionary {
11public:
edisonn@google.com59543d32013-06-18 22:00:40 +000012 virtual SkPdfObjectType getType() const { return kBlockLevelStructureElementsDictionary_SkPdfObjectType;}
13 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBlockLevelStructureElementsDictionary_SkPdfObjectType + 1);}
edisonn@google.com29247622013-06-18 16:28:29 +000014public:
15 virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return this;}
16 virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return this;}
17
18private:
19 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
20 virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;}
21
22 virtual SkPdfActionDictionary* asActionDictionary() {return NULL;}
23 virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;}
24
25 virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;}
26 virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;}
27
28 virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;}
29 virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;}
30
31 virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;}
32 virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;}
33
34 virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;}
35 virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;}
36
37 virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;}
38 virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;}
39
40 virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;}
41 virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;}
42
43 virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;}
44 virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;}
45
46 virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;}
47 virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;}
48
49 virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;}
50 virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;}
51
52 virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;}
53 virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;}
54
55 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;}
56 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;}
57
58 virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;}
59 virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;}
60
61 virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;}
62 virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;}
63
edisonn@google.com6e49c342013-06-27 20:03:43 +000064 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
65 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
66
edisonn@google.com29247622013-06-18 16:28:29 +000067 virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;}
68 virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;}
69
70 virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;}
71 virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;}
72
73 virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;}
74 virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;}
75
76 virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;}
77 virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;}
78
79 virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;}
80 virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;}
81
82 virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;}
83 virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;}
84
85 virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;}
86 virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;}
87
88 virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;}
89 virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;}
90
91 virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;}
92 virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;}
93
94 virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;}
95 virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;}
96
97 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;}
98 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;}
99
100 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;}
101 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;}
102
103 virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;}
104 virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;}
105
106 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;}
107 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;}
108
109 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;}
110 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;}
111
112 virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;}
113 virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;}
114
115 virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;}
116 virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;}
117
118 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;}
119 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;}
120
121 virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;}
122 virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;}
123
124 virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;}
125 virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;}
126
127 virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;}
128 virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;}
129
130 virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;}
131 virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;}
132
133 virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;}
134 virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;}
135
136 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;}
137 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;}
138
139 virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;}
140 virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;}
141
142 virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;}
143 virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;}
144
145 virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;}
146 virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;}
147
148 virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;}
149 virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;}
150
151 virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;}
152 virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;}
153
154 virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;}
155 virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;}
156
157 virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;}
158 virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;}
159
160 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;}
161 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;}
162
163 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
164 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
165
edisonn@google.com29247622013-06-18 16:28:29 +0000166 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
167 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
168
169 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
170 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
171
172 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
173 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
174
edisonn@google.comff278442013-06-21 21:03:15 +0000175 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
176 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
edisonn@google.com29247622013-06-18 16:28:29 +0000177
edisonn@google.comb857a0c2013-06-25 20:45:40 +0000178 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
179 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
180
edisonn@google.com29247622013-06-18 16:28:29 +0000181 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;}
182 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
183
184 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;}
185 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;}
186
187 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;}
188 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;}
189
190 virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;}
191 virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;}
192
193 virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;}
194 virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;}
195
196 virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;}
197 virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;}
198
199 virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;}
200 virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;}
201
202 virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;}
203 virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;}
204
205 virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;}
206 virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;}
207
208 virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;}
209 virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;}
210
211 virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;}
212 virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;}
213
214 virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;}
215 virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;}
216
217 virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;}
218 virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;}
219
220 virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;}
221 virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;}
222
223 virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;}
224 virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;}
225
226 virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;}
227 virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;}
228
229 virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;}
230 virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;}
231
232 virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;}
233 virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;}
234
235 virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;}
236 virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;}
237
238 virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;}
239 virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;}
240
241 virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;}
242 virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;}
243
244 virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;}
245 virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;}
246
247 virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;}
248 virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;}
249
250 virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;}
251 virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;}
252
253 virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;}
254 virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;}
255
256 virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;}
257 virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;}
258
259 virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;}
260 virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;}
261
262 virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;}
263 virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;}
264
265 virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;}
266 virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;}
267
268 virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;}
269 virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;}
270
271 virtual SkPdfNameDictionary* asNameDictionary() {return NULL;}
272 virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;}
273
274 virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;}
275 virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;}
276
277 virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;}
278 virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;}
279
280 virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;}
281 virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;}
282
283 virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;}
284 virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;}
285
286 virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;}
287 virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;}
288
289 virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;}
290 virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;}
291
292 virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;}
293 virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;}
294
295 virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;}
296 virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;}
297
298 virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;}
299 virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;}
300
301 virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;}
302 virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;}
303
304 virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;}
305 virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;}
306
307 virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;}
308 virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;}
309
310 virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;}
311 virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;}
312
313 virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;}
314 virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;}
315
316 virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;}
317 virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;}
318
319 virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;}
320 virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;}
321
322 virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;}
323 virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;}
324
325 virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;}
326 virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;}
327
328 virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;}
329 virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;}
330
331 virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;}
332 virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;}
333
334 virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;}
335 virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;}
336
337 virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;}
338 virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;}
339
340 virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;}
341 virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;}
342
343 virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;}
344 virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;}
345
346 virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;}
347 virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;}
348
349 virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;}
350 virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;}
351
352 virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;}
353 virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;}
354
355 virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;}
356 virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;}
357
358 virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;}
359 virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;}
360
361 virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;}
362 virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;}
363
364 virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;}
365 virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;}
366
367 virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;}
368 virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;}
369
370 virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;}
371 virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;}
372
373 virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;}
374 virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;}
375
376 virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;}
377 virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;}
378
379 virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;}
380 virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;}
381
382 virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;}
383 virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;}
384
385 virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;}
386 virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;}
387
388 virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;}
389 virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;}
390
391 virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;}
392 virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;}
393
394 virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;}
395 virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;}
396
397 virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;}
398 virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;}
399
400 virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;}
401 virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;}
402
403 virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;}
404 virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;}
405
406 virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;}
407 virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;}
408
409 virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;}
410 virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;}
411
412 virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;}
413 virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;}
414
415 virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;}
416 virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;}
417
418 virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;}
419 virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;}
420
421 virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;}
422 virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;}
423
424 virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;}
425 virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;}
426
427 virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;}
428 virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;}
429
430 virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;}
431 virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;}
432
433 virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;}
434 virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;}
435
436 virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;}
437 virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;}
438
439 virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;}
440 virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;}
441
442 virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;}
443 virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;}
444
445 virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;}
446 virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;}
447
448 virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;}
449 virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;}
450
451 virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;}
452 virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;}
453
454 virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;}
455 virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;}
456
457 virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;}
458 virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;}
459
460 virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;}
461 virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;}
462
463 virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;}
464 virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;}
465
466 virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;}
467 virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;}
468
469 virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;}
470 virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;}
471
472 virtual SkPdfURIDictionary* asURIDictionary() {return NULL;}
473 virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;}
474
475 virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;}
476 virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;}
477
478 virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;}
479 virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;}
480
481 virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;}
482 virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;}
483
484 virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;}
485 virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;}
486
487 virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;}
488 virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;}
489
490 virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;}
491 virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;}
492
493 virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;}
494 virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;}
495
496 virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;}
497 virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;}
498
499 virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;}
500 virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;}
501
502 virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;}
503 virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;}
504
505 virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;}
506 virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;}
507
508 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;}
509 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;}
510
511 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;}
512 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;}
513
514 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;}
515 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;}
516
517public:
518private:
519public:
520 SkPdfBlockLevelStructureElementsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
521
edisonn@google.comb857a0c2013-06-25 20:45:40 +0000522 SkPdfBlockLevelStructureElementsDictionary(const SkPdfBlockLevelStructureElementsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {}
523
edisonn@google.com29247622013-06-18 16:28:29 +0000524 virtual bool valid() const {return true;}
525
526 SkPdfBlockLevelStructureElementsDictionary& operator=(const SkPdfBlockLevelStructureElementsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
527
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000528/** (Optional) The amount of extra space preceding the before edge of the BLSE,
529 * measured in default user space units in the block-progression direction. This
530 * value is added to any adjustments induced by the LineHeight attributes of
531 * ILSEs within the first line of the BLSE (see "Layout Attributes for ILSEs" on
532 * page 646). If the preceding BLSE has a SpaceAfter attribute, the greater of the
533 * two attribute values is used. Default value: 0.
534 * Note: This attribute is disregarded for the first BLSE placed in a given reference
535 * area.
536**/
537 bool has_SpaceBefore() const {
538 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceBefore", "", NULL));
539 }
540
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000541 double SpaceBefore() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000542/** (Optional) The amount of extra space following the after edge of the BLSE,
543 * measured in default user space units in the block-progression direction. This
544 * value is added to any adjustments induced by the LineHeight attributes of
545 * ILSEs within the last line of the BLSE (see "Layout Attributes for ILSEs" on
546 * page 646). If the following BLSE has a SpaceBefore attribute, the greater of
547 * the two attribute values is used. Default value: 0.
548 * Note: This attribute is disregarded for the last BLSE placed in a given reference
549 * area.
550**/
551 bool has_SpaceAfter() const {
552 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceAfter", "", NULL));
553 }
554
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000555 double SpaceAfter() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000556/** (Optional) The distance from the start edge of the reference area to that of the
557 * BLSE, measured in default user space units in the inline-progression direc-
558 * tion. This attribute applies only to structure elements with a Placement
559 * attribute of Block or Start (see "General Layout Attributes" on page 640); it is
560 * disregarded for those with other Placement values. Default value: 0.
561 * Note: A negative value for this attribute places the start edge of the BLSE out-
562 * side that of the reference area. The results are implementation-dependent and
563 * may not be supported by all Tagged PDF consumer applications or export
564 * formats.
565 * Note: If a structure element with a StartIndent attribute is placed adjacent to a
566 * floating element with a Placement attribute of Start, the actual value used for
567 * the element's starting indent will be its own StartIndent attribute or the inline
568 * extent of the adjacent floating element, whichever is greater. This value may
569 * then be further adjusted by the element's TextIndent attribute, if any.
570**/
571 bool has_StartIndent() const {
572 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StartIndent", "", NULL));
573 }
574
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000575 double StartIndent() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000576/** (Optional) The distance from the end edge of the BLSE to that of the ref-
577 * erence area, measured in default user space units in the inline-progression
578 * direction. This attribute applies only to structure elements with a Placement
579 * attribute of Block or End (see "General Layout Attributes" on page 640); it is
580 * disregarded for those with other Placement values. Default value: 0.
581 * Note: A negative value for this attribute places the end edge of the BLSE outside
582 * that of the reference area. The results are implementation-dependent and may
583 * not be supported by all Tagged PDF consumer applications or export formats.
584 * Note: If a structure element with an EndIndent attribute is placed adjacent to a
585 * floating element with a Placement attribute of End, the actual value used for the
586 * element's ending indent will be its own EndIndent attribute or the inline extent
587 * of the adjacent floating element, whichever is greater.
588**/
589 bool has_EndIndent() const {
590 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndIndent", "", NULL));
591 }
592
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000593 double EndIndent() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000594/** (Optional; applies only to some BLSEs, as described below) The additional
595 * distance, measured in default user space units in the inline-progression
596 * direction, from the start edge of the BLSE, as specified by StartIndent
597 * (above), to that of the first line of text. A negative value indicates a hanging
598 * indent. Default value: 0.
599 * This attribute applies only to paragraphlike BLSEs and those of structure
600 * types Lbl (Label), LBody (List body), TH (Table header), and TD (Table data),
601 * provided that they contain content other than nested BLSEs.
602**/
603 bool has_TextIndent() const {
604 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextIndent", "", NULL));
605 }
606
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000607 double TextIndent() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000608/** (Optional; applies only to BLSEs containing text) The alignment, in the inline-
609 * progression direction, of text and other content within lines of the BLSE:
610 * Start Aligned with the start edge.
611 * Center Centered between the start and end edges.
612 * End Aligned with the end edge.
613 * Justify Aligned with both the start and end edges, with internal
614 * spacing within each line expanded, if necessary, to achieve
615 * such alignment. The last (or only) line is aligned with the
616 * start edge only, as for Start (above).
617 * Default value: Start.
618**/
619 bool has_TextAlign() const {
620 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextAlign", "", NULL));
621 }
622
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000623 std::string TextAlign() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000624/** (Illustrations and tables only; required if the element appears in its entirety on a
625 * single page) An array of four numbers in default user space units giving the
626 * coordinates of the left, bottom, right, and top edges, respectively, of the ele-
627 * ment's bounding box (the rectangle that completely encloses its visible con-
628 * tent). This attribute applies only to elements of structure type Figure,
629 * Formula, Form, or Table.
630**/
631 bool has_BBox() const {
632 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL));
633 }
634
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000635 SkRect* BBox() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000636/** (Optional; illustrations, tables, table headers, and table cells only; strongly
637 * recommended for table cells) The desired width of the element's content
638 * rectangle (see "Content and Allocation Rectangles" on page 648), measured
639 * in default user space units in the inline-progression direction. This attribute
640 * applies only to elements of structure type Figure, Formula, Form, Table, TH
641 * (Table header), or TD (Table data).
642 * The name Auto in place of a numeric value indicates that no specific width
643 * constraint is to be imposed; the element's width is determined by the intrin-
644 * sic width of its content. Default value: Auto.
645**/
646 bool has_Width() const {
647 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL));
648 }
649
edisonn@google.com29247622013-06-18 16:28:29 +0000650 bool isWidthANumber() const {
651 SkPdfObject* ret = NULL;
652 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return false;
edisonn@google.com59543d32013-06-18 22:00:40 +0000653 return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
edisonn@google.com29247622013-06-18 16:28:29 +0000654 }
655
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000656 double getWidthAsNumber() const;
edisonn@google.com29247622013-06-18 16:28:29 +0000657 bool isWidthAName() const {
658 SkPdfObject* ret = NULL;
659 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return false;
660 return ret->podofo()->GetDataType() == ePdfDataType_Name;
661 }
662
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000663 std::string getWidthAsName() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000664/** (Optional; illustrations, tables, table headers, and table cells only) The desired
665 * height of the element's content rectangle (see "Content and Allocation
666 * Rectangles" on page 648), measured in default user space units in the block-
667 * progression direction. This attribute applies only to elements of structure
668 * type Figure, Formula, Form, Table, TH (Table header), or TD (Table data).
669 * The name Auto in place of a numeric value indicates that no specific height
670 * constraint is to be imposed; the element's height is determined by the intrin-
671 * sic height of its content. Default value: Auto.
672**/
673 bool has_Height() const {
674 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL));
675 }
676
edisonn@google.com29247622013-06-18 16:28:29 +0000677 bool isHeightANumber() const {
678 SkPdfObject* ret = NULL;
679 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return false;
edisonn@google.com59543d32013-06-18 22:00:40 +0000680 return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
edisonn@google.com29247622013-06-18 16:28:29 +0000681 }
682
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000683 double getHeightAsNumber() const;
edisonn@google.com29247622013-06-18 16:28:29 +0000684 bool isHeightAName() const {
685 SkPdfObject* ret = NULL;
686 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return false;
687 return ret->podofo()->GetDataType() == ePdfDataType_Name;
688 }
689
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000690 std::string getHeightAsName() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000691/** (Optional; table cells only) The alignment, in the block-progression direction,
692 * of content within the table cell:
693 * Before Before edge of the first child's allocation rectangle aligned
694 * with that of the table cell's content rectangle.
695 * Middle Children centered within the table cell, so that the distance
696 * between the before edge of the first child's allocation rec-
697 * tangle and that of the table cell's content rectangle is the same
698 * as the distance between the after edge of the last child's allo-
699 * cation rectangle and that of the table cell's content rectangle.
700 * After After edge of the last child's allocation rectangle aligned with
701 * that of the table cell's content rectangle.
702 * Justify Children aligned with both the before and after edges of the
703 * table cell's content rectangle. The first child is placed as
704 * described above for Before and the last child as described for
705 * After, with equal spacing between the children. If there is only
706 * one child, it is aligned with the before edge only, as for Before.
707 * This attribute applies only to elements of structure type TH (Table header) or
708 * TD (Table data), and controls the placement of all BLSEs that are children of
709 * the given element. The table cell's content rectangle (see "Content and Allo-
710 * cation Rectangles" on page 648) becomes the reference area for all of its
711 * descendants. Default value: Before.
712**/
713 bool has_BlockAlign() const {
714 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlockAlign", "", NULL));
715 }
716
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000717 std::string BlockAlign() const;
edisonn@google.comafe5e9e2013-06-19 17:42:17 +0000718/** (Optional; table cells only) The alignment, in the inline-progression direction,
719 * of content within the table cell:
720 * Start Start edge of each child's allocation rectangle aligned with
721 * that of the table cell's content rectangle
722 * Center Each child centered within the table cell, so that the distance
723 * between the start edges of the child's allocation rectangle and
724 * the table cell's content rectangle is the same as the distance
725 * between their end edges
726 * End End edge of each child's allocation rectangle aligned with
727 * that of the table cell's content rectangle
728 * This attribute applies only to elements of structure type TH (Table header) or
729 * TD (Table data), and controls the placement of all BLSEs that are children of
730 * the given element. The table cell's content rectangle (see "Content and Allo-
731 * cation Rectangles" on page 648) becomes the reference area for all of its
732 * descendants. Default value: Start.
733**/
734 bool has_InlineAlign() const {
735 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "InlineAlign", "", NULL));
736 }
737
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000738 std::string InlineAlign() const;
edisonn@google.com29247622013-06-18 16:28:29 +0000739};
740
741#endif // __DEFINED__SkPdfBlockLevelStructureElementsDictionary