OLD | NEW |
(Empty) | |
| 1 #ifndef __DEFINED__SkPdfAnnotationDictionary |
| 2 #define __DEFINED__SkPdfAnnotationDictionary |
| 3 |
| 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" |
| 8 |
| 9 // Entries common to all annotation dictionaries |
| 10 class SkPdfAnnotationDictionary : public SkPdfDictionary { |
| 11 public: |
| 12 virtual SkPdfObjectType getType() const { return kAnnotationDictionary_SkPdfOb
jectType;} |
| 13 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAnnotat
ionDictionary_SkPdfObjectType + 1);} |
| 14 public: |
| 15 virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return this;} |
| 16 virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {retur
n this;} |
| 17 |
| 18 private: |
| 19 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
| 20 virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() co
nst {return NULL;} |
| 21 |
| 22 virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} |
| 23 virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} |
| 24 |
| 25 virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NU
LL;} |
| 26 virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() cons
t {return NULL;} |
| 27 |
| 28 virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {ret
urn NULL;} |
| 29 virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary(
) const {return NULL;} |
| 30 |
| 31 virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsD
ictionary() {return NULL;} |
| 32 virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteri
sticsDictionary() const {return NULL;} |
| 33 |
| 34 virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} |
| 35 virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {retur
n NULL;} |
| 36 |
| 37 virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return
NULL;} |
| 38 virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() co
nst {return NULL;} |
| 39 |
| 40 virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} |
| 41 virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return
NULL;} |
| 42 |
| 43 virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return
NULL;} |
| 44 virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() co
nst {return NULL;} |
| 45 |
| 46 virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} |
| 47 virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} |
| 48 |
| 49 virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureEleme
ntsDictionary() {return NULL;} |
| 50 virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructur
eElementsDictionary() const {return NULL;} |
| 51 |
| 52 virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} |
| 53 virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {ret
urn NULL;} |
| 54 |
| 55 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary()
{return NULL;} |
| 56 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDiction
ary() const {return NULL;} |
| 57 |
| 58 virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} |
| 59 virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NU
LL;} |
| 60 |
| 61 virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {ret
urn NULL;} |
| 62 virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary(
) const {return NULL;} |
| 63 |
| 64 virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL
;} |
| 65 virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const
{return NULL;} |
| 66 |
| 67 virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} |
| 68 virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} |
| 69 |
| 70 virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {ret
urn NULL;} |
| 71 virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary(
) const {return NULL;} |
| 72 |
| 73 virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {retur
n NULL;} |
| 74 virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary()
const {return NULL;} |
| 75 |
| 76 virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} |
| 77 virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL
;} |
| 78 |
| 79 virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary(
) {return NULL;} |
| 80 virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDicti
onary() const {return NULL;} |
| 81 |
| 82 virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL
;} |
| 83 virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const
{return NULL;} |
| 84 |
| 85 virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} |
| 86 virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {ret
urn NULL;} |
| 87 |
| 88 virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDiction
ary() {return NULL;} |
| 89 virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataD
ictionary() const {return NULL;} |
| 90 |
| 91 virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return
NULL;} |
| 92 virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() co
nst {return NULL;} |
| 93 |
| 94 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {ret
urn NULL;} |
| 95 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary(
) const {return NULL;} |
| 96 |
| 97 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDiction
ary() {return NULL;} |
| 98 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsD
ictionary() const {return NULL;} |
| 99 |
| 100 virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary()
{return NULL;} |
| 101 virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDiction
ary() const {return NULL;} |
| 102 |
| 103 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionar
y() {return NULL;} |
| 104 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDic
tionary() const {return NULL;} |
| 105 |
| 106 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {r
eturn NULL;} |
| 107 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionar
y() const {return NULL;} |
| 108 |
| 109 virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {r
eturn NULL;} |
| 110 virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionar
y() const {return NULL;} |
| 111 |
| 112 virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} |
| 113 virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NU
LL;} |
| 114 |
| 115 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStr
eamDictionary() {return NULL;} |
| 116 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedF
ileStreamDictionary() const {return NULL;} |
| 117 |
| 118 virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {retur
n NULL;} |
| 119 virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary()
const {return NULL;} |
| 120 |
| 121 virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} |
| 122 virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {retur
n NULL;} |
| 123 |
| 124 virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} |
| 125 virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} |
| 126 |
| 127 virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} |
| 128 virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NU
LL;} |
| 129 |
| 130 virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {ret
urn NULL;} |
| 131 virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary(
) const {return NULL;} |
| 132 |
| 133 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionar
y() {return NULL;} |
| 134 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDic
tionary() const {return NULL;} |
| 135 |
| 136 virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} |
| 137 virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL
;} |
| 138 |
| 139 virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} |
| 140 virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {ret
urn NULL;} |
| 141 |
| 142 virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} |
| 143 virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {retur
n NULL;} |
| 144 |
| 145 virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} |
| 146 virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} |
| 147 |
| 148 virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDic
tionary() {return NULL;} |
| 149 virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotat
ionDictionary() const {return NULL;} |
| 150 |
| 151 virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {ret
urn NULL;} |
| 152 virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary(
) const {return NULL;} |
| 153 |
| 154 virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} |
| 155 virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {ret
urn NULL;} |
| 156 |
| 157 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} |
| 158 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} |
| 159 |
| 160 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} |
| 161 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} |
| 162 |
| 163 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} |
| 164 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} |
| 165 |
| 166 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() co
nst {return NULL;} |
| 174 |
| 175 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |
| 176 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} |
| 177 |
| 178 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} |
| 179 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} |
| 180 |
| 181 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} |
| 182 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} |
| 183 |
| 184 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} |
| 185 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} |
| 186 |
| 187 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} |
| 188 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} |
| 189 |
| 190 virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} |
| 191 virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {retur
n 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() co
nst {return NULL;} |
| 198 |
| 199 virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} |
| 200 virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {retur
n NULL;} |
| 201 |
| 202 virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {retur
n 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() {retur
n 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* asInlineLevelStructureEle
mentsDictionary() {return NULL;} |
| 215 virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStruct
ureElementsDictionary() const {return NULL;} |
| 216 |
| 217 virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return
NULL;} |
| 218 virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() co
nst {return NULL;} |
| 219 |
| 220 virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {retur
n NULL;} |
| 221 virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary()
const {return NULL;} |
| 222 |
| 223 virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} |
| 224 virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {retur
n NULL;} |
| 225 |
| 226 virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {ret
urn 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 {r
eturn NULL;} |
| 234 |
| 235 virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NU
LL;} |
| 236 virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() cons
t {return NULL;} |
| 237 |
| 238 virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL
;} |
| 239 virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const
{return NULL;} |
| 240 |
| 241 virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedeco
deFiltersDictionary() {return NULL;} |
| 242 virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFla
tedecodeFiltersDictionary() const {return NULL;} |
| 243 |
| 244 virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary(
) {return NULL;} |
| 245 virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDicti
onary() const {return NULL;} |
| 246 |
| 247 virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return
NULL;} |
| 248 virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() co
nst {return NULL;} |
| 249 |
| 250 virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDiction
ary() {return NULL;} |
| 251 virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceD
ictionary() const {return NULL;} |
| 252 |
| 253 virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {ret
urn NULL;} |
| 254 virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary(
) const {return NULL;} |
| 255 |
| 256 virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NU
LL;} |
| 257 virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() cons
t {return NULL;} |
| 258 |
| 259 virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} |
| 260 virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {ret
urn NULL;} |
| 261 |
| 262 virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return
NULL;} |
| 263 virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() co
nst {return NULL;} |
| 264 |
| 265 virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return
NULL;} |
| 266 virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() co
nst {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 {r
eturn NULL;} |
| 276 |
| 277 virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} |
| 278 virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {r
eturn NULL;} |
| 279 |
| 280 virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NU
LL;} |
| 281 virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() cons
t {return NULL;} |
| 282 |
| 283 virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return
NULL;} |
| 284 virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() co
nst {return NULL;} |
| 285 |
| 286 virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} |
| 287 virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {retur
n 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 {ret
urn NULL;} |
| 294 |
| 295 virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {ret
urn 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() {ret
urn NULL;} |
| 305 virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary(
) const {return NULL;} |
| 306 |
| 307 virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} |
| 308 virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {retur
n 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 {r
eturn NULL;} |
| 315 |
| 316 virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return
NULL;} |
| 317 virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() co
nst {return NULL;} |
| 318 |
| 319 virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionar
y() {return NULL;} |
| 320 virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDic
tionary() const {return NULL;} |
| 321 |
| 322 virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return
NULL;} |
| 323 virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() co
nst {return NULL;} |
| 324 |
| 325 virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {retur
n 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() {retur
n NULL;} |
| 332 virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary()
const {return NULL;} |
| 333 |
| 334 virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return
NULL;} |
| 335 virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() co
nst {return NULL;} |
| 336 |
| 337 virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} |
| 338 virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NU
LL;} |
| 339 |
| 340 virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionar
y() {return NULL;} |
| 341 virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDic
tionary() const {return NULL;} |
| 342 |
| 343 virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} |
| 344 virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {retur
n 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 {r
eturn NULL;} |
| 351 |
| 352 virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} |
| 353 virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {r
eturn NULL;} |
| 354 |
| 355 virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} |
| 356 virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {r
eturn NULL;} |
| 357 |
| 358 virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} |
| 359 virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {r
eturn NULL;} |
| 360 |
| 361 virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} |
| 362 virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {r
eturn NULL;} |
| 363 |
| 364 virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} |
| 365 virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {r
eturn 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 NU
LL;} |
| 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 {ret
urn NULL;} |
| 378 |
| 379 virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return
NULL;} |
| 380 virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() co
nst {return NULL;} |
| 381 |
| 382 virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} |
| 383 virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {ret
urn NULL;} |
| 384 |
| 385 virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {ret
urn NULL;} |
| 386 virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary(
) const {return NULL;} |
| 387 |
| 388 virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NU
LL;} |
| 389 virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() cons
t {return NULL;} |
| 390 |
| 391 virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDicti
onary() {return NULL;} |
| 392 virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandle
rDictionary() const {return NULL;} |
| 393 |
| 394 virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {ret
urn NULL;} |
| 395 virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary(
) const {return NULL;} |
| 396 |
| 397 virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} |
| 398 virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {r
eturn NULL;} |
| 399 |
| 400 virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDiction
ary() {return NULL;} |
| 401 virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessD
ictionary() const {return NULL;} |
| 402 |
| 403 virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {retur
n NULL;} |
| 404 virtual const SkPdfStructureElementDictionary* asStructureElementDictionary()
const {return NULL;} |
| 405 |
| 406 virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {ret
urn NULL;} |
| 407 virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary(
) const {return NULL;} |
| 408 |
| 409 virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {retur
n NULL;} |
| 410 virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary()
const {return NULL;} |
| 411 |
| 412 virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return
NULL;} |
| 413 virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() co
nst {return NULL;} |
| 414 |
| 415 virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NU
LL;} |
| 416 virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() cons
t {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 {r
eturn 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 {retur
n NULL;} |
| 429 |
| 430 virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {ret
urn NULL;} |
| 431 virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary(
) const {return NULL;} |
| 432 |
| 433 virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionar
y() {return NULL;} |
| 434 virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDic
tionary() const {return NULL;} |
| 435 |
| 436 virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStr
eamDictionary() {return NULL;} |
| 437 virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppeara
nceStreamDictionary() const {return NULL;} |
| 438 |
| 439 virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL
;} |
| 440 virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const
{return NULL;} |
| 441 |
| 442 virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NU
LL;} |
| 443 virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() cons
t {return NULL;} |
| 444 |
| 445 virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NU
LL;} |
| 446 virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() cons
t {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 {r
eturn 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 {r
eturn 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 NU
LL;} |
| 477 |
| 478 virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {ret
urn NULL;} |
| 479 virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary(
) const {return NULL;} |
| 480 |
| 481 virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {ret
urn NULL;} |
| 482 virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary(
) const {return NULL;} |
| 483 |
| 484 virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {ret
urn NULL;} |
| 485 virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary(
) const {return NULL;} |
| 486 |
| 487 virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsD
ictionary() {return NULL;} |
| 488 virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSet
tingsDictionary() const {return NULL;} |
| 489 |
| 490 virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} |
| 491 virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {retur
n NULL;} |
| 492 |
| 493 virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {r
eturn NULL;} |
| 494 virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionar
y() const {return NULL;} |
| 495 |
| 496 virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionar
y() {return NULL;} |
| 497 virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDic
tionary() const {return NULL;} |
| 498 |
| 499 virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {ret
urn NULL;} |
| 500 virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary(
) const {return NULL;} |
| 501 |
| 502 virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {retur
n NULL;} |
| 503 virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary()
const {return NULL;} |
| 504 |
| 505 virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary()
{return NULL;} |
| 506 virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDiction
ary() 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 |
| 517 public: |
| 518 private: |
| 519 public: |
| 520 SkPdfAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObj
ect* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 521 |
| 522 SkPdfAnnotationDictionary(const SkPdfAnnotationDictionary& from) : SkPdfDictio
nary(from.fPodofoDoc, from.fPodofoObj) {} |
| 523 |
| 524 virtual bool valid() const {return true;} |
| 525 |
| 526 SkPdfAnnotationDictionary& operator=(const SkPdfAnnotationDictionary& from) {t
his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t
his;} |
| 527 |
| 528 /** (Optional) The type of PDF object that this dictionary describes; if present
, |
| 529 * must be Annot for an annotation dictionary. |
| 530 **/ |
| 531 bool has_Type() const { |
| 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); |
| 533 } |
| 534 |
| 535 std::string Type() const { |
| 536 std::string ret; |
| 537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "",
&ret)) return ret; |
| 538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 539 return ""; |
| 540 } |
| 541 |
| 542 /** (Required) The type of annotation that this dictionary describes; see Table |
| 543 * 8.14 on page 499 for specific values. |
| 544 **/ |
| 545 bool has_Subtype() const { |
| 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
| 547 } |
| 548 |
| 549 std::string Subtype() const { |
| 550 std::string ret; |
| 551 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; |
| 552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 553 return ""; |
| 554 } |
| 555 |
| 556 /** (Required or optional, depending on the annotation type) Text to be displaye
d |
| 557 * for the annotation or, if this type of annotation does not display text, an
al- |
| 558 * ternate description of the annotation's contents in human-readable form. In |
| 559 * either case, this text is useful when extracting the document's contents in |
| 560 * support of accessibility to disabled users or for other purposes (see Sectio
n |
| 561 * 9.8.2, "Alternate Descriptions"). |
| 562 **/ |
| 563 bool has_Contents() const { |
| 564 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
nts", "", NULL)); |
| 565 } |
| 566 |
| 567 std::string Contents() const { |
| 568 std::string ret; |
| 569 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents"
, "", &ret)) return ret; |
| 570 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 571 return ""; |
| 572 } |
| 573 |
| 574 /** (Optional; PDF 1.3; not used in FDF files) An indirect reference to the page |
| 575 * object with which this annotation is associated. |
| 576 **/ |
| 577 bool has_P() const { |
| 578 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
", NULL)); |
| 579 } |
| 580 |
| 581 SkPdfDictionary* P() const { |
| 582 SkPdfDictionary* ret; |
| 583 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
", &ret)) return ret; |
| 584 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 585 return NULL; |
| 586 } |
| 587 |
| 588 /** (Required) The annotation rectangle, defining the location of the annotation |
| 589 * on the page in default user space units. |
| 590 **/ |
| 591 bool has_Rect() const { |
| 592 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect"
, "", NULL)); |
| 593 } |
| 594 |
| 595 SkRect* Rect() const { |
| 596 SkRect* ret; |
| 597 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect", ""
, &ret)) return ret; |
| 598 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 599 return NULL; |
| 600 } |
| 601 |
| 602 /** (Optional; PDF 1.4) The annotation name, a text string uniquely identifying |
| 603 * it among all the annotations on its page. |
| 604 **/ |
| 605 bool has_NM() const { |
| 606 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NM",
"", NULL)); |
| 607 } |
| 608 |
| 609 /** (Optional; PDF 1.1) The date and time when the annotation was most |
| 610 * recently modified. The preferred format is a date string as described in Sec
- |
| 611 * tion 3.8.2, "Dates," but viewer applications should be prepared to accept an
d |
| 612 * display a string in any format. (See implementation note 59 in Appendix H.) |
| 613 **/ |
| 614 bool has_M() const { |
| 615 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "
", NULL)); |
| 616 } |
| 617 |
| 618 bool isMADate() const { |
| 619 SkPdfObject* ret = NULL; |
| 620 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "",
&ret)) return false; |
| 621 return ret->podofo()->GetDataType() == ePdfDataType_Array; |
| 622 } |
| 623 |
| 624 SkPdfDate getMAsDate() const { |
| 625 SkPdfDate ret = SkPdfDate(); |
| 626 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &re
t)) return ret; |
| 627 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 628 return SkPdfDate(); |
| 629 } |
| 630 |
| 631 bool isMAString() const { |
| 632 SkPdfObject* ret = NULL; |
| 633 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "",
&ret)) return false; |
| 634 return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()-
>GetDataType() == ePdfDataType_HexString; |
| 635 } |
| 636 |
| 637 std::string getMAsString() const { |
| 638 std::string ret = ""; |
| 639 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &
ret)) return ret; |
| 640 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 641 return ""; |
| 642 } |
| 643 |
| 644 /** (Optional; PDF 1.1) A set of flags specifying various characteristics of the
an- |
| 645 * notation (see Section 8.4.2, "Annotation Flags"). Default value: 0. |
| 646 **/ |
| 647 bool has_F() const { |
| 648 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
| 649 } |
| 650 |
| 651 long F() const { |
| 652 long ret; |
| 653 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &re
t)) return ret; |
| 654 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 655 return 0; |
| 656 } |
| 657 |
| 658 /** (Optional; PDF 1.2) A border style dictionary specifying the characteristics
of |
| 659 * the annotation's border (see Section 8.4.3, "Border Styles"; see also imple- |
| 660 * mentation note 60 in Appendix H). |
| 661 * Note: This entry also specifies the width and dash pattern for the lines dra
wn by |
| 662 * line, square, circle, and ink annotations. See the note under Border (below)
for |
| 663 * additional information. |
| 664 **/ |
| 665 bool has_BS() const { |
| 666 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS",
"", NULL)); |
| 667 } |
| 668 |
| 669 SkPdfDictionary* BS() const { |
| 670 SkPdfDictionary* ret; |
| 671 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS",
"", &ret)) return ret; |
| 672 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 673 return NULL; |
| 674 } |
| 675 |
| 676 /** (Optional) An array specifying the characteristics of the annotation's borde
r. |
| 677 * The border is specified as a "rounded rectangle." |
| 678 * In PDF 1.0, the array consists of three numbers defining the horizontal cor- |
| 679 * ner radius, vertical corner radius, and border width, all in default user sp
ace |
| 680 * units. If the corner radii are 0, the border has square (not rounded) corner
s; |
| 681 * if the border width is 0, no border is drawn. (See implementation note 61 in |
| 682 * Appendix H.) |
| 683 * In PDF 1.1, the array may have a fourth element, an optional dash array |
| 684 * defining a pattern of dashes and gaps to be used in drawing the border. Th
e |
| 685 * dash array is specified in the same format as in the line dash pattern par
ame- |
| 686 * ter of the graphics state (see "Line Dash Pattern" on page 155). For examp
le, |
| 687 * a Border value of [0 0 1 [3 2]] specifies a border 1 unit wide, with squar
e |
| 688 * corners, drawn with 3-unit dashes alternating with 2-unit gaps. Note that
no |
| 689 * dash phase is specified; the phase is assumed to be 0. (See implementation |
| 690 * note 62 in Appendix H.) |
| 691 * Note: In PDF 1.2 or later, annotations may ignore this entry and use the B
S |
| 692 * entry (see above) to specify their border styles instead. In PDF 1.2 and 1
.3, only |
| 693 * widget annotations do so; in PDF 1.4, all of the standard annotation types
ex- |
| 694 * cept Link (see Table 8.14 on page 499) use BS rather than Border if both a
re |
| 695 * present. For backward compatibility, however, Border is still supported fo
r all |
| 696 * annotation types. |
| 697 * Default value: [0 0 1]. |
| 698 **/ |
| 699 bool has_Border() const { |
| 700 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Borde
r", "", NULL)); |
| 701 } |
| 702 |
| 703 SkPdfArray* Border() const { |
| 704 SkPdfArray* ret; |
| 705 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Border", "
", &ret)) return ret; |
| 706 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 707 return NULL; |
| 708 } |
| 709 |
| 710 /** (Optional; PDF 1.2) An appearance dictionary specifying how the annotation |
| 711 * is presented visually on the page (see Section 8.4.4, "Appearance Streams"; |
| 712 * see also implementation note 60 in Appendix H). |
| 713 **/ |
| 714 bool has_AP() const { |
| 715 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP",
"", NULL)); |
| 716 } |
| 717 |
| 718 SkPdfDictionary* AP() const { |
| 719 SkPdfDictionary* ret; |
| 720 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP",
"", &ret)) return ret; |
| 721 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 722 return NULL; |
| 723 } |
| 724 |
| 725 /** (Required if the appearance dictionary AP contains one or more subdictionari
es; |
| 726 * PDF 1.2) The annotation's appearance state, which selects the applicable |
| 727 * appearance stream from an appearance subdictionary (see Section 8.4.4, |
| 728 * "Appearance Streams"; see also implementation note 60 in Appendix H). |
| 729 **/ |
| 730 bool has_AS() const { |
| 731 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS",
"", NULL)); |
| 732 } |
| 733 |
| 734 std::string AS() const { |
| 735 std::string ret; |
| 736 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS", "", &r
et)) return ret; |
| 737 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 738 return ""; |
| 739 } |
| 740 |
| 741 /** (Optional; PDF 1.1) An array of three numbers in the range 0.0 to 1.0, repre
- |
| 742 * senting the components of a color in the DeviceRGB color space. This color |
| 743 * will be used for the following purposes: |
| 744 * * The background of the annotation's icon when closed |
| 745 * * The title bar of the annotation's pop-up window |
| 746 * * The border of a link annotation |
| 747 **/ |
| 748 bool has_C() const { |
| 749 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 750 } |
| 751 |
| 752 SkPdfArray* C() const { |
| 753 SkPdfArray* ret; |
| 754 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r
et)) return ret; |
| 755 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 756 return NULL; |
| 757 } |
| 758 |
| 759 /** (Optional; PDF 1.4) The constant opacity value to be used in painting the |
| 760 * annotation (see Sections 7.1, "Overview of Transparency," and 7.2.6, "Shape |
| 761 * and Opacity Computations"). This value applies to all visible elements of |
| 762 * the annotation in its closed state (including its background and border), bu
t |
| 763 * not to the pop-up window that appears when the annotation is opened. The |
| 764 * specified value is used as the initial alpha constant (both stroking and non
- |
| 765 * stroking) for interpreting the annotation's appearance stream, if any (see |
| 766 * Section 8.4.4, "Appearance Streams," and "Constant Shape and Opacity" on |
| 767 * page 444). The implicit blend mode (see Section 7.2.4, "Blend Mode") is |
| 768 * Normal. Default value: 1.0. |
| 769 * Note: If no explicit appearance stream is defined for the
annotation, it will be |
| 770 * painted by implementation-dependent means that do not nece
ssarily conform to |
| 771 * the Adobe imaging model; in this case, the effect of this
entry is implementation- |
| 772 * dependent as well. |
| 773 * Note: This entry is recognized by all of the standard anno
tation types listed in |
| 774 * Table 8.14 on page 499 except Link, Movie, Widget, Printer
Mark, and TrapNet. |
| 775 **/ |
| 776 bool has_CA() const { |
| 777 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA",
"", NULL)); |
| 778 } |
| 779 |
| 780 double CA() const { |
| 781 double ret; |
| 782 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "",
&ret)) return ret; |
| 783 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 784 return 0; |
| 785 } |
| 786 |
| 787 /** (Optional; PDF 1.1) The text label to be displayed in the title bar of the a
nno- |
| 788 * tation's pop-up window when open and active. |
| 789 **/ |
| 790 bool has_T() const { |
| 791 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "
", NULL)); |
| 792 } |
| 793 |
| 794 std::string T() const { |
| 795 std::string ret; |
| 796 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &
ret)) return ret; |
| 797 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 798 return ""; |
| 799 } |
| 800 |
| 801 /** (Optional; PDF 1.3) An indirect reference to a pop-up annotation for enter- |
| 802 * ing or editing the text associated with this annotation. |
| 803 **/ |
| 804 bool has_Popup() const { |
| 805 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup
", "", NULL)); |
| 806 } |
| 807 |
| 808 SkPdfDictionary* Popup() const { |
| 809 SkPdfDictionary* ret; |
| 810 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup
", "", &ret)) return ret; |
| 811 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 812 return NULL; |
| 813 } |
| 814 |
| 815 /** (Optional; PDF 1.1) An action to be performed when the annotation is acti- |
| 816 * vated (see Section 8.5, "Actions"). |
| 817 * Note: This entry is not permitted in link annotations if a Dest entry is pre
sent |
| 818 * (see "Link Annotations" on page 501). Also note that the A entry in movie an
no- |
| 819 * tations has a different meaning (see "Movie Annotations" on page 510). |
| 820 **/ |
| 821 bool has_A() const { |
| 822 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "
", NULL)); |
| 823 } |
| 824 |
| 825 SkPdfDictionary* A() const { |
| 826 SkPdfDictionary* ret; |
| 827 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "
", &ret)) return ret; |
| 828 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 829 return NULL; |
| 830 } |
| 831 |
| 832 /** (Optional; PDF 1.2) An additional-actions dictionary defining the anno- |
| 833 * tation's behavior in response to various trigger events (see Section 8.5.2, |
| 834 * "Trigger Events"). At the time of publication, this entry is used only by wi
d- |
| 835 * get annotations. |
| 836 **/ |
| 837 bool has_AA() const { |
| 838 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA",
"", NULL)); |
| 839 } |
| 840 |
| 841 SkPdfDictionary* AA() const { |
| 842 SkPdfDictionary* ret; |
| 843 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA",
"", &ret)) return ret; |
| 844 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 845 return NULL; |
| 846 } |
| 847 |
| 848 /** (Required if the annotation is a structural content item; PDF 1.3) The integ
er |
| 849 * key of the annotation's entry in the structural parent tree (see "Finding St
ruc- |
| 850 * ture Elements from Content Items" on page 600). |
| 851 **/ |
| 852 bool has_StructParent() const { |
| 853 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc
tParent", "", NULL)); |
| 854 } |
| 855 |
| 856 long StructParent() const { |
| 857 long ret; |
| 858 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen
t", "", &ret)) return ret; |
| 859 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 860 return 0; |
| 861 } |
| 862 |
| 863 }; |
| 864 |
| 865 #endif // __DEFINED__SkPdfAnnotationDictionary |
OLD | NEW |