OLD | NEW |
(Empty) | |
| 1 #ifndef __DEFINED__SkPdfFontDescriptorDictionary |
| 2 #define __DEFINED__SkPdfFontDescriptorDictionary |
| 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 font descriptors |
| 10 class SkPdfFontDescriptorDictionary : public SkPdfDictionary { |
| 11 public: |
| 12 virtual SkPdfObjectType getType() const { return kFontDescriptorDictionary_SkP
dfObjectType;} |
| 13 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFontDes
criptorDictionary_SkPdfObjectType + 1);} |
| 14 public: |
| 15 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return th
is;} |
| 16 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {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 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 SkPdfFontDescriptorDictionary(const PdfMemDocument* podofoDoc = NULL, const Pd
fObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 521 |
| 522 SkPdfFontDescriptorDictionary(const SkPdfFontDescriptorDictionary& from) : SkP
dfDictionary(from.fPodofoDoc, from.fPodofoObj) {} |
| 523 |
| 524 virtual bool valid() const {return true;} |
| 525 |
| 526 SkPdfFontDescriptorDictionary& operator=(const SkPdfFontDescriptorDictionary&
from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; r
eturn *this;} |
| 527 |
| 528 /** (Required) The type of PDF object that this dictionary describes; must be |
| 529 * FontDescriptor for a font descriptor. |
| 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 PostScript name of the font. This should be the same as the |
| 543 * value of BaseFont in the font or CIDFont dictionary that refers to this font |
| 544 * descriptor. |
| 545 **/ |
| 546 bool has_FontName() const { |
| 547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontN
ame", "", NULL)); |
| 548 } |
| 549 |
| 550 std::string FontName() const { |
| 551 std::string ret; |
| 552 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontName",
"", &ret)) return ret; |
| 553 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 554 return ""; |
| 555 } |
| 556 |
| 557 /** (Required) A collection of flags defining various characteristics of the fon
t |
| 558 * (see Section 5.7.1, "Font Descriptor Flags"). |
| 559 **/ |
| 560 bool has_Flags() const { |
| 561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags
", "", NULL)); |
| 562 } |
| 563 |
| 564 long Flags() const { |
| 565 long ret; |
| 566 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "",
&ret)) return ret; |
| 567 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 568 return 0; |
| 569 } |
| 570 |
| 571 /** (Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the |
| 572 * glyph coordinate system, specifying the font bounding box. This is the small
- |
| 573 * est rectangle enclosing the shape that would result if all of the glyphs of
the |
| 574 * font were placed with their origins coincident and then filled. |
| 575 **/ |
| 576 bool has_FontBBox() const { |
| 577 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontB
Box", "", NULL)); |
| 578 } |
| 579 |
| 580 SkRect* FontBBox() const { |
| 581 SkRect* ret; |
| 582 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox"
, "", &ret)) return ret; |
| 583 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 584 return NULL; |
| 585 } |
| 586 |
| 587 /** (Required) The angle, expressed in degrees counterclockwise from the verti- |
| 588 * cal, of the dominant vertical strokes of the font. (For example, the 9-o'clo
ck |
| 589 * position is 90 degrees, and the 3-o'clock position is '90 degrees.) The valu
e is |
| 590 * negative for fonts that slope to the right, as almost all italic fonts do. |
| 591 **/ |
| 592 bool has_ItalicAngle() const { |
| 593 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Itali
cAngle", "", NULL)); |
| 594 } |
| 595 |
| 596 double ItalicAngle() const { |
| 597 double ret; |
| 598 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ItalicAng
le", "", &ret)) return ret; |
| 599 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 600 return 0; |
| 601 } |
| 602 |
| 603 /** (Required) The maximum height above the baseline reached by glyphs in this |
| 604 * font, excluding the height of glyphs for accented characters. |
| 605 **/ |
| 606 bool has_Ascent() const { |
| 607 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascen
t", "", NULL)); |
| 608 } |
| 609 |
| 610 double Ascent() const { |
| 611 double ret; |
| 612 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascent",
"", &ret)) return ret; |
| 613 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 614 return 0; |
| 615 } |
| 616 |
| 617 /** (Required) The maximum depth below the baseline reached by glyphs in this |
| 618 * font. The value is a negative number. |
| 619 **/ |
| 620 bool has_Descent() const { |
| 621 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Desce
nt", "", NULL)); |
| 622 } |
| 623 |
| 624 double Descent() const { |
| 625 double ret; |
| 626 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Descent",
"", &ret)) return ret; |
| 627 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 628 return 0; |
| 629 } |
| 630 |
| 631 /** (Optional) The desired spacing between baselines of consecutive lines of tex
t. |
| 632 * Default value: 0. |
| 633 **/ |
| 634 bool has_Leading() const { |
| 635 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leadi
ng", "", NULL)); |
| 636 } |
| 637 |
| 638 double Leading() const { |
| 639 double ret; |
| 640 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leading",
"", &ret)) return ret; |
| 641 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 642 return 0; |
| 643 } |
| 644 |
| 645 /** (Required) The vertical coordinate of the top of flat capital letters, measu
red |
| 646 * from the baseline. |
| 647 **/ |
| 648 bool has_CapHeight() const { |
| 649 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHe
ight", "", NULL)); |
| 650 } |
| 651 |
| 652 double CapHeight() const { |
| 653 double ret; |
| 654 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHeight
", "", &ret)) return ret; |
| 655 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 656 return 0; |
| 657 } |
| 658 |
| 659 /** (Optional) The font's x height: the vertical coordinate of the top of flat n
on- |
| 660 * ascending lowercase letters (like the letter x), measured from the baseline. |
| 661 * Default value: 0. |
| 662 **/ |
| 663 bool has_XHeight() const { |
| 664 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeig
ht", "", NULL)); |
| 665 } |
| 666 |
| 667 double XHeight() const { |
| 668 double ret; |
| 669 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeight",
"", &ret)) return ret; |
| 670 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 671 return 0; |
| 672 } |
| 673 |
| 674 /** (Required) The thickness, measured horizontally, of the dominant vertical |
| 675 * stems of glyphs in the font. |
| 676 **/ |
| 677 bool has_StemV() const { |
| 678 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV
", "", NULL)); |
| 679 } |
| 680 |
| 681 double StemV() const { |
| 682 double ret; |
| 683 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV", "
", &ret)) return ret; |
| 684 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 685 return 0; |
| 686 } |
| 687 |
| 688 /** (Optional) The thickness, measured invertically, of the dominant horizontal |
| 689 * stems of glyphs in the font. Default value: 0. |
| 690 **/ |
| 691 bool has_StemH() const { |
| 692 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH
", "", NULL)); |
| 693 } |
| 694 |
| 695 double StemH() const { |
| 696 double ret; |
| 697 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH", "
", &ret)) return ret; |
| 698 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 699 return 0; |
| 700 } |
| 701 |
| 702 /** (Optional) The average width of glyphs in the font. Default value: 0. |
| 703 **/ |
| 704 bool has_AvgWidth() const { |
| 705 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWi
dth", "", NULL)); |
| 706 } |
| 707 |
| 708 double AvgWidth() const { |
| 709 double ret; |
| 710 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWidth"
, "", &ret)) return ret; |
| 711 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 712 return 0; |
| 713 } |
| 714 |
| 715 /** (Optional) The maximum width of glyphs in the font. Default value: 0. |
| 716 **/ |
| 717 bool has_MaxWidth() const { |
| 718 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWi
dth", "", NULL)); |
| 719 } |
| 720 |
| 721 double MaxWidth() const { |
| 722 double ret; |
| 723 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWidth"
, "", &ret)) return ret; |
| 724 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 725 return 0; |
| 726 } |
| 727 |
| 728 /** (Optional) The width to use for character codes whose widths are not speci- |
| 729 * fied in a font dictionary's Widths array. This has a predictable effect only
if all |
| 730 * such codes map to glyphs whose actual widths are the same as the Missing- |
| 731 * Width value. Default value: 0. |
| 732 **/ |
| 733 bool has_MissingWidth() const { |
| 734 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Missi
ngWidth", "", NULL)); |
| 735 } |
| 736 |
| 737 double MissingWidth() const { |
| 738 double ret; |
| 739 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MissingWi
dth", "", &ret)) return ret; |
| 740 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 741 return 0; |
| 742 } |
| 743 |
| 744 /** (Optional) A stream containing a Type 1 font program (see Section 5.8, |
| 745 * "Embedded Font Programs"). |
| 746 **/ |
| 747 bool has_FontFile() const { |
| 748 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontF
ile", "", NULL)); |
| 749 } |
| 750 |
| 751 SkPdfStream* FontFile() const { |
| 752 SkPdfStream* ret; |
| 753 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile"
, "", &ret)) return ret; |
| 754 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 755 return NULL; |
| 756 } |
| 757 |
| 758 /** (Optional; PDF 1.1) A stream containing a TrueType font program (see Sec- |
| 759 * tion 5.8, "Embedded Font Programs"). |
| 760 **/ |
| 761 bool has_FontFile2() const { |
| 762 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontF
ile2", "", NULL)); |
| 763 } |
| 764 |
| 765 SkPdfStream* FontFile2() const { |
| 766 SkPdfStream* ret; |
| 767 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2
", "", &ret)) return ret; |
| 768 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 769 return NULL; |
| 770 } |
| 771 |
| 772 /** (Optional; PDF 1.2) A stream containing a font program other than Type 1 or |
| 773 * TrueType. The format of the font program is specified by the Subtype entry |
| 774 * in the stream dictionary (see Section 5.8, "Embedded Font Programs," and |
| 775 * implementation note 49 in Appendix H). |
| 776 * At most, only one of the FontFile, FontFile2, and FontFile3 entries may be |
| 777 * present. |
| 778 **/ |
| 779 bool has_FontFile3() const { |
| 780 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontF
ile3", "", NULL)); |
| 781 } |
| 782 |
| 783 SkPdfStream* FontFile3() const { |
| 784 SkPdfStream* ret; |
| 785 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3
", "", &ret)) return ret; |
| 786 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 787 return NULL; |
| 788 } |
| 789 |
| 790 /** (Optional; meaningful only in Type 1 fonts; PDF 1.1) A string listing the ch
ar- |
| 791 * acter names defined in a font subset. The names in this string must be in PD
F |
| 792 * syntax-that is, each name preceded by a slash (/). The names can appear in |
| 793 * any order. The name .notdef should be omitted; it is assumed to exist in the |
| 794 * font subset. If this entry is absent, the only indication of a font subset i
s the |
| 795 * subset tag in the FontName entry (see Section 5.5.3, "Font Subsets"). |
| 796 **/ |
| 797 bool has_CharSet() const { |
| 798 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharS
et", "", NULL)); |
| 799 } |
| 800 |
| 801 std::string CharSet() const { |
| 802 std::string ret; |
| 803 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharSet",
"", &ret)) return ret; |
| 804 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 805 return ""; |
| 806 } |
| 807 |
| 808 }; |
| 809 |
| 810 #endif // __DEFINED__SkPdfFontDescriptorDictionary |
OLD | NEW |