OLD | NEW |
(Empty) | |
| 1 #ifndef __DEFINED__SkPdfGraphicsStateDictionary |
| 2 #define __DEFINED__SkPdfGraphicsStateDictionary |
| 3 |
| 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" |
| 8 |
| 9 // Entries in a graphics state parameter dictionary |
| 10 class SkPdfGraphicsStateDictionary : public SkPdfDictionary { |
| 11 public: |
| 12 virtual SkPdfObjectType getType() const { return kGraphicsStateDictionary_SkPd
fObjectType;} |
| 13 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGraphic
sStateDictionary_SkPdfObjectType + 1);} |
| 14 public: |
| 15 virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return this
;} |
| 16 virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const
{return 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 SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} |
| 32 virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {retur
n NULL;} |
| 33 |
| 34 virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsD
ictionary() {return NULL;} |
| 35 virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteri
sticsDictionary() const {return NULL;} |
| 36 |
| 37 virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} |
| 38 virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {retur
n NULL;} |
| 39 |
| 40 virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return
NULL;} |
| 41 virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() co
nst {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() co
nst {return NULL;} |
| 48 |
| 49 virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} |
| 50 virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} |
| 51 |
| 52 virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureEleme
ntsDictionary() {return NULL;} |
| 53 virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructur
eElementsDictionary() const {return NULL;} |
| 54 |
| 55 virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} |
| 56 virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {ret
urn NULL;} |
| 57 |
| 58 virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary()
{return NULL;} |
| 59 virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDiction
ary() const {return NULL;} |
| 60 |
| 61 virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} |
| 62 virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NU
LL;} |
| 63 |
| 64 virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {ret
urn NULL;} |
| 65 virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary(
) const {return NULL;} |
| 66 |
| 67 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() {ret
urn NULL;} |
| 74 virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary(
) const {return NULL;} |
| 75 |
| 76 virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {retur
n 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* asCcittfaxdecodeFilterDicti
onary() 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 {ret
urn NULL;} |
| 90 |
| 91 virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDiction
ary() {return NULL;} |
| 92 virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataD
ictionary() const {return NULL;} |
| 93 |
| 94 virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return
NULL;} |
| 95 virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() co
nst {return NULL;} |
| 96 |
| 97 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {ret
urn NULL;} |
| 98 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary(
) const {return NULL;} |
| 99 |
| 100 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDiction
ary() {return NULL;} |
| 101 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsD
ictionary() const {return NULL;} |
| 102 |
| 103 virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary()
{return NULL;} |
| 104 virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDiction
ary() const {return NULL;} |
| 105 |
| 106 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionar
y() {return NULL;} |
| 107 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDic
tionary() const {return NULL;} |
| 108 |
| 109 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {r
eturn NULL;} |
| 110 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionar
y() const {return NULL;} |
| 111 |
| 112 virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {r
eturn NULL;} |
| 113 virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionar
y() const {return NULL;} |
| 114 |
| 115 virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} |
| 116 virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NU
LL;} |
| 117 |
| 118 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStr
eamDictionary() {return NULL;} |
| 119 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedF
ileStreamDictionary() const {return NULL;} |
| 120 |
| 121 virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {retur
n NULL;} |
| 122 virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary()
const {return NULL;} |
| 123 |
| 124 virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} |
| 125 virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {retur
n 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 NU
LL;} |
| 132 |
| 133 virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {ret
urn NULL;} |
| 134 virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary(
) const {return NULL;} |
| 135 |
| 136 virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionar
y() {return NULL;} |
| 137 virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDic
tionary() 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 {ret
urn NULL;} |
| 144 |
| 145 virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} |
| 146 virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {retur
n NULL;} |
| 147 |
| 148 virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} |
| 149 virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} |
| 150 |
| 151 virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDic
tionary() {return NULL;} |
| 152 virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotat
ionDictionary() const {return NULL;} |
| 153 |
| 154 virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {ret
urn NULL;} |
| 155 virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary(
) const {return NULL;} |
| 156 |
| 157 virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} |
| 158 virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {ret
urn NULL;} |
| 159 |
| 160 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} |
| 161 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} |
| 162 |
| 163 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} |
| 164 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} |
| 165 |
| 166 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} |
| 167 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} |
| 168 |
| 169 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} |
| 170 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} |
| 171 |
| 172 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} |
| 173 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} |
| 174 |
| 175 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} |
| 176 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} |
| 177 |
| 178 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |
| 179 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} |
| 180 |
| 181 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} |
| 182 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} |
| 183 |
| 184 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} |
| 185 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} |
| 186 |
| 187 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} |
| 188 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} |
| 189 |
| 190 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} |
| 191 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} |
| 192 |
| 193 virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} |
| 194 virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {retur
n 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 SkPdfGraphicsStateDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf
Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 521 |
| 522 SkPdfGraphicsStateDictionary(const SkPdfGraphicsStateDictionary& from) : SkPdf
Dictionary(from.fPodofoDoc, from.fPodofoObj) {} |
| 523 |
| 524 virtual bool valid() const {return true;} |
| 525 |
| 526 SkPdfGraphicsStateDictionary& operator=(const SkPdfGraphicsStateDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} |
| 527 |
| 528 /** (Optional) The type of PDF object that this dictionary describes; must be |
| 529 * ExtGState for a graphics state parameter 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 /** (Optional; PDF 1.3) The line width (see "Line Width" on page 152). |
| 543 **/ |
| 544 bool has_LW() const { |
| 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW",
"", NULL)); |
| 546 } |
| 547 |
| 548 double LW() const { |
| 549 double ret; |
| 550 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW", "",
&ret)) return ret; |
| 551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 552 return 0; |
| 553 } |
| 554 |
| 555 /** (Optional; PDF 1.3) The line cap style (see "Line Cap Style" on page 153). |
| 556 **/ |
| 557 bool has_LC() const { |
| 558 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LC",
"", NULL)); |
| 559 } |
| 560 |
| 561 long LC() const { |
| 562 long ret; |
| 563 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LC", "", &r
et)) return ret; |
| 564 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 565 return 0; |
| 566 } |
| 567 |
| 568 /** (Optional; PDF 1.3) The line join style (see "Line Join Style" on page 153). |
| 569 **/ |
| 570 bool has_LJ() const { |
| 571 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LJ",
"", NULL)); |
| 572 } |
| 573 |
| 574 long LJ() const { |
| 575 long ret; |
| 576 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LJ", "", &r
et)) return ret; |
| 577 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 578 return 0; |
| 579 } |
| 580 |
| 581 /** (Optional; PDF 1.3) The miter limit (see "Miter Limit" on page 153). |
| 582 **/ |
| 583 bool has_ML() const { |
| 584 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML",
"", NULL)); |
| 585 } |
| 586 |
| 587 double ML() const { |
| 588 double ret; |
| 589 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML", "",
&ret)) return ret; |
| 590 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 591 return 0; |
| 592 } |
| 593 |
| 594 /** (Optional; PDF 1.3) The line dash pattern, expressed as an array of the form |
| 595 * [dashArray dashPhase], where dashArray is itself an array and dashPhase is a
n |
| 596 * integer (see "Line Dash Pattern" on page 155). |
| 597 **/ |
| 598 bool has_D() const { |
| 599 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "
", NULL)); |
| 600 } |
| 601 |
| 602 SkPdfArray* D() const { |
| 603 SkPdfArray* ret; |
| 604 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &r
et)) return ret; |
| 605 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 606 return NULL; |
| 607 } |
| 608 |
| 609 /** (Optional; PDF 1.3) The name of the rendering intent (see "Rendering |
| 610 * Intents" on page 197). |
| 611 **/ |
| 612 bool has_RI() const { |
| 613 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI",
"", NULL)); |
| 614 } |
| 615 |
| 616 std::string RI() const { |
| 617 std::string ret; |
| 618 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &r
et)) return ret; |
| 619 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 620 return ""; |
| 621 } |
| 622 |
| 623 /** (Optional) A flag specifying whether to apply overprint (see Section 4.5.6, |
| 624 * "Overprint Control"). In PDF 1.2 and earlier, there is a single overprint |
| 625 * parameter that applies to all painting operations. Beginning with PDF 1.3, |
| 626 * there are two separate overprint parameters: one for stroking and one for al
l |
| 627 * other painting operations. Specifying an OP entry sets both parameters un- |
| 628 * less there is also an op entry in the same graphics state parameter dictiona
ry, |
| 629 * in which case the OP entry sets only the overprint parameter for stroking. |
| 630 **/ |
| 631 bool has_OP() const { |
| 632 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OP",
"", NULL)); |
| 633 } |
| 634 |
| 635 bool OP() const { |
| 636 bool ret; |
| 637 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OP", "", &r
et)) return ret; |
| 638 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 639 return false; |
| 640 } |
| 641 |
| 642 /** (Optional; PDF 1.3) A flag specifying whether to apply overprint (see Sectio
n |
| 643 * 4.5.6, "Overprint Control") for painting operations other than stroking. If |
| 644 * this entry is absent, the OP entry, if any, sets this parameter. |
| 645 **/ |
| 646 bool has_op() const { |
| 647 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "op",
"", NULL)); |
| 648 } |
| 649 |
| 650 bool op() const { |
| 651 bool ret; |
| 652 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "op", "", &r
et)) return ret; |
| 653 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 654 return false; |
| 655 } |
| 656 |
| 657 /** (Optional; PDF 1.3) The overprint mode (see Section 4.5.6, "Overprint Con- |
| 658 * trol"). |
| 659 **/ |
| 660 bool has_OPM() const { |
| 661 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM",
"", NULL)); |
| 662 } |
| 663 |
| 664 long OPM() const { |
| 665 long ret; |
| 666 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM", "", &
ret)) return ret; |
| 667 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 668 return 0; |
| 669 } |
| 670 |
| 671 /** (Optional; PDF 1.3) An array of the form [font size], where font is an indir
ect |
| 672 * reference to a font dictionary and size is a number expressed in text space |
| 673 * units. These two objects correspond to the operands of the Tf operator (see |
| 674 * Section 5.2, "Text State Parameters and Operators"); however, the first oper
- |
| 675 * and is an indirect object reference instead of a resource name. |
| 676 **/ |
| 677 bool has_Font() const { |
| 678 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font"
, "", NULL)); |
| 679 } |
| 680 |
| 681 SkPdfArray* Font() const { |
| 682 SkPdfArray* ret; |
| 683 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "",
&ret)) return ret; |
| 684 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 685 return NULL; |
| 686 } |
| 687 |
| 688 /** (Optional) The black-generation function, which maps the interval [0.0 1.0] |
| 689 * to the interval [0.0 1.0] (see Section 6.2.3, "Conversion from DeviceRGB to |
| 690 * DeviceCMYK"). |
| 691 **/ |
| 692 bool has_BG() const { |
| 693 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG",
"", NULL)); |
| 694 } |
| 695 |
| 696 SkPdfFunction BG() const { |
| 697 SkPdfFunction ret; |
| 698 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", ""
, &ret)) return ret; |
| 699 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 700 return SkPdfFunction(); |
| 701 } |
| 702 |
| 703 /** (Optional; PDF 1.3) Same as BG except that the value may also be the name |
| 704 * Default, denoting the black-generation function that was in effect at the st
art |
| 705 * of the page. If both BG and BG2 are present in the same graphics state param
- |
| 706 * eter dictionary, BG2 takes precedence. |
| 707 **/ |
| 708 bool has_BG2() const { |
| 709 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2",
"", NULL)); |
| 710 } |
| 711 |
| 712 bool isBG2AFunction() const { |
| 713 SkPdfObject* ret = NULL; |
| 714 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", ""
, &ret)) return false; |
| 715 return ret->podofo()->GetDataType() == ePdfDataType_Reference; |
| 716 } |
| 717 |
| 718 SkPdfFunction getBG2AsFunction() const { |
| 719 SkPdfFunction ret = SkPdfFunction(); |
| 720 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "
", &ret)) return ret; |
| 721 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 722 return SkPdfFunction(); |
| 723 } |
| 724 |
| 725 bool isBG2AName() const { |
| 726 SkPdfObject* ret = NULL; |
| 727 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", ""
, &ret)) return false; |
| 728 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 729 } |
| 730 |
| 731 std::string getBG2AsName() const { |
| 732 std::string ret = ""; |
| 733 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &
ret)) return ret; |
| 734 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 735 return ""; |
| 736 } |
| 737 |
| 738 /** (Optional) The undercolor-removal function, which maps the interval |
| 739 * [0.0 1.0] to the interval [-1.0 1.0] (see Section 6.2.3, "Conversion from |
| 740 * DeviceRGB to DeviceCMYK"). |
| 741 **/ |
| 742 bool has_UCR() const { |
| 743 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR",
"", NULL)); |
| 744 } |
| 745 |
| 746 SkPdfFunction UCR() const { |
| 747 SkPdfFunction ret; |
| 748 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR", "
", &ret)) return ret; |
| 749 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 750 return SkPdfFunction(); |
| 751 } |
| 752 |
| 753 /** (Optional; PDF 1.3) Same as UCR except that the value may also be the name |
| 754 * Default, denoting the undercolor-removal function that was in effect at the |
| 755 * start of the page. If both UCR and UCR2 are present in the same graphics sta
te |
| 756 * parameter dictionary, UCR2 takes precedence. |
| 757 **/ |
| 758 bool has_UCR2() const { |
| 759 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2"
, "", NULL)); |
| 760 } |
| 761 |
| 762 bool isUCR2AFunction() const { |
| 763 SkPdfObject* ret = NULL; |
| 764 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "
", &ret)) return false; |
| 765 return ret->podofo()->GetDataType() == ePdfDataType_Reference; |
| 766 } |
| 767 |
| 768 SkPdfFunction getUCR2AsFunction() const { |
| 769 SkPdfFunction ret = SkPdfFunction(); |
| 770 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2",
"", &ret)) return ret; |
| 771 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 772 return SkPdfFunction(); |
| 773 } |
| 774 |
| 775 bool isUCR2AName() const { |
| 776 SkPdfObject* ret = NULL; |
| 777 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "
", &ret)) return false; |
| 778 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 779 } |
| 780 |
| 781 std::string getUCR2AsName() const { |
| 782 std::string ret = ""; |
| 783 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "",
&ret)) return ret; |
| 784 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 785 return ""; |
| 786 } |
| 787 |
| 788 /** (Optional) The transfer function, which maps the interval [0.0 1.0] to the |
| 789 * interval [0.0 1.0] (see Section 6.3, "Transfer Functions"). The value is eit
her |
| 790 * a single function (which applies to all process colorants) or an array of fo
ur |
| 791 * functions (which apply to the process colorants individually). The name |
| 792 * Identity may be used to represent the identity function. |
| 793 **/ |
| 794 bool has_TR() const { |
| 795 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR",
"", NULL)); |
| 796 } |
| 797 |
| 798 bool isTRAFunction() const { |
| 799 SkPdfObject* ret = NULL; |
| 800 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "",
&ret)) return false; |
| 801 return ret->podofo()->GetDataType() == ePdfDataType_Reference; |
| 802 } |
| 803 |
| 804 SkPdfFunction getTRAsFunction() const { |
| 805 SkPdfFunction ret = SkPdfFunction(); |
| 806 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", ""
, &ret)) return ret; |
| 807 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 808 return SkPdfFunction(); |
| 809 } |
| 810 |
| 811 bool isTRAArray() const { |
| 812 SkPdfObject* ret = NULL; |
| 813 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "",
&ret)) return false; |
| 814 return ret->podofo()->GetDataType() == ePdfDataType_Array; |
| 815 } |
| 816 |
| 817 SkPdfArray* getTRAsArray() const { |
| 818 SkPdfArray* ret = NULL; |
| 819 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &
ret)) return ret; |
| 820 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 821 return NULL; |
| 822 } |
| 823 |
| 824 bool isTRAName() const { |
| 825 SkPdfObject* ret = NULL; |
| 826 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "",
&ret)) return false; |
| 827 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 828 } |
| 829 |
| 830 std::string getTRAsName() const { |
| 831 std::string ret = ""; |
| 832 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &r
et)) return ret; |
| 833 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 834 return ""; |
| 835 } |
| 836 |
| 837 /** (Optional; PDF 1.3) Same as TR except that the value may also be the name |
| 838 * Default, denoting the transfer function that was in effect at the start of t
he |
| 839 * page. If both TR and TR2 are present in the same graphics state parameter di
c- |
| 840 * tionary, TR2 takes precedence. |
| 841 **/ |
| 842 bool has_TR2() const { |
| 843 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2",
"", NULL)); |
| 844 } |
| 845 |
| 846 bool isTR2AFunction() const { |
| 847 SkPdfObject* ret = NULL; |
| 848 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", ""
, &ret)) return false; |
| 849 return ret->podofo()->GetDataType() == ePdfDataType_Reference; |
| 850 } |
| 851 |
| 852 SkPdfFunction getTR2AsFunction() const { |
| 853 SkPdfFunction ret = SkPdfFunction(); |
| 854 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "
", &ret)) return ret; |
| 855 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 856 return SkPdfFunction(); |
| 857 } |
| 858 |
| 859 bool isTR2AArray() const { |
| 860 SkPdfObject* ret = NULL; |
| 861 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", ""
, &ret)) return false; |
| 862 return ret->podofo()->GetDataType() == ePdfDataType_Array; |
| 863 } |
| 864 |
| 865 SkPdfArray* getTR2AsArray() const { |
| 866 SkPdfArray* ret = NULL; |
| 867 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "",
&ret)) return ret; |
| 868 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 869 return NULL; |
| 870 } |
| 871 |
| 872 bool isTR2AName() const { |
| 873 SkPdfObject* ret = NULL; |
| 874 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", ""
, &ret)) return false; |
| 875 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 876 } |
| 877 |
| 878 std::string getTR2AsName() const { |
| 879 std::string ret = ""; |
| 880 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &
ret)) return ret; |
| 881 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 882 return ""; |
| 883 } |
| 884 |
| 885 /** (Optional) The halftone dictionary or stream (see Section 6.4, "Halftones") |
| 886 * or the name Default, denoting the halftone that was in effect at the start o
f the |
| 887 * page. |
| 888 **/ |
| 889 bool has_HT() const { |
| 890 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT",
"", NULL)); |
| 891 } |
| 892 |
| 893 bool isHTADictionary() const { |
| 894 SkPdfObject* ret = NULL; |
| 895 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; |
| 896 return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; |
| 897 } |
| 898 |
| 899 SkPdfDictionary* getHTAsDictionary() const { |
| 900 SkPdfDictionary* ret = NULL; |
| 901 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT",
"", &ret)) return ret; |
| 902 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 903 return NULL; |
| 904 } |
| 905 |
| 906 bool isHTAStream() const { |
| 907 SkPdfObject* ret = NULL; |
| 908 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; |
| 909 return ret->podofo()->HasStream(); |
| 910 } |
| 911 |
| 912 SkPdfStream* getHTAsStream() const { |
| 913 SkPdfStream* ret = NULL; |
| 914 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return ret; |
| 915 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 916 return NULL; |
| 917 } |
| 918 |
| 919 bool isHTAName() const { |
| 920 SkPdfObject* ret = NULL; |
| 921 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; |
| 922 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 923 } |
| 924 |
| 925 std::string getHTAsName() const { |
| 926 std::string ret = ""; |
| 927 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &r
et)) return ret; |
| 928 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 929 return ""; |
| 930 } |
| 931 |
| 932 /** (Optional; PDF 1.3) The flatness tolerance (see Section 6.5.1, "Flatness Tol
er- |
| 933 * ance"). |
| 934 **/ |
| 935 bool has_FL() const { |
| 936 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL",
"", NULL)); |
| 937 } |
| 938 |
| 939 double FL() const { |
| 940 double ret; |
| 941 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL", "",
&ret)) return ret; |
| 942 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 943 return 0; |
| 944 } |
| 945 |
| 946 /** (Optional; PDF 1.3) The smoothness tolerance (see Section 6.5.2, "Smooth- |
| 947 * ness Tolerance"). |
| 948 **/ |
| 949 bool has_SM() const { |
| 950 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM",
"", NULL)); |
| 951 } |
| 952 |
| 953 double SM() const { |
| 954 double ret; |
| 955 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM", "",
&ret)) return ret; |
| 956 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 957 return 0; |
| 958 } |
| 959 |
| 960 /** (Optional) A flag specifying whether to apply automatic stroke adjustment |
| 961 * (see Section 6.5.4, "Automatic Stroke Adjustment"). |
| 962 **/ |
| 963 bool has_SA() const { |
| 964 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SA",
"", NULL)); |
| 965 } |
| 966 |
| 967 bool SA() const { |
| 968 bool ret; |
| 969 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SA", "", &r
et)) return ret; |
| 970 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 971 return false; |
| 972 } |
| 973 |
| 974 /** (Optional; PDF 1.4) The current blend mode to be used in the transparent |
| 975 * imaging model (see Sections 7.2.4, "Blend Mode," and 7.5.2, "Specifying |
| 976 * Blending Color Space and Blend Mode"). |
| 977 **/ |
| 978 bool has_BM() const { |
| 979 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM",
"", NULL)); |
| 980 } |
| 981 |
| 982 bool isBMAName() const { |
| 983 SkPdfObject* ret = NULL; |
| 984 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "",
&ret)) return false; |
| 985 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 986 } |
| 987 |
| 988 std::string getBMAsName() const { |
| 989 std::string ret = ""; |
| 990 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &r
et)) return ret; |
| 991 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 992 return ""; |
| 993 } |
| 994 |
| 995 bool isBMAArray() const { |
| 996 SkPdfObject* ret = NULL; |
| 997 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "",
&ret)) return false; |
| 998 return ret->podofo()->GetDataType() == ePdfDataType_Array; |
| 999 } |
| 1000 |
| 1001 SkPdfArray* getBMAsArray() const { |
| 1002 SkPdfArray* ret = NULL; |
| 1003 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &
ret)) return ret; |
| 1004 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1005 return NULL; |
| 1006 } |
| 1007 |
| 1008 /** (Optional; PDF 1.4) The current soft mask, specifying the mask shape or |
| 1009 * mask opacity values to be used in the transparent imaging model (see |
| 1010 * "Source Shape and Opacity" on page 421 and "Mask Shape and Opacity" on |
| 1011 * page 443). |
| 1012 * Note: Although the current soft mask is sometimes referred to as a "soft cli
p," |
| 1013 * altering it with the gs operator completely replaces the old value with the
new |
| 1014 * one, rather than intersecting the two as is done with the current clipping p
ath |
| 1015 * parameter (see Section 4.4.3, "Clipping Path Operators"). |
| 1016 **/ |
| 1017 bool has_SMask() const { |
| 1018 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask
", "", NULL)); |
| 1019 } |
| 1020 |
| 1021 bool isSMaskADictionary() const { |
| 1022 SkPdfObject* ret = NULL; |
| 1023 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask",
"", &ret)) return false; |
| 1024 return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; |
| 1025 } |
| 1026 |
| 1027 SkPdfDictionary* getSMaskAsDictionary() const { |
| 1028 SkPdfDictionary* ret = NULL; |
| 1029 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask
", "", &ret)) return ret; |
| 1030 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1031 return NULL; |
| 1032 } |
| 1033 |
| 1034 bool isSMaskAName() const { |
| 1035 SkPdfObject* ret = NULL; |
| 1036 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask",
"", &ret)) return false; |
| 1037 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
| 1038 } |
| 1039 |
| 1040 std::string getSMaskAsName() const { |
| 1041 std::string ret = ""; |
| 1042 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "",
&ret)) return ret; |
| 1043 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1044 return ""; |
| 1045 } |
| 1046 |
| 1047 /** (Optional; PDF 1.4) The current stroking alpha constant, specifying the con- |
| 1048 * stant shape or constant opacity value to be used for stroking operations in
the |
| 1049 * transparent imaging model (see "Source Shape and Opacity" on page 421 |
| 1050 * and "Constant Shape and Opacity" on page 444). |
| 1051 **/ |
| 1052 bool has_CA() const { |
| 1053 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA",
"", NULL)); |
| 1054 } |
| 1055 |
| 1056 double CA() const { |
| 1057 double ret; |
| 1058 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "",
&ret)) return ret; |
| 1059 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1060 return 0; |
| 1061 } |
| 1062 |
| 1063 /** (Optional; PDF 1.4) Same as CA, but for nonstroking operations. |
| 1064 **/ |
| 1065 bool has_ca() const { |
| 1066 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca",
"", NULL)); |
| 1067 } |
| 1068 |
| 1069 double ca() const { |
| 1070 double ret; |
| 1071 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca", "",
&ret)) return ret; |
| 1072 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1073 return 0; |
| 1074 } |
| 1075 |
| 1076 /** (Optional; PDF 1.4) The alpha source flag ("alpha is shape"), specifying |
| 1077 * whether the current soft mask and alpha constant are to be interpreted as |
| 1078 * shape values (true) or opacity values (false). |
| 1079 **/ |
| 1080 bool has_AIS() const { |
| 1081 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS",
"", NULL)); |
| 1082 } |
| 1083 |
| 1084 bool AIS() const { |
| 1085 bool ret; |
| 1086 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS", "", &
ret)) return ret; |
| 1087 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1088 return false; |
| 1089 } |
| 1090 |
| 1091 /** (Optional; PDF 1.4) The text knockout flag, which determines the behavior |
| 1092 * of overlapping glyphs within a text object in the transparent imaging model |
| 1093 * (see Section 5.2.7, "Text Knockout"). |
| 1094 **/ |
| 1095 bool has_TK() const { |
| 1096 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK",
"", NULL)); |
| 1097 } |
| 1098 |
| 1099 bool TK() const { |
| 1100 bool ret; |
| 1101 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", &r
et)) return ret; |
| 1102 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 1103 return false; |
| 1104 } |
| 1105 |
| 1106 }; |
| 1107 |
| 1108 #endif // __DEFINED__SkPdfGraphicsStateDictionary |
OLD | NEW |