From b857a0c7de8cffb09281fa59591649fb1db6ad0a Mon Sep 17 00:00:00 2001 From: "edisonn@google.com" Date: Tue, 25 Jun 2013 20:45:40 +0000 Subject: Basic support for Type3 Fonts in Pdf + various refactorings Review URL: https://codereview.chromium.org/17748002 git-svn-id: http://skia.googlecode.com/svn/trunk@9757 2bbb7eff-a529-9590-31e7-b0007b416f81 --- .../SkPdfALinkAnnotationDictionary_autogen.h | 650 +++ .../autogen/SkPdfActionDictionary_autogen.h | 593 +++ .../SkPdfAlternateImageDictionary_autogen.h | 559 ++ .../SkPdfAnnotationActionsDictionary_autogen.h | 617 +++ .../autogen/SkPdfAnnotationDictionary_autogen.h | 865 +++ ...dfAppearanceCharacteristicsDictionary_autogen.h | 709 +++ .../autogen/SkPdfAppearanceDictionary_autogen.h | 628 +++ .../SkPdfApplicationDataDictionary_autogen.h | 558 ++ .../PdfViewer/autogen/SkPdfArray_autogen.h | 564 ++ .../autogen/SkPdfArtifactsDictionary_autogen.h | 577 ++ .../SkPdfAttributeObjectDictionary_autogen.h | 544 ++ .../autogen/SkPdfBeadDictionary_autogen.h | 615 +++ ...BlockLevelStructureElementsDictionary_autogen.h | 819 +++ .../PdfViewer/autogen/SkPdfBoolean_autogen.h | 563 ++ .../autogen/SkPdfBorderStyleDictionary_autogen.h | 599 +++ .../SkPdfBoxColorInformationDictionary_autogen.h | 590 +++ .../autogen/SkPdfBoxStyleDictionary_autogen.h | 593 +++ .../SkPdfCIDFontDescriptorDictionary_autogen.h | 597 +++ .../autogen/SkPdfCIDFontDictionary_autogen.h | 222 + .../autogen/SkPdfCIDSystemInfoDictionary_autogen.h | 577 ++ .../autogen/SkPdfCMapDictionary_autogen.h | 659 +++ .../SkPdfCalgrayColorSpaceDictionary_autogen.h | 577 ++ .../SkPdfCalrgbColorSpaceDictionary_autogen.h | 591 +++ .../autogen/SkPdfCatalogDictionary_autogen.h | 908 ++++ .../SkPdfCcittfaxdecodeFilterDictionary_autogen.h | 669 +++ .../autogen/SkPdfCheckboxFieldDictionary_autogen.h | 544 ++ .../autogen/SkPdfChoiceFieldDictionary_autogen.h | 580 ++ ...SkPdfComponentsWithMetadataDictionary_autogen.h | 543 ++ .../SkPdfDctdecodeFilterDictionary_autogen.h | 560 ++ .../SkPdfDeviceNColorSpaceDictionary_autogen.h | 554 ++ .../PdfViewer/autogen/SkPdfDictionary_autogen.h | 63 + ...SkPdfDocumentCatalogActionsDictionary_autogen.h | 600 +++ .../SkPdfDocumentInformationDictionary_autogen.h | 668 +++ .../SkPdfEmbeddedFileParameterDictionary_autogen.h | 600 +++ .../SkPdfEmbeddedFileStreamDictionary_autogen.h | 577 ++ .../SkPdfEmbeddedFontStreamDictionary_autogen.h | 606 +++ .../autogen/SkPdfEncodingDictionary_autogen.h | 595 +++ ...EncryptedEmbeddedFileStreamDictionary_autogen.h | 545 ++ .../SkPdfEncryptionCommonDictionary_autogen.h | 583 ++ .../PdfViewer/autogen/SkPdfEnums_autogen.h | 374 ++ .../autogen/SkPdfFDFCatalogDictionary_autogen.h | 563 ++ .../PdfViewer/autogen/SkPdfFDFDictionary_autogen.h | 716 +++ .../autogen/SkPdfFDFFieldDictionary_autogen.h | 766 +++ .../SkPdfFDFFileAnnotationDictionary_autogen.h | 544 ++ .../SkPdfFDFNamedPageReferenceDictionary_autogen.h | 557 ++ .../autogen/SkPdfFDFPageDictionary_autogen.h | 559 ++ .../autogen/SkPdfFDFTemplateDictionary_autogen.h | 574 ++ .../autogen/SkPdfFDFTrailerDictionary_autogen.h | 544 ++ .../autogen/SkPdfFieldDictionary_autogen.h | 689 +++ ...PdfFileAttachmentAnnotationDictionary_autogen.h | 593 +++ .../SkPdfFileSpecificationDictionary_autogen.h | 689 +++ .../autogen/SkPdfFileTrailerDictionary_autogen.h | 615 +++ .../SkPdfFontDescriptorDictionary_autogen.h | 810 +++ .../autogen/SkPdfFontDictionary_autogen.h | 511 ++ .../SkPdfFormFieldActionsDictionary_autogen.h | 592 +++ .../SkPdfFreeTextAnnotationDictionary_autogen.h | 591 +++ .../SkPdfFunctionCommonDictionary_autogen.h | 582 ++ .../autogen/SkPdfGoToActionDictionary_autogen.h | 589 +++ .../autogen/SkPdfGraphicsStateDictionary_autogen.h | 1108 ++++ .../SkPdfGroupAttributesDictionary_autogen.h | 562 ++ .../PdfViewer/autogen/SkPdfHeaders_autogen.h | 184 + .../PdfViewer/autogen/SkPdfHexString_autogen.h | 32 + .../autogen/SkPdfHideActionDictionary_autogen.h | 609 +++ .../SkPdfIccProfileStreamDictionary_autogen.h | 617 +++ .../autogen/SkPdfIconFitDictionary_autogen.h | 586 ++ .../autogen/SkPdfImageDictionary_autogen.h | 361 ++ .../SkPdfImportDataActionDictionary_autogen.h | 558 ++ .../autogen/SkPdfInkAnnotationDictionary_autogen.h | 592 +++ ...nlineLevelStructureElementsDictionary_autogen.h | 572 ++ .../PdfViewer/autogen/SkPdfInteger_autogen.h | 560 ++ .../SkPdfInteractiveFormDictionary_autogen.h | 633 +++ .../SkPdfJavascriptActionDictionary_autogen.h | 579 ++ .../autogen/SkPdfJavascriptDictionary_autogen.h | 617 +++ .../SkPdfJbig2DecodeFilterDictionary_autogen.h | 545 ++ .../autogen/SkPdfLabColorSpaceDictionary_autogen.h | 581 ++ .../autogen/SkPdfLaunchActionDictionary_autogen.h | 618 +++ .../SkPdfLineAnnotationDictionary_autogen.h | 621 +++ .../autogen/SkPdfListAttributeDictionary_autogen.h | 560 ++ ...decodeAndFlatedecodeFiltersDictionary_autogen.h | 609 +++ .../SkPdfMacOsFileInformationDictionary_autogen.h | 569 ++ .../SkPdfMarkInformationDictionary_autogen.h | 544 ++ ...SkPdfMarkedContentReferenceDictionary_autogen.h | 607 +++ .../SkPdfMarkupAnnotationsDictionary_autogen.h | 591 +++ .../SkPdfMetadataStreamDictionary_autogen.h | 558 ++ .../autogen/SkPdfMovieActionDictionary_autogen.h | 595 +++ .../SkPdfMovieActivationDictionary_autogen.h | 689 +++ .../SkPdfMovieAnnotationDictionary_autogen.h | 611 +++ .../autogen/SkPdfMovieDictionary_autogen.h | 610 +++ .../SkPdfMultiMasterFontDictionary_autogen.h | 48 + .../autogen/SkPdfNameDictionary_autogen.h | 794 +++ .../autogen/SkPdfNameTreeNodeDictionary_autogen.h | 577 ++ experimental/PdfViewer/autogen/SkPdfName_autogen.h | 563 ++ .../autogen/SkPdfNamedActionsDictionary_autogen.h | 557 ++ experimental/PdfViewer/autogen/SkPdfNull_autogen.h | 562 ++ .../SkPdfNumberTreeNodeDictionary_autogen.h | 578 ++ .../PdfViewer/autogen/SkPdfNumber_autogen.h | 32 + .../SkPdfObjectReferenceDictionary_autogen.h | 573 ++ .../PdfViewer/autogen/SkPdfObject_autogen.h | 568 ++ .../autogen/SkPdfOpiVersionDictionary_autogen.h | 545 ++ .../autogen/SkPdfOutlineDictionary_autogen.h | 587 ++ .../autogen/SkPdfOutlineItemDictionary_autogen.h | 738 +++ .../SkPdfPDF_XOutputIntentDictionary_autogen.h | 655 +++ .../autogen/SkPdfPSXobjectDictionary_autogen.h | 573 ++ .../autogen/SkPdfPageLabelDictionary_autogen.h | 594 +++ .../SkPdfPageObjectActionsDictionary_autogen.h | 563 ++ .../autogen/SkPdfPageObjectDictionary_autogen.h | 943 ++++ .../autogen/SkPdfPagePieceDictionary_autogen.h | 545 ++ .../autogen/SkPdfPageTreeNodeDictionary_autogen.h | 586 ++ .../PdfViewer/autogen/SkPdfPodofoMapper_autogen.h | 3083 +++++++++++ .../SkPdfPopUpAnnotationDictionary_autogen.h | 591 +++ .../SkPdfPrinterMarkAnnotationDictionary_autogen.h | 558 ++ .../SkPdfPrinterMarkFormDictionary_autogen.h | 562 ++ .../SkPdfRadioButtonFieldDictionary_autogen.h | 547 ++ .../autogen/SkPdfReferenceDictionary_autogen.h | 595 +++ .../PdfViewer/autogen/SkPdfReference_autogen.h | 562 ++ .../SkPdfRemoteGoToActionDictionary_autogen.h | 623 +++ .../SkPdfResetFormActionDictionary_autogen.h | 578 ++ .../autogen/SkPdfResourceDictionary_autogen.h | 643 +++ .../SkPdfRubberStampAnnotationDictionary_autogen.h | 581 ++ .../autogen/SkPdfSeparationDictionary_autogen.h | 602 +++ .../autogen/SkPdfShadingDictionary_autogen.h | 626 +++ .../autogen/SkPdfSignatureDictionary_autogen.h | 655 +++ .../autogen/SkPdfSoftMaskDictionary_autogen.h | 638 +++ .../autogen/SkPdfSoftMaskImageDictionary_autogen.h | 548 ++ .../autogen/SkPdfSoundActionDictionary_autogen.h | 619 +++ .../SkPdfSoundAnnotationDictionary_autogen.h | 592 +++ .../autogen/SkPdfSoundObjectDictionary_autogen.h | 634 +++ .../SkPdfSourceInformationDictionary_autogen.h | 626 +++ .../SkPdfSquareOrCircleAnnotation_autogen.h | 591 +++ ...kPdfStandardSecurityHandlerDictionary_autogen.h | 593 +++ .../SkPdfStandardStructureDictionary_autogen.h | 617 +++ .../autogen/SkPdfStreamCommonDictionary_autogen.h | 712 +++ .../PdfViewer/autogen/SkPdfStream_autogen.h | 562 ++ .../PdfViewer/autogen/SkPdfString_autogen.h | 560 ++ ...SkPdfStructureElementAccessDictionary_autogen.h | 562 ++ .../SkPdfStructureElementDictionary_autogen.h | 767 +++ .../SkPdfStructureTreeRootDictionary_autogen.h | 704 +++ .../SkPdfSubmitFormActionDictionary_autogen.h | 597 +++ .../SkPdfTableAttributesDictionary_autogen.h | 560 ++ .../SkPdfTextAnnotationDictionary_autogen.h | 593 +++ .../autogen/SkPdfTextFieldDictionary_autogen.h | 543 ++ .../autogen/SkPdfThreadActionDictionary_autogen.h | 649 +++ .../autogen/SkPdfThreadDictionary_autogen.h | 573 ++ .../autogen/SkPdfTransitionDictionary_autogen.h | 646 +++ .../SkPdfTransparencyGroupDictionary_autogen.h | 606 +++ .../SkPdfTrapNetworkAnnotationDictionary_autogen.h | 634 +++ ...TrapNetworkAppearanceStreamDictionary_autogen.h | 602 +++ .../autogen/SkPdfTrueTypeFontDictionary_autogen.h | 48 + .../autogen/SkPdfType0FontDictionary_autogen.h | 163 + .../autogen/SkPdfType0FunctionDictionary_autogen.h | 604 +++ .../SkPdfType10HalftoneDictionary_autogen.h | 635 +++ .../SkPdfType16HalftoneDictionary_autogen.h | 667 +++ .../autogen/SkPdfType1FontDictionary_autogen.h | 219 + .../autogen/SkPdfType1FormDictionary_autogen.h | 282 + .../autogen/SkPdfType1HalftoneDictionary_autogen.h | 689 +++ .../autogen/SkPdfType1PatternDictionary_autogen.h | 581 ++ .../autogen/SkPdfType1ShadingDictionary_autogen.h | 97 + .../autogen/SkPdfType2FunctionDictionary_autogen.h | 572 ++ .../autogen/SkPdfType2PatternDictionary_autogen.h | 625 +++ .../autogen/SkPdfType2ShadingDictionary_autogen.h | 112 + .../autogen/SkPdfType3FontDictionary_autogen.h | 246 + .../autogen/SkPdfType3FunctionDictionary_autogen.h | 576 ++ .../autogen/SkPdfType3ShadingDictionary_autogen.h | 115 + .../autogen/SkPdfType4ShadingDictionary_autogen.h | 134 + .../autogen/SkPdfType5HalftoneDictionary_autogen.h | 643 +++ .../autogen/SkPdfType5ShadingDictionary_autogen.h | 133 + .../autogen/SkPdfType6HalftoneDictionary_autogen.h | 635 +++ .../autogen/SkPdfType6ShadingDictionary_autogen.h | 134 + .../autogen/SkPdfURIActionDictionary_autogen.h | 574 ++ .../PdfViewer/autogen/SkPdfURIDictionary_autogen.h | 548 ++ .../autogen/SkPdfURLAliasDictionary_autogen.h | 557 ++ .../SkPdfVariableTextFieldDictionary_autogen.h | 580 ++ .../SkPdfViewerPreferencesDictionary_autogen.h | 744 +++ .../SkPdfWebCaptureCommandDictionary_autogen.h | 644 +++ ...dfWebCaptureCommandSettingsDictionary_autogen.h | 560 ++ .../autogen/SkPdfWebCaptureDictionary_autogen.h | 654 +++ .../SkPdfWebCaptureImageSetDictionary_autogen.h | 581 ++ .../SkPdfWebCaptureInformationDictionary_autogen.h | 561 ++ .../SkPdfWebCapturePageSetDictionary_autogen.h | 572 ++ .../SkPdfWidgetAnnotationDictionary_autogen.h | 601 +++ .../SkPdfWindowsLaunchActionDictionary_autogen.h | 591 +++ .../autogen/SkPdfXObjectDictionary_autogen.h | 523 ++ experimental/PdfViewer/autogen/__init__.py | 0 experimental/PdfViewer/autogen/pdfspec_autogen.py | 5579 ++++++++++++++++++++ 184 files changed, 110691 insertions(+) create mode 100644 experimental/PdfViewer/autogen/SkPdfALinkAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAlternateImageDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAnnotationActionsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAppearanceCharacteristicsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAppearanceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfApplicationDataDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfArray_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfAttributeObjectDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBeadDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBlockLevelStructureElementsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBoolean_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBorderStyleDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBoxColorInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfBoxStyleDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCIDFontDescriptorDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCIDFontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCIDSystemInfoDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCMapDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCalgrayColorSpaceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCalrgbColorSpaceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCcittfaxdecodeFilterDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfCheckboxFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfComponentsWithMetadataDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfDctdecodeFilterDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfDeviceNColorSpaceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfDocumentCatalogActionsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfDocumentInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEmbeddedFileParameterDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEmbeddedFileStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEncodingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEncryptedEmbeddedFileStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfEnums_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFCatalogDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFFileAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFNamedPageReferenceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFPageDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFTemplateDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFDFTrailerDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFileAttachmentAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFileSpecificationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFontDescriptorDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFormFieldActionsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFreeTextAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfFunctionCommonDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfGoToActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfGraphicsStateDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfGroupAttributesDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfHeaders_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfHexString_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfHideActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfIccProfileStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfIconFitDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfImportDataActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfInkAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfInlineLevelStructureElementsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfInteger_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfInteractiveFormDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfJavascriptActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfJavascriptDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfJbig2DecodeFilterDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfLabColorSpaceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfLaunchActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfLineAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfListAttributeDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMacOsFileInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMarkInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMarkedContentReferenceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMarkupAnnotationsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMetadataStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMovieActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMovieActivationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMovieAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMovieDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfMultiMasterFontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNameDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNameTreeNodeDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfName_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNamedActionsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNull_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNumberTreeNodeDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfNumber_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfObject_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfOpiVersionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfOutlineDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfOutlineItemDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPDF_XOutputIntentDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPageLabelDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPageObjectActionsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPageObjectDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPagePieceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPageTreeNodeDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPopUpAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPrinterMarkAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfPrinterMarkFormDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfRadioButtonFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfReferenceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfReference_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfRemoteGoToActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfResetFormActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfResourceDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfRubberStampAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSeparationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSignatureDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSoftMaskDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSoftMaskImageDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSoundActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSoundAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSoundObjectDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSourceInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSquareOrCircleAnnotation_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStandardStructureDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStreamCommonDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStream_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfString_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStructureElementAccessDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfStructureTreeRootDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfSubmitFormActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTableAttributesDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTextAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTextFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfThreadActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfThreadDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTransitionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTransparencyGroupDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTrapNetworkAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfTrueTypeFontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType0FunctionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType10HalftoneDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType16HalftoneDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType1FontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType1FormDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType1HalftoneDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType1PatternDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType1ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType2FunctionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType2PatternDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType2ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType3FontDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType3FunctionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType5HalftoneDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType5ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType6HalftoneDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfType6ShadingDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfURIActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfURIDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfURLAliasDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfVariableTextFieldDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCaptureCommandDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCaptureCommandSettingsDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCaptureDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCaptureImageSetDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCaptureInformationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWebCapturePageSetDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfWindowsLaunchActionDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/SkPdfXObjectDictionary_autogen.h create mode 100644 experimental/PdfViewer/autogen/__init__.py create mode 100644 experimental/PdfViewer/autogen/pdfspec_autogen.py (limited to 'experimental/PdfViewer/autogen') diff --git a/experimental/PdfViewer/autogen/SkPdfALinkAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfALinkAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..920043b189 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfALinkAnnotationDictionary_autogen.h @@ -0,0 +1,650 @@ +#ifndef __DEFINED__SkPdfALinkAnnotationDictionary +#define __DEFINED__SkPdfALinkAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a link annotation +class SkPdfALinkAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kALinkAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kALinkAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return this;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return this;} + +private: + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfALinkAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfALinkAnnotationDictionary(const SkPdfALinkAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfALinkAnnotationDictionary& operator=(const SkPdfALinkAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Link + * for a link annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) An alternate representation of the annotation's contents in + * human-readable form, useful when extracting the document's contents in sup- + * port of accessibility to disabled users or for other purposes (see Section 9.8.2, + * "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; not permitted if an A entry is present) A destination to be displayed + * when the annotation is activated (see Section 8.2.1, "Destinations"; see also + * implementation note 66 in Appendix H). +**/ + bool has_Dest() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", NULL)); + } + + bool isDestAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getDestAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isDestAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDestAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDestAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDestAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.2) The annotation's highlighting mode, the visual effect to be + * used when the mouse button is pressed or held down inside its active area: + * N (None) No highlighting. + * I (Invert) Invert the contents of the annotation rectangle. + * O (Outline) Invert the annotation's border. + * P (Push) Display the annotation's down appearance, if any (see Section + * 8.4.4, "Appearance Streams"). If no down appearance is defined, offset + * the contents of the annotation rectangle to appear as if it were being + * "pushed" below the surface of the page. + * A highlighting mode other than P overrides any down appearance defined for + * the annotation. Default value: I. + * Note: In PDF 1.1, highlighting is always done by inverting colors inside the anno- + * tation rectangle. +**/ + bool has_H() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", NULL)); + } + + std::string H() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) A URI action (see "URI Actions" on page 523) formerly + * associated with this annotation. When Web Capture (Section 9.9, "Web Cap- + * ture") changes an annotation from a URI to a go-to action ("Go-To Actions" + * on page 519), it uses this entry to save the data from the original URI action so + * that it can be changed back in case the target page for the go-to action is subse- + * quently deleted. +**/ + bool has_PA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PA", "", NULL)); + } + + SkPdfDictionary* PA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfALinkAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfActionDictionary_autogen.h new file mode 100644 index 0000000000..b7fa6d0a63 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfActionDictionary_autogen.h @@ -0,0 +1,593 @@ +#ifndef __DEFINED__SkPdfActionDictionary +#define __DEFINED__SkPdfActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all action dictionaries +class SkPdfActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfActionDictionary* asActionDictionary() {return this;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfActionDictionary(const SkPdfActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfActionDictionary& operator=(const SkPdfActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be Action for an action dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of action that this dictionary describes; see Table 8.34 + * on page 518 for specific values. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.2) The next action, or sequence of actions, to be per- + * formed after this one. The value is either a single action dictionary or an + * array of action dictionaries to be performed in order; see below for fur- + * ther discussion. +**/ + bool has_Next() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", NULL)); + } + + bool isNextADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getNextAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isNextAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getNextAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAlternateImageDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAlternateImageDictionary_autogen.h new file mode 100644 index 0000000000..5ab6a9d26e --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAlternateImageDictionary_autogen.h @@ -0,0 +1,559 @@ +#ifndef __DEFINED__SkPdfAlternateImageDictionary +#define __DEFINED__SkPdfAlternateImageDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an alternate image dictionary +class SkPdfAlternateImageDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAlternateImageDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAlternateImageDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return this;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAlternateImageDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAlternateImageDictionary(const SkPdfAlternateImageDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAlternateImageDictionary& operator=(const SkPdfAlternateImageDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The image XObject for the alternate image. +**/ + bool has_Image() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "", NULL)); + } + + SkPdfStream* Image() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag indicating whether this alternate image is the default ver- + * sion to be used for printing. At most one alternate for a given base image may + * be so designated. If no alternate has this entry set to true, the base image itself + * is used for printing. +**/ + bool has_DefaultForPrinting() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DefaultForPrinting", "", NULL)); + } + + bool DefaultForPrinting() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DefaultForPrinting", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfAlternateImageDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAnnotationActionsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAnnotationActionsDictionary_autogen.h new file mode 100644 index 0000000000..01e1ffe181 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAnnotationActionsDictionary_autogen.h @@ -0,0 +1,617 @@ +#ifndef __DEFINED__SkPdfAnnotationActionsDictionary +#define __DEFINED__SkPdfAnnotationActionsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an annotation's additional-actions dictionary +class SkPdfAnnotationActionsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAnnotationActionsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAnnotationActionsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return this;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAnnotationActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAnnotationActionsDictionary(const SkPdfAnnotationActionsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAnnotationActionsDictionary& operator=(const SkPdfAnnotationActionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.2) An action to be performed when the cursor enters the annotation's + * active area. +**/ + bool has_E() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", NULL)); + } + + SkPdfDictionary* E() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An action to be performed when the cursor exits the annotation's + * active area. +**/ + bool has_X() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", "", NULL)); + } + + SkPdfDictionary* X() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An action to be performed when the mouse button is pressed + * inside the annotation's active area. (The name D stands for "down.") +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + SkPdfDictionary* D() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An action to be performed when the mouse button is released + * inside the annotation's active area. (The name U stands for "up.") + * Note: For backward compatibility, the A entry in an annotation dictionary, if present, + * takes precedence over this entry (see Table 8.10 on page 490). +**/ + bool has_U() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", NULL)); + } + + SkPdfDictionary* U() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2; widget annotations only) An action to be performed when the + * annotation receives the input focus. +**/ + bool has_Fo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", NULL)); + } + + SkPdfDictionary* Fo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2; widget annotations only) (Uppercase B, lowercase L) An action to + * be performed when the annotation loses the input focus. (The name Bl stands for + * "blurred.") +**/ + bool has_Bl() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", NULL)); + } + + SkPdfDictionary* Bl() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfAnnotationActionsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..5276f646ee --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.h @@ -0,0 +1,865 @@ +#ifndef __DEFINED__SkPdfAnnotationDictionary +#define __DEFINED__SkPdfAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all annotation dictionaries +class SkPdfAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return this;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAnnotationDictionary(const SkPdfAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAnnotationDictionary& operator=(const SkPdfAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Annot for an annotation dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of annotation that this dictionary describes; see Table + * 8.14 on page 499 for specific values. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required or optional, depending on the annotation type) Text to be displayed + * for the annotation or, if this type of annotation does not display text, an al- + * ternate description of the annotation's contents in human-readable form. In + * either case, this text is useful when extracting the document's contents in + * support of accessibility to disabled users or for other purposes (see Section + * 9.8.2, "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3; not used in FDF files) An indirect reference to the page + * object with which this annotation is associated. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + SkPdfDictionary* P() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The annotation rectangle, defining the location of the annotation + * on the page in default user space units. +**/ + bool has_Rect() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect", "", NULL)); + } + + SkRect* Rect() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) The annotation name, a text string uniquely identifying + * it among all the annotations on its page. +**/ + bool has_NM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NM", "", NULL)); + } + +/** (Optional; PDF 1.1) The date and time when the annotation was most + * recently modified. The preferred format is a date string as described in Sec- + * tion 3.8.2, "Dates," but viewer applications should be prepared to accept and + * display a string in any format. (See implementation note 59 in Appendix H.) +**/ + bool has_M() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", NULL)); + } + + bool isMADate() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfDate getMAsDate() const { + SkPdfDate ret = SkPdfDate(); + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + + bool isMAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getMAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.1) A set of flags specifying various characteristics of the an- + * notation (see Section 8.4.2, "Annotation Flags"). Default value: 0. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + long F() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.2) A border style dictionary specifying the characteristics of + * the annotation's border (see Section 8.4.3, "Border Styles"; see also imple- + * mentation note 60 in Appendix H). + * Note: This entry also specifies the width and dash pattern for the lines drawn by + * line, square, circle, and ink annotations. See the note under Border (below) for + * additional information. +**/ + bool has_BS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", NULL)); + } + + SkPdfDictionary* BS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array specifying the characteristics of the annotation's border. + * The border is specified as a "rounded rectangle." + * In PDF 1.0, the array consists of three numbers defining the horizontal cor- + * ner radius, vertical corner radius, and border width, all in default user space + * units. If the corner radii are 0, the border has square (not rounded) corners; + * if the border width is 0, no border is drawn. (See implementation note 61 in + * Appendix H.) + * In PDF 1.1, the array may have a fourth element, an optional dash array + * defining a pattern of dashes and gaps to be used in drawing the border. The + * dash array is specified in the same format as in the line dash pattern parame- + * ter of the graphics state (see "Line Dash Pattern" on page 155). For example, + * a Border value of [0 0 1 [3 2]] specifies a border 1 unit wide, with square + * corners, drawn with 3-unit dashes alternating with 2-unit gaps. Note that no + * dash phase is specified; the phase is assumed to be 0. (See implementation + * note 62 in Appendix H.) + * Note: In PDF 1.2 or later, annotations may ignore this entry and use the BS + * entry (see above) to specify their border styles instead. In PDF 1.2 and 1.3, only + * widget annotations do so; in PDF 1.4, all of the standard annotation types ex- + * cept Link (see Table 8.14 on page 499) use BS rather than Border if both are + * present. For backward compatibility, however, Border is still supported for all + * annotation types. + * Default value: [0 0 1]. +**/ + bool has_Border() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Border", "", NULL)); + } + + SkPdfArray* Border() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Border", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An appearance dictionary specifying how the annotation + * is presented visually on the page (see Section 8.4.4, "Appearance Streams"; + * see also implementation note 60 in Appendix H). +**/ + bool has_AP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", NULL)); + } + + SkPdfDictionary* AP() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the appearance dictionary AP contains one or more subdictionaries; + * PDF 1.2) The annotation's appearance state, which selects the applicable + * appearance stream from an appearance subdictionary (see Section 8.4.4, + * "Appearance Streams"; see also implementation note 60 in Appendix H). +**/ + bool has_AS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS", "", NULL)); + } + + std::string AS() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.1) An array of three numbers in the range 0.0 to 1.0, repre- + * senting the components of a color in the DeviceRGB color space. This color + * will be used for the following purposes: + * * The background of the annotation's icon when closed + * * The title bar of the annotation's pop-up window + * * The border of a link annotation +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfArray* C() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) The constant opacity value to be used in painting the + * annotation (see Sections 7.1, "Overview of Transparency," and 7.2.6, "Shape + * and Opacity Computations"). This value applies to all visible elements of + * the annotation in its closed state (including its background and border), but + * not to the pop-up window that appears when the annotation is opened. The + * specified value is used as the initial alpha constant (both stroking and non- + * stroking) for interpreting the annotation's appearance stream, if any (see + * Section 8.4.4, "Appearance Streams," and "Constant Shape and Opacity" on + * page 444). The implicit blend mode (see Section 7.2.4, "Blend Mode") is + * Normal. Default value: 1.0. + * Note: If no explicit appearance stream is defined for the annotation, it will be + * painted by implementation-dependent means that do not necessarily conform to + * the Adobe imaging model; in this case, the effect of this entry is implementation- + * dependent as well. + * Note: This entry is recognized by all of the standard annotation types listed in + * Table 8.14 on page 499 except Link, Movie, Widget, PrinterMark, and TrapNet. +**/ + bool has_CA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", NULL)); + } + + double CA() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.1) The text label to be displayed in the title bar of the anno- + * tation's pop-up window when open and active. +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) An indirect reference to a pop-up annotation for enter- + * ing or editing the text associated with this annotation. +**/ + bool has_Popup() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup", "", NULL)); + } + + SkPdfDictionary* Popup() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1) An action to be performed when the annotation is acti- + * vated (see Section 8.5, "Actions"). + * Note: This entry is not permitted in link annotations if a Dest entry is present + * (see "Link Annotations" on page 501). Also note that the A entry in movie anno- + * tations has a different meaning (see "Movie Annotations" on page 510). +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + SkPdfDictionary* A() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An additional-actions dictionary defining the anno- + * tation's behavior in response to various trigger events (see Section 8.5.2, + * "Trigger Events"). At the time of publication, this entry is used only by wid- + * get annotations. +**/ + bool has_AA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", NULL)); + } + + SkPdfDictionary* AA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the annotation is a structural content item; PDF 1.3) The integer + * key of the annotation's entry in the structural parent tree (see "Finding Struc- + * ture Elements from Content Items" on page 600). +**/ + bool has_StructParent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", NULL)); + } + + long StructParent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAppearanceCharacteristicsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAppearanceCharacteristicsDictionary_autogen.h new file mode 100644 index 0000000000..75a0038de7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAppearanceCharacteristicsDictionary_autogen.h @@ -0,0 +1,709 @@ +#ifndef __DEFINED__SkPdfAppearanceCharacteristicsDictionary +#define __DEFINED__SkPdfAppearanceCharacteristicsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an appearance characteristics dictionary +class SkPdfAppearanceCharacteristicsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAppearanceCharacteristicsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAppearanceCharacteristicsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return this;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAppearanceCharacteristicsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAppearanceCharacteristicsDictionary(const SkPdfAppearanceCharacteristicsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAppearanceCharacteristicsDictionary& operator=(const SkPdfAppearanceCharacteristicsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The number of degrees by which the widget annotation is rotated + * counterclockwise relative to the page. The value must be a multiple of 90. + * Default value: 0. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + long R() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color of the + * widget annotation's border. The number of array elements determines the color + * space in which the color is defined: + * 0 No color; transparent + * 1 DeviceGray + * 3 DeviceRGB + * 4 DeviceCMYK +**/ + bool has_BC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC", "", NULL)); + } + + SkPdfArray* BC() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of numbers in the range 0.0 to 1.0 specifying the color of the + * widget annotation's background. The number of array elements determines the + * color space, as described above for BC. +**/ + bool has_BG() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", NULL)); + } + + SkPdfArray* BG() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; button fields only) The widget annotation's normal caption, displayed + * when it is not interacting with the user. + * Note: Unlike the remaining entries listed below, which apply only to widget annota- + * tions associated with pushbutton fields (see "Pushbuttons" on page 539), the CA + * entry can be used with any type of button field, including checkboxes ("Checkboxes" + * on page 539) and radio buttons ("Radio Buttons" on page 540). +**/ + bool has_CA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", NULL)); + } + + std::string CA() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; pushbutton fields only) The widget annotation's rollover caption, dis- + * played when the user rolls the cursor into its active area without pressing the + * mouse button. +**/ + bool has_RC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RC", "", NULL)); + } + + std::string RC() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; pushbutton fields only) The widget annotation's alternate (down) + * caption, displayed when the mouse button is pressed within its active area. +**/ + bool has_AC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AC", "", NULL)); + } + + std::string AC() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; pushbutton fields only; must be an indirect reference) A form XObject + * defining the widget annotation's normal icon, displayed when it is not inter- + * acting with the user. +**/ + bool has_I() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL)); + } + + SkPdfStream* I() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; pushbutton fields only; must be an indirect reference) A form XObject + * defining the widget annotation's rollover icon, displayed when the user rolls the + * cursor into its active area without pressing the mouse button. +**/ + bool has_RI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", NULL)); + } + + SkPdfStream* RI() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; pushbutton fields only; must be an indirect reference) A form XObject + * defining the widget annotation's alternate (down) icon, displayed when the + * mouse button is pressed within its active area. +**/ + bool has_IX() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", NULL)); + } + + SkPdfStream* IX() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IX", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on page + * 566) specifying how to display the widget annotation's icon within its + * annotation rectangle. If present, the icon fit dictionary applies to all of the anno- + * tation's icons (normal, rollover, and alternate). +**/ + bool has_IF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", NULL)); + } + + SkPdfDictionary* IF() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; pushbutton fields only) A code indicating where to position the text of + * the widget annotation's caption relative to its icon: + * 0 No icon; caption only + * 1 No caption; icon only + * 2 Caption below the icon + * 3 Caption above the icon + * 4 Caption to the right of the icon + * 5 Caption to the left of the icon + * 6 Caption overlaid directly on the icon + * Default value: 0. +**/ + bool has_TP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP", "", NULL)); + } + + long TP() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfAppearanceCharacteristicsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAppearanceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAppearanceDictionary_autogen.h new file mode 100644 index 0000000000..15549160ed --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAppearanceDictionary_autogen.h @@ -0,0 +1,628 @@ +#ifndef __DEFINED__SkPdfAppearanceDictionary +#define __DEFINED__SkPdfAppearanceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an appearance dictionary +class SkPdfAppearanceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAppearanceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAppearanceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return this;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAppearanceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAppearanceDictionary(const SkPdfAppearanceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAppearanceDictionary& operator=(const SkPdfAppearanceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The annotation's normal appearance. +**/ + bool has_N() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL)); + } + + bool isNAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getNAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isNADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getNAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The annotation's rollover appearance. Default value: the value of + * the N entry. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + bool isRAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getRAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isRADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getRAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The annotation's down appearance. Default value: the value of the + * N entry. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + bool isDAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getDAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isDADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getDAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfAppearanceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfApplicationDataDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfApplicationDataDictionary_autogen.h new file mode 100644 index 0000000000..4bf61d8e50 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfApplicationDataDictionary_autogen.h @@ -0,0 +1,558 @@ +#ifndef __DEFINED__SkPdfApplicationDataDictionary +#define __DEFINED__SkPdfApplicationDataDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an application data dictionary +class SkPdfApplicationDataDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kApplicationDataDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kApplicationDataDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return this;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfApplicationDataDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfApplicationDataDictionary(const SkPdfApplicationDataDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfApplicationDataDictionary& operator=(const SkPdfApplicationDataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The date and time when the contents of the page or form + * were most recently modified by this application. +**/ + bool has_LastModified() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", NULL)); + } + + SkPdfDate LastModified() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) Any private data appropriate to the application, typically + * in the form of a dictionary. +**/ + bool has_Private() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Private", "", NULL)); + } + + SkPdfObject* Private() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Private", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfApplicationDataDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfArray_autogen.h b/experimental/PdfViewer/autogen/SkPdfArray_autogen.h new file mode 100644 index 0000000000..3c34ceab2a --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfArray_autogen.h @@ -0,0 +1,564 @@ +#ifndef __DEFINED__SkPdfArray +#define __DEFINED__SkPdfArray + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfArray : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kArray_SkPdfObjectType + 1);} +public: + virtual SkPdfArray* asArray() {return this;} + virtual const SkPdfArray* asArray() const {return this;} + +private: + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: + const int size() const {return fPodofoObj->GetArray().GetSize();} + SkPdfObject* operator[](int i) const { SkPdfObject* ret = NULL; skpdfmap(*fPodofoDoc, fPodofoObj->GetArray()[i], &ret); return ret; } +private: +public: + SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfArray(const SkPdfArray& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfArray diff --git a/experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.h new file mode 100644 index 0000000000..9cae2529cc --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.h @@ -0,0 +1,577 @@ +#ifndef __DEFINED__SkPdfArtifactsDictionary +#define __DEFINED__SkPdfArtifactsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Property list entries for artifacts +class SkPdfArtifactsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kArtifactsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kArtifactsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return this;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfArtifactsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfArtifactsDictionary(const SkPdfArtifactsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfArtifactsDictionary& operator=(const SkPdfArtifactsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of artifact that this property list describes; if present, must + * be one of the names Pagination, Layout, or Page. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of four numbers in default user space units giving the coor- + * dinates of the left, bottom, right, and top edges, respectively, of the artifact's + * bounding box (the rectangle that completely encloses its visible extent). +**/ + bool has_BBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL)); + } + + SkRect* BBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; pagination artifacts only) An array of name objects containing one to + * four of the names Top, Bottom, Left, and Right, specifying the edges of the page, if + * any, to which the artifact is logically attached. Page edges are defined by the + * page's crop box (see Section 9.10.1, "Page Boundaries"). The ordering of names + * within the array is immaterial. Including both Left and Right or both Top and + * Bottom indicates a full-width or full-height artifact, respectively. +**/ + bool has_Attached() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Attached", "", NULL)); + } + + SkPdfArray* Attached() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Attached", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfArtifactsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfAttributeObjectDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfAttributeObjectDictionary_autogen.h new file mode 100644 index 0000000000..d389fc41f6 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfAttributeObjectDictionary_autogen.h @@ -0,0 +1,544 @@ +#ifndef __DEFINED__SkPdfAttributeObjectDictionary +#define __DEFINED__SkPdfAttributeObjectDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry common to all attribute objects +class SkPdfAttributeObjectDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kAttributeObjectDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAttributeObjectDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return this;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfAttributeObjectDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfAttributeObjectDictionary(const SkPdfAttributeObjectDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfAttributeObjectDictionary& operator=(const SkPdfAttributeObjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The name of the application or plug-in extension owning the attribute data. + * The name must conform to the guidelines described in Appendix E. +**/ + bool has_O() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL)); + } + + std::string O() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfAttributeObjectDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfBeadDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfBeadDictionary_autogen.h new file mode 100644 index 0000000000..4b479c03b0 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBeadDictionary_autogen.h @@ -0,0 +1,615 @@ +#ifndef __DEFINED__SkPdfBeadDictionary +#define __DEFINED__SkPdfBeadDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a bead dictionary +class SkPdfBeadDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kBeadDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBeadDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfBeadDictionary* asBeadDictionary() {return this;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfBeadDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfBeadDictionary(const SkPdfBeadDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBeadDictionary& operator=(const SkPdfBeadDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * Bead for a bead dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required for the first bead of a thread; optional for all others; must be an indirect refer- + * ence) The thread to which this bead belongs. + * Note: In PDF 1.1, this entry is permitted only for the first bead of a thread. In PDF 1.2 + * and higher, it is permitted for any bead but required only for the first. +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + SkPdfDictionary* T() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) The next bead in the thread. In the last bead, + * this entry points to the first. +**/ + bool has_N() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL)); + } + + SkPdfDictionary* N() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) The previous bead in the thread. In the first + * bead, this entry points to the last. +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + SkPdfDictionary* V() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) The page object representing the page on + * which this bead appears. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + SkPdfDictionary* P() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A rectangle specifying the location of this bead on the page. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + SkRect* R() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfBeadDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfBlockLevelStructureElementsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfBlockLevelStructureElementsDictionary_autogen.h new file mode 100644 index 0000000000..88dd0c788f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBlockLevelStructureElementsDictionary_autogen.h @@ -0,0 +1,819 @@ +#ifndef __DEFINED__SkPdfBlockLevelStructureElementsDictionary +#define __DEFINED__SkPdfBlockLevelStructureElementsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional standard layout attributes specific to block-level structure elements +class SkPdfBlockLevelStructureElementsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kBlockLevelStructureElementsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBlockLevelStructureElementsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return this;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfBlockLevelStructureElementsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfBlockLevelStructureElementsDictionary(const SkPdfBlockLevelStructureElementsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBlockLevelStructureElementsDictionary& operator=(const SkPdfBlockLevelStructureElementsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The amount of extra space preceding the before edge of the BLSE, + * measured in default user space units in the block-progression direction. This + * value is added to any adjustments induced by the LineHeight attributes of + * ILSEs within the first line of the BLSE (see "Layout Attributes for ILSEs" on + * page 646). If the preceding BLSE has a SpaceAfter attribute, the greater of the + * two attribute values is used. Default value: 0. + * Note: This attribute is disregarded for the first BLSE placed in a given reference + * area. +**/ + bool has_SpaceBefore() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceBefore", "", NULL)); + } + + double SpaceBefore() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceBefore", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The amount of extra space following the after edge of the BLSE, + * measured in default user space units in the block-progression direction. This + * value is added to any adjustments induced by the LineHeight attributes of + * ILSEs within the last line of the BLSE (see "Layout Attributes for ILSEs" on + * page 646). If the following BLSE has a SpaceBefore attribute, the greater of + * the two attribute values is used. Default value: 0. + * Note: This attribute is disregarded for the last BLSE placed in a given reference + * area. +**/ + bool has_SpaceAfter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceAfter", "", NULL)); + } + + double SpaceAfter() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpaceAfter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The distance from the start edge of the reference area to that of the + * BLSE, measured in default user space units in the inline-progression direc- + * tion. This attribute applies only to structure elements with a Placement + * attribute of Block or Start (see "General Layout Attributes" on page 640); it is + * disregarded for those with other Placement values. Default value: 0. + * Note: A negative value for this attribute places the start edge of the BLSE out- + * side that of the reference area. The results are implementation-dependent and + * may not be supported by all Tagged PDF consumer applications or export + * formats. + * Note: If a structure element with a StartIndent attribute is placed adjacent to a + * floating element with a Placement attribute of Start, the actual value used for + * the element's starting indent will be its own StartIndent attribute or the inline + * extent of the adjacent floating element, whichever is greater. This value may + * then be further adjusted by the element's TextIndent attribute, if any. +**/ + bool has_StartIndent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StartIndent", "", NULL)); + } + + double StartIndent() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StartIndent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The distance from the end edge of the BLSE to that of the ref- + * erence area, measured in default user space units in the inline-progression + * direction. This attribute applies only to structure elements with a Placement + * attribute of Block or End (see "General Layout Attributes" on page 640); it is + * disregarded for those with other Placement values. Default value: 0. + * Note: A negative value for this attribute places the end edge of the BLSE outside + * that of the reference area. The results are implementation-dependent and may + * not be supported by all Tagged PDF consumer applications or export formats. + * Note: If a structure element with an EndIndent attribute is placed adjacent to a + * floating element with a Placement attribute of End, the actual value used for the + * element's ending indent will be its own EndIndent attribute or the inline extent + * of the adjacent floating element, whichever is greater. +**/ + bool has_EndIndent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndIndent", "", NULL)); + } + + double EndIndent() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndIndent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; applies only to some BLSEs, as described below) The additional + * distance, measured in default user space units in the inline-progression + * direction, from the start edge of the BLSE, as specified by StartIndent + * (above), to that of the first line of text. A negative value indicates a hanging + * indent. Default value: 0. + * This attribute applies only to paragraphlike BLSEs and those of structure + * types Lbl (Label), LBody (List body), TH (Table header), and TD (Table data), + * provided that they contain content other than nested BLSEs. +**/ + bool has_TextIndent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextIndent", "", NULL)); + } + + double TextIndent() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextIndent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; applies only to BLSEs containing text) The alignment, in the inline- + * progression direction, of text and other content within lines of the BLSE: + * Start Aligned with the start edge. + * Center Centered between the start and end edges. + * End Aligned with the end edge. + * Justify Aligned with both the start and end edges, with internal + * spacing within each line expanded, if necessary, to achieve + * such alignment. The last (or only) line is aligned with the + * start edge only, as for Start (above). + * Default value: Start. +**/ + bool has_TextAlign() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextAlign", "", NULL)); + } + + std::string TextAlign() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TextAlign", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Illustrations and tables only; required if the element appears in its entirety on a + * single page) An array of four numbers in default user space units giving the + * coordinates of the left, bottom, right, and top edges, respectively, of the ele- + * ment's bounding box (the rectangle that completely encloses its visible con- + * tent). This attribute applies only to elements of structure type Figure, + * Formula, Form, or Table. +**/ + bool has_BBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL)); + } + + SkRect* BBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; illustrations, tables, table headers, and table cells only; strongly + * recommended for table cells) The desired width of the element's content + * rectangle (see "Content and Allocation Rectangles" on page 648), measured + * in default user space units in the inline-progression direction. This attribute + * applies only to elements of structure type Figure, Formula, Form, Table, TH + * (Table header), or TD (Table data). + * The name Auto in place of a numeric value indicates that no specific width + * constraint is to be imposed; the element's width is determined by the intrin- + * sic width of its content. Default value: Auto. +**/ + bool has_Width() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL)); + } + + bool isWidthANumber() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + double getWidthAsNumber() const { + double ret = 0; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isWidthAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getWidthAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; illustrations, tables, table headers, and table cells only) The desired + * height of the element's content rectangle (see "Content and Allocation + * Rectangles" on page 648), measured in default user space units in the block- + * progression direction. This attribute applies only to elements of structure + * type Figure, Formula, Form, Table, TH (Table header), or TD (Table data). + * The name Auto in place of a numeric value indicates that no specific height + * constraint is to be imposed; the element's height is determined by the intrin- + * sic height of its content. Default value: Auto. +**/ + bool has_Height() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL)); + } + + bool isHeightANumber() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + double getHeightAsNumber() const { + double ret = 0; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isHeightAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getHeightAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; table cells only) The alignment, in the block-progression direction, + * of content within the table cell: + * Before Before edge of the first child's allocation rectangle aligned + * with that of the table cell's content rectangle. + * Middle Children centered within the table cell, so that the distance + * between the before edge of the first child's allocation rec- + * tangle and that of the table cell's content rectangle is the same + * as the distance between the after edge of the last child's allo- + * cation rectangle and that of the table cell's content rectangle. + * After After edge of the last child's allocation rectangle aligned with + * that of the table cell's content rectangle. + * Justify Children aligned with both the before and after edges of the + * table cell's content rectangle. The first child is placed as + * described above for Before and the last child as described for + * After, with equal spacing between the children. If there is only + * one child, it is aligned with the before edge only, as for Before. + * This attribute applies only to elements of structure type TH (Table header) or + * TD (Table data), and controls the placement of all BLSEs that are children of + * the given element. The table cell's content rectangle (see "Content and Allo- + * cation Rectangles" on page 648) becomes the reference area for all of its + * descendants. Default value: Before. +**/ + bool has_BlockAlign() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlockAlign", "", NULL)); + } + + std::string BlockAlign() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlockAlign", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; table cells only) The alignment, in the inline-progression direction, + * of content within the table cell: + * Start Start edge of each child's allocation rectangle aligned with + * that of the table cell's content rectangle + * Center Each child centered within the table cell, so that the distance + * between the start edges of the child's allocation rectangle and + * the table cell's content rectangle is the same as the distance + * between their end edges + * End End edge of each child's allocation rectangle aligned with + * that of the table cell's content rectangle + * This attribute applies only to elements of structure type TH (Table header) or + * TD (Table data), and controls the placement of all BLSEs that are children of + * the given element. The table cell's content rectangle (see "Content and Allo- + * cation Rectangles" on page 648) becomes the reference area for all of its + * descendants. Default value: Start. +**/ + bool has_InlineAlign() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "InlineAlign", "", NULL)); + } + + std::string InlineAlign() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "InlineAlign", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfBlockLevelStructureElementsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfBoolean_autogen.h b/experimental/PdfViewer/autogen/SkPdfBoolean_autogen.h new file mode 100644 index 0000000000..1a0ba84f0d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBoolean_autogen.h @@ -0,0 +1,563 @@ +#ifndef __DEFINED__SkPdfBoolean +#define __DEFINED__SkPdfBoolean + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfBoolean : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kBoolean_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBoolean_SkPdfObjectType + 1);} +public: + virtual SkPdfBoolean* asBoolean() {return this;} + virtual const SkPdfBoolean* asBoolean() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: + bool value() const {return fPodofoObj->GetBool();} +private: +public: + SkPdfBoolean(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfBoolean(const SkPdfBoolean& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBoolean& operator=(const SkPdfBoolean& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfBoolean diff --git a/experimental/PdfViewer/autogen/SkPdfBorderStyleDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfBorderStyleDictionary_autogen.h new file mode 100644 index 0000000000..5513a0ed48 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBorderStyleDictionary_autogen.h @@ -0,0 +1,599 @@ +#ifndef __DEFINED__SkPdfBorderStyleDictionary +#define __DEFINED__SkPdfBorderStyleDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a border style dictionary +class SkPdfBorderStyleDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kBorderStyleDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBorderStyleDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return this;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfBorderStyleDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfBorderStyleDictionary(const SkPdfBorderStyleDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBorderStyleDictionary& operator=(const SkPdfBorderStyleDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * Border for a border style dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The border width in points. If this value is 0, no border is drawn. Default + * value: 1. +**/ + bool has_W() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", NULL)); + } + + double W() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The border style: + * S (Solid) A solid rectangle surrounding the annotation. + * D (Dashed) A dashed rectangle surrounding the annotation. The dash pattern + * is specified by the D entry (see below). + * B (Beveled) A simulated embossed rectangle that appears to be raised above the + * surface of the page. + * I (Inset) A simulated engraved rectangle that appears to be recessed below the + * surface of the page. + * U (Underline) A single line along the bottom of the annotation rectangle. + * Other border styles may be defined in the future. (See implementation note 64 in + * Appendix H.) Default value: S. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A dash array defining a pattern of dashes and gaps to be used in drawing a + * dashed border (border style D above). The dash array is specified in the same format + * as in the line dash pattern parameter of the graphics state (see "Line Dash Pattern" on + * page 155). The dash phase is not specified and is assumed to be 0. For example, a D + * entry of [3 2] specifies a border drawn with 3-point dashes alternating with 2-point + * gaps. Default value: [3]. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + SkPdfArray* D() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfBorderStyleDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfBoxColorInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfBoxColorInformationDictionary_autogen.h new file mode 100644 index 0000000000..c50cfea8a3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBoxColorInformationDictionary_autogen.h @@ -0,0 +1,590 @@ +#ifndef __DEFINED__SkPdfBoxColorInformationDictionary +#define __DEFINED__SkPdfBoxColorInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a box color information dictionary +class SkPdfBoxColorInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kBoxColorInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBoxColorInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return this;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfBoxColorInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfBoxColorInformationDictionary(const SkPdfBoxColorInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBoxColorInformationDictionary& operator=(const SkPdfBoxColorInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A box style dictionary (see Table 9.42) specifying the visual characteris- + * tics for displaying guidelines for the page's crop box. This entry is ignored if no crop + * box is defined in the page object. +**/ + bool has_CropBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropBox", "", NULL)); + } + + SkPdfDictionary* CropBox() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A box style dictionary (see Table 9.42) specifying the visual characteris- + * tics for displaying guidelines for the page's bleed box. This entry is ignored if no + * bleed box is defined in the page object. +**/ + bool has_BleedBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BleedBox", "", NULL)); + } + + SkPdfDictionary* BleedBox() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BleedBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A box style dictionary (see Table 9.42) specifying the visual characteris- + * tics for displaying guidelines for the page's trim box. This entry is ignored if no trim + * box is defined in the page object. +**/ + bool has_TrimBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimBox", "", NULL)); + } + + SkPdfDictionary* TrimBox() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A box style dictionary (see Table 9.42) specifying the visual characteris- + * tics for displaying guidelines for the page's art box. This entry is ignored if no art + * box is defined in the page object. +**/ + bool has_ArtBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBox", "", NULL)); + } + + SkPdfDictionary* ArtBox() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfBoxColorInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfBoxStyleDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfBoxStyleDictionary_autogen.h new file mode 100644 index 0000000000..d68b868c6d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfBoxStyleDictionary_autogen.h @@ -0,0 +1,593 @@ +#ifndef __DEFINED__SkPdfBoxStyleDictionary +#define __DEFINED__SkPdfBoxStyleDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a box style dictionary +class SkPdfBoxStyleDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kBoxStyleDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBoxStyleDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return this;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfBoxStyleDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfBoxStyleDictionary(const SkPdfBoxStyleDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfBoxStyleDictionary& operator=(const SkPdfBoxStyleDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of three numbers in the range 0.0 to 1.0, representing the com- + * ponents in the DeviceRGB color space of the color to be used for displaying the + * guidelines. Default value: [0.0 0.0 0.0]. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfArray* C() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The guideline width in default user space units. Default value: 1. +**/ + bool has_W() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", NULL)); + } + + double W() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The guideline style: + * S (Solid) A solid rectangle. + * D (Dashed) A dashed rectangle. The dash pattern is specified by the D entry + * (see below). + * Other guideline styles may be defined in the future. Default value: S. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A dash array defining a pattern of dashes and gaps to be used in drawing + * dashed guidelines (guideline style D above). The dash array is specified in default + * user space units, in the same format as in the line dash pattern parameter of the + * graphics state (see "Line Dash Pattern" on page 155). The dash phase is not speci- + * fied and is assumed to be 0. For example, a D entry of [3 2] specifies guidelines + * drawn with 3-point dashes alternating with 2-point gaps. Default value: [3]. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + SkPdfArray* D() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfBoxStyleDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCIDFontDescriptorDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCIDFontDescriptorDictionary_autogen.h new file mode 100644 index 0000000000..469342996f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCIDFontDescriptorDictionary_autogen.h @@ -0,0 +1,597 @@ +#ifndef __DEFINED__SkPdfCIDFontDescriptorDictionary +#define __DEFINED__SkPdfCIDFontDescriptorDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional font descriptor entries for CIDFonts +class SkPdfCIDFontDescriptorDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCIDFontDescriptorDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDFontDescriptorDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return this;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCIDFontDescriptorDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCIDFontDescriptorDictionary(const SkPdfCIDFontDescriptorDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCIDFontDescriptorDictionary& operator=(const SkPdfCIDFontDescriptorDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A dictionary containing entries that describe the style of the glyphs in + * the font (see "Style," above). +**/ + bool has_Style() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Style", "", NULL)); + } + + SkPdfDictionary* Style() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Style", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A name specifying the language of the font, used for encodings where + * the language is not implied by the encoding itself. The possible values are the + * 2-character language codes defined by ISO 639-for example, en for English and ja + * for Japanese. The complete list of these codes be obtained from the International + * Organization for Standardization (see the Bibliography). +**/ + bool has_Lang() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", NULL)); + } + + std::string Lang() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A dictionary whose keys identify a class of characters in a CIDFont. + * Each value is a dictionary containing entries that override the corresponding + * values in the main font descriptor dictionary for that class of characters (see "FD," + * below). +**/ + bool has_FD() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FD", "", NULL)); + } + + SkPdfDictionary* FD() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FD", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A stream identifying which CIDs are present in the CIDFont file. If this + * entry is present, the CIDFont contains only a subset of the glyphs in the character + * collection defined by the CIDSystemInfo dictionary. If it is absent, the only indica- + * tion of a CIDFont subset is the subset tag in the FontName entry (see Section 5.5.3, + * "Font Subsets"). + * The stream's data is organized as a table of bits indexed by CID. The bits should be + * stored in bytes with the high-order bit first. Each bit corresponds to a CID. The first + * bit of the first byte corresponds to CID 0, the next bit to CID 1, and so on. +**/ + bool has_CIDSet() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", NULL)); + } + + SkPdfStream* CIDSet() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSet", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfCIDFontDescriptorDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCIDFontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCIDFontDictionary_autogen.h new file mode 100644 index 0000000000..c213bad024 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCIDFontDictionary_autogen.h @@ -0,0 +1,222 @@ +#ifndef __DEFINED__SkPdfCIDFontDictionary +#define __DEFINED__SkPdfCIDFontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfFontDictionary_autogen.h" + +// Entries in a CIDFont dictionary +class SkPdfCIDFontDictionary : public SkPdfFontDictionary { +public: + virtual SkPdfObjectType getType() const { return kCIDFontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDFontDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return this;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return this;} + +private: + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCIDFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} + + SkPdfCIDFontDictionary(const SkPdfCIDFontDictionary& from) : SkPdfFontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCIDFontDictionary& operator=(const SkPdfCIDFontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * Font for a CIDFont dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of CIDFont; CIDFontType0 or CIDFontType2. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The PostScript name of the CIDFont. For Type 0 CIDFonts, this + * is usually the value of the CIDFontName entry in the CIDFont program. For + * Type 2 CIDFonts, it is derived the same way as for a simple TrueType font; + * see Section 5.5.2, "TrueType Fonts." In either case, the name can have a sub- + * set prefix if appropriate; see Section 5.5.3, "Font Subsets." +**/ + bool has_BaseFont() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", NULL)); + } + + std::string BaseFont() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A dictionary containing entries that define the character collec- + * tion of the CIDFont. See Table 5.12 on page 337. +**/ + bool has_CIDSystemInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", NULL)); + } + + SkPdfDictionary* CIDSystemInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) A font descriptor describing the + * CIDFont's default metrics other than its glyph widths (see Section 5.7, + * "Font Descriptors"). +**/ + bool has_FontDescriptor() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", NULL)); + } + + SkPdfDictionary* FontDescriptor() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The default width for glyphs in the CIDFont (see "Glyph Met- + * rics in CIDFonts" on page 340). Default value: 1000. +**/ + bool has_DW() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW", "", NULL)); + } + + long DW() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A description of the widths for the glyphs in the CIDFont. The + * array's elements have a variable format that can specify individual widths + * for consecutive CIDs or one width for a range of CIDs (see "Glyph Metrics + * in CIDFonts" on page 340). Default value: none (the DW value is used for + * all glyphs). +**/ + bool has_W() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", NULL)); + } + + SkPdfArray* W() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; applies only to CIDFonts used for vertical writing) An array of two + * numbers specifying the default metrics for vertical writing (see "Glyph + * Metrics in CIDFonts" on page 340). Default value: [880 -1000]. +**/ + bool has_DW2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW2", "", NULL)); + } + + SkPdfArray* DW2() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; applies only to CIDFonts used for vertical writing) A description of + * the metrics for vertical writing for the glyphs in the CIDFont (see "Glyph + * Metrics in CIDFonts" on page 340). Default value: none (the DW2 value is + * used for all glyphs). +**/ + bool has_W2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W2", "", NULL)); + } + + SkPdfArray* W2() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; Type 2 CIDFonts only) A specification of the mapping from CIDs + * to glyph indices. If the value is a stream, the bytes in the stream contain the + * mapping from CIDs to glyph indices: the glyph index for a particular CID + * value c is a 2-byte value stored in bytes 2 x c and 2 x c + 1, where the first + * byte is the high-order byte. If the value of CIDToGIDMap is a name, it must + * be Identity, indicating that the mapping between CIDs and glyph indices is + * the identity mapping. Default value: Identity. + * This entry may appear only in a Type 2 CIDFont whose associated True- + * Type font program is embedded in the PDF file (see the next section). +**/ + bool has_CIDToGIDMap() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", NULL)); + } + + bool isCIDToGIDMapAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getCIDToGIDMapAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isCIDToGIDMapAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getCIDToGIDMapAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfCIDFontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCIDSystemInfoDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCIDSystemInfoDictionary_autogen.h new file mode 100644 index 0000000000..a23f106add --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCIDSystemInfoDictionary_autogen.h @@ -0,0 +1,577 @@ +#ifndef __DEFINED__SkPdfCIDSystemInfoDictionary +#define __DEFINED__SkPdfCIDSystemInfoDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a CIDSystemInfo dictionary +class SkPdfCIDSystemInfoDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCIDSystemInfoDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDSystemInfoDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return this;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCIDSystemInfoDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCIDSystemInfoDictionary(const SkPdfCIDSystemInfoDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCIDSystemInfoDictionary& operator=(const SkPdfCIDSystemInfoDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) A string identifying the issuer of the character collection-for exam- + * ple, Adobe. For information about assigning a registry identifier, consult the ASN + * Developer Program Web site or contact the Adobe Solutions Network (see the + * Bibliography). +**/ + bool has_Registry() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Registry", "", NULL)); + } + + std::string Registry() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Registry", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A string that uniquely names the character collection within the speci- + * fied registry-for example, Japan1. +**/ + bool has_Ordering() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ordering", "", NULL)); + } + + std::string Ordering() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ordering", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The supplement number of the character collection. An original charac- + * ter collection has a supplement number of 0. Whenever additional CIDs are + * assigned in a character collection, the supplement number is increased. Supple- + * ments do not alter the ordering of existing CIDs in the character collection. This + * value is not used in determining compatibility between character collections. +**/ + bool has_Supplement() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Supplement", "", NULL)); + } + + long Supplement() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Supplement", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfCIDSystemInfoDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCMapDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCMapDictionary_autogen.h new file mode 100644 index 0000000000..98d95f4173 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCMapDictionary_autogen.h @@ -0,0 +1,659 @@ +#ifndef __DEFINED__SkPdfCMapDictionary +#define __DEFINED__SkPdfCMapDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries in a CMap dictionary +class SkPdfCMapDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCMapDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCMapDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCMapDictionary* asCMapDictionary() {return this;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCMapDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCMapDictionary(const SkPdfCMapDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCMapDictionary& operator=(const SkPdfCMapDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * CMap for a CMap dictionary. (Note that although this object is the value of + * an entry named Encoding in a Type 0 font, its type is CMap.) +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The PostScript name of the CMap. This should be the same as the + * value of CMapName in the CMap file itself. +**/ + bool has_CMapName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CMapName", "", NULL)); + } + + std::string CMapName() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CMapName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A dictionary or array containing entries that define the character + * collection for the CIDFont or CIDFonts associated with the CMap. If the + * CMap selects only font number 0 and specifies character selectors that are + * CIDs, this entry can be a dictionary identifying the character collection for + * the associated CIDFont. Otherwise, it is an array indexed by the font num- + * ber. If the character selectors for a given font number are CIDs, the corre- + * sponding array element is a dictionary identifying the character collection + * for the associated CIDFont. If the character selectors are names or codes (to + * be used with an associated font, not a CIDFont), the array element should + * be null. For details of the CIDSystemInfo dictionaries, see Section 5.6.2, + * "CIDSystemInfo Dictionaries." + * Note: In all PDF versions up to and including PDF 1.4, CIDSystemInfo must be + * either a dictionary or a one-element array containing a dictionary. + * The value of this entry should be the same as the value of CIDSystemInfo in + * the CMap file itself. +**/ + bool has_CIDSystemInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", NULL)); + } + + bool isCIDSystemInfoADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getCIDSystemInfoAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isCIDSystemInfoAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getCIDSystemInfoAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A code that determines the writing mode for any CIDFont with + * which this CMap is combined: + * 0 Horizontal + * 1 Vertical + * Default value: 0. + * The value of this entry should be the same as the value of WMode in the + * CMap file itself. +**/ + bool has_WMode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WMode", "", NULL)); + } + + long WMode() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WMode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of a predefined CMap, or a stream containing a CMap, + * that is to be used as the base for this CMap. This allows the CMap to be de- + * fined differentially, specifying only the character mappings that differ from + * the base CMap. +**/ + bool has_UseCMap() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", NULL)); + } + + bool isUseCMapAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getUseCMapAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isUseCMapAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getUseCMapAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UseCMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfCMapDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCalgrayColorSpaceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCalgrayColorSpaceDictionary_autogen.h new file mode 100644 index 0000000000..e7b79e100a --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCalgrayColorSpaceDictionary_autogen.h @@ -0,0 +1,577 @@ +#ifndef __DEFINED__SkPdfCalgrayColorSpaceDictionary +#define __DEFINED__SkPdfCalgrayColorSpaceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a CalGray color space dictionary +class SkPdfCalgrayColorSpaceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCalgrayColorSpaceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCalgrayColorSpaceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return this;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCalgrayColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCalgrayColorSpaceDictionary(const SkPdfCalgrayColorSpaceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCalgrayColorSpaceDictionary& operator=(const SkPdfCalgrayColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of three numbers [XW YW ZW ] specifying the tri- + * stimulus value, in the CIE 1931 XYZ space, of the diffuse white point; see + * "CalRGB Color Spaces," below, for further discussion. The numbers XW and + * ZW must be positive, and YW must be equal to 1.0. +**/ + bool has_WhitePoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", NULL)); + } + + SkPdfArray* WhitePoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus + * value, in the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB + * Color Spaces," below, for further discussion. All three of these numbers must + * be nonnegative. Default value: [0.0 0.0 0.0]. +**/ + bool has_BlackPoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", NULL)); + } + + SkPdfArray* BlackPoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A number G defining the gamma for the gray (A) component. G + * must be positive and will generally be greater than or equal to 1. Default + * value: 1. +**/ + bool has_Gamma() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma", "", NULL)); + } + + double Gamma() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfCalgrayColorSpaceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCalrgbColorSpaceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCalrgbColorSpaceDictionary_autogen.h new file mode 100644 index 0000000000..b3b5a3db21 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCalrgbColorSpaceDictionary_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfCalrgbColorSpaceDictionary +#define __DEFINED__SkPdfCalrgbColorSpaceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a CalRGB color space dictionary +class SkPdfCalrgbColorSpaceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCalrgbColorSpaceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCalrgbColorSpaceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return this;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCalrgbColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCalrgbColorSpaceDictionary(const SkPdfCalrgbColorSpaceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCalrgbColorSpaceDictionary& operator=(const SkPdfCalrgbColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus value, + * in the CIE 1931 XYZ space, of the diffuse white point; see below for further discus- + * sion. The numbers XW and ZW must be positive, and YW must be equal to 1.0. +**/ + bool has_WhitePoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", NULL)); + } + + SkPdfArray* WhitePoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus value, in + * the CIE 1931 XYZ space, of the diffuse black point; see below for further discussion. + * All three of these numbers must be nonnegative. Default value: [0.0 0.0 0.0]. +**/ + bool has_BlackPoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", NULL)); + } + + SkPdfArray* BlackPoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of three numbers [ GR GG GB ] specifying the gamma for the red, + * green, and blue (A, B, and C) components of the color space. Default value: + * [1.0 1.0 1.0]. +**/ + bool has_Gamma() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma", "", NULL)); + } + + SkPdfArray* Gamma() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifying + * the linear interpretation of the decoded A, B, and C components of the color space + * with respect to the final XYZ representation. Default value: the identity matrix + * [1 0 0 0 1 0 0 0 1]. +**/ + bool has_Matrix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", NULL)); + } + + SkPdfArray* Matrix() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfCalrgbColorSpaceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.h new file mode 100644 index 0000000000..021f118a76 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCatalogDictionary_autogen.h @@ -0,0 +1,908 @@ +#ifndef __DEFINED__SkPdfCatalogDictionary +#define __DEFINED__SkPdfCatalogDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the catalog dictionary +class SkPdfCatalogDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCatalogDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCatalogDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return this;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCatalogDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCatalogDictionary(const SkPdfCatalogDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCatalogDictionary& operator=(const SkPdfCatalogDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must + * be Catalog for the catalog dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The version of the PDF specification to which the + * document conforms (for example, 1.4), if later than the version specified + * in the file's header (see Section 3.4.1, "File Header"). If the header speci- + * fies a later version, or if this entry is absent, the document conforms to + * the version specified in the header. This entry enables a PDF producer + * application to update the version using an incremental update; see Sec- + * tion 3.4.5, "Incremental Updates." (See implementation note 18 in Ap- + * pendix H.) + * Note: The value of this entry is a name object, not a number, and so must + * be preceded by a slash character (/) when written in the PDF file (for ex- + * ample, /1.4). +**/ + bool has_Version() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", NULL)); + } + + std::string Version() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) The page tree node that is the + * root of the document's page tree (see Section 3.6.2, "Page Tree"). +**/ + bool has_Pages() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", NULL)); + } + + SkPdfDictionary* Pages() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A number tree (see Section 3.8.5, "Number Trees") + * defining the page labeling for the document. The keys in this tree are + * page indices; the corresponding values are page label dictionaries (see + * Section 8.3.1, "Page Labels"). Each page index denotes the first page in a + * labeling range to which the specified page label dictionary applies. The + * tree must include a value for page index 0. +**/ + bool has_PageLabels() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", NULL)); + } + + bool isPageLabelsANumber() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + double getPageLabelsAsNumber() const { + double ret = 0; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isPageLabelsATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getPageLabelsAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) The document's name dictionary (see Section 3.6.3, + * "Name Dictionary"). +**/ + bool has_Names() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names", "", NULL)); + } + + SkPdfDictionary* Names() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1; must be an indirect reference) A dictionary of names + * and corresponding destinations (see "Named Destinations" on page + * 476). +**/ + bool has_Dests() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", NULL)); + } + + SkPdfDictionary* Dests() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A viewer preferences dictionary (see Section 8.1, + * "Viewer Preferences") specifying the way the document is to be dis- + * played on the screen. If this entry is absent, viewer applications should + * use their own current user preference settings. +**/ + bool has_ViewerPreferences() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewerPreferences", "", NULL)); + } + + SkPdfDictionary* ViewerPreferences() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewerPreferences", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A name object specifying the page layout to be used when the + * document is opened: + * SinglePage Display one page at a time. + * OneColumn Display the pages in one column. + * TwoColumnLeft Display the pages in two columns, with odd- + * numbered pages on the left. + * TwoColumnRight Display the pages in two columns, with odd- + * numbered pages on the right. + * (See implementation note 19 in Appendix H.) Default value: SinglePage. +**/ + bool has_PageLayout() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLayout", "", NULL)); + } + + std::string PageLayout() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLayout", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A name object specifying how the document should be dis- + * played when opened: + * UseNone Neither document outline nor thumbnail im- + * ages visible + * UseOutlines Document outline visible + * UseThumbs Thumbnail images visible + * FullScreen Full-screen mode, with no menu bar, window + * controls, or any other window visible + * Default value: UseNone. +**/ + bool has_PageMode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageMode", "", NULL)); + } + + std::string PageMode() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageMode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; must be an indirect reference) The outline dictionary that is the + * root of the document's outline hierarchy (see Section 8.2.2, "Document + * Outline"). +**/ + bool has_Outlines() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outlines", "", NULL)); + } + + SkPdfDictionary* Outlines() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Outlines", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1; must be an indirect reference) An array of thread + * dictionaries representing the document's article threads (see Section + * 8.3.2, "Articles"). +**/ + bool has_Threads() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Threads", "", NULL)); + } + + SkPdfArray* Threads() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Threads", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1) A value specifying a destination to be displayed or + * an action to be performed when the document is opened. The value is + * either an array defining a destination (see Section 8.2.1, "Destinations") + * or an action dictionary representing an action (Section 8.5, "Actions"). If + * this entry is absent, the document should be opened to the top of the + * first page at the default magnification factor. +**/ + bool has_OpenAction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", NULL)); + } + + bool isOpenActionAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getOpenActionAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isOpenActionADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getOpenActionAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OpenAction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An additional-actions dictionary defining the actions + * to be taken in response to various trigger events affecting the document + * as a whole (see "Trigger Events" on page 514). (See also implementation + * note 20 in Appendix H.) +**/ + bool has_AA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", NULL)); + } + + SkPdfDictionary* AA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A URI dictionary containing document-level information for + * URI (uniform resource identifier) actions (see "URI Actions" on page + * 523). +**/ + bool has_URI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", NULL)); + } + + SkPdfDictionary* URI() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) The document's interactive form (AcroForm) dic- + * tionary (see Section 8.6.1, "Interactive Form Dictionary"). +**/ + bool has_AcroForm() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AcroForm", "", NULL)); + } + + SkPdfDictionary* AcroForm() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AcroForm", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4; must be an indirect reference) A metadata stream + * containing metadata for the document (see Section 9.2.2, "Metadata + * Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) The document's structure tree root dictionary (see + * Section 9.6.1, "Structure Hierarchy"). +**/ + bool has_StructTreeRoot() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructTreeRoot", "", NULL)); + } + + SkPdfDictionary* StructTreeRoot() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructTreeRoot", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A mark information dictionary containing informa- + * tion about the document's usage of Tagged PDF conventions (see Sec- + * tion 9.7.1, "Mark Information Dictionary"). +**/ + bool has_MarkInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkInfo", "", NULL)); + } + + SkPdfDictionary* MarkInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A language identifier specifying the natural language + * for all text in the document except where overridden by language speci- + * fications for structure elements or marked content (see Section 9.8.1, + * "Natural Language Specification"). If this entry is absent, the language is + * considered unknown. +**/ + bool has_Lang() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", NULL)); + } + + std::string Lang() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) A Web Capture information dictionary containing + * state information used by the Acrobat Web Capture (AcroSpider) plug- + * in extension (see Section 9.9.1, "Web Capture Information Dictionary"). +**/ + bool has_SpiderInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpiderInfo", "", NULL)); + } + + SkPdfDictionary* SpiderInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpiderInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An array of output intent dictionaries describing the + * color characteristics of output devices on which the document might be + * rendered (see "Output Intents" on page 684). +**/ + bool has_OutputIntents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputIntents", "", NULL)); + } + + SkPdfArray* OutputIntents() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputIntents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfCatalogDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCcittfaxdecodeFilterDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCcittfaxdecodeFilterDictionary_autogen.h new file mode 100644 index 0000000000..d4701fb398 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCcittfaxdecodeFilterDictionary_autogen.h @@ -0,0 +1,669 @@ +#ifndef __DEFINED__SkPdfCcittfaxdecodeFilterDictionary +#define __DEFINED__SkPdfCcittfaxdecodeFilterDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Optional parameters for the CCITTFaxDecode filter +class SkPdfCcittfaxdecodeFilterDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCcittfaxdecodeFilterDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCcittfaxdecodeFilterDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return this;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCcittfaxdecodeFilterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCcittfaxdecodeFilterDictionary(const SkPdfCcittfaxdecodeFilterDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCcittfaxdecodeFilterDictionary& operator=(const SkPdfCcittfaxdecodeFilterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** ()A code identifying the encoding scheme used: + * <0 Pure two-dimensional encoding (Group 4) + * 0 Pure one-dimensional encoding (Group 3, 1-D) + * >0 Mixed one- and two-dimensional encoding (Group 3, + * 2-D), in which a line encoded one-dimensionally can be + * followed by at most K - 1 lines encoded two-dimensionally + * The filter distinguishes among negative, zero, and positive values of + * K to determine how to interpret the encoded data; however, it does + * not distinguish between different positive K values. Default value: 0. +**/ + bool has_K() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", NULL)); + } + + long K() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** ()A flag indicating whether end-of-line bit patterns are required to be + * present in the encoding. The CCITTFaxDecode filter always accepts + * end-of-line bit patterns, but requires them only if EndOfLine is true. + * Default value: false. +**/ + bool has_EndOfLine() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfLine", "", NULL)); + } + + bool EndOfLine() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfLine", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** ()A flag indicating whether the filter expects extra 0 bits before each + * encoded line so that the line begins on a byte boundary. If true, the + * filter skips over encoded bits to begin decoding each line at a byte + * boundary. If false, the filter does not expect extra bits in the encod- + * ed representation. Default value: false. +**/ + bool has_EncodedByteAlign() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncodedByteAlign", "", NULL)); + } + + bool EncodedByteAlign() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncodedByteAlign", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** ()The width of the image in pixels. If the value is not a multiple of 8, + * the filter adjusts the width of the unencoded image to the next mul- + * tiple of 8, so that each line starts on a byte boundary. Default value: + * 1728. +**/ + bool has_Columns() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Columns", "", NULL)); + } + + long Columns() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Columns", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** ()The height of the image in scan lines. If the value is 0 or absent, the + * image's height is not predetermined, and the encoded data must be + * terminated by an end-of-block bit pattern or by the end of the fil- + * ter's data. Default value: 0. +**/ + bool has_Rows() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rows", "", NULL)); + } + + long Rows() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rows", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** ()A flag indicating whether the filter expects the encoded data to be + * terminated by an end-of-block pattern, overriding the Rows pa- + * rameter. If false, the filter stops when it has decoded the number of + * lines indicated by Rows or when its data has been exhausted, which- + * ever occurs first. The end-of-block pattern is the CCITT end-of- + * facsimile-block (EOFB) or return-to-control (RTC) appropriate for + * the K parameter. Default value: true. +**/ + bool has_EndOfBlock() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfBlock", "", NULL)); + } + + bool EndOfBlock() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfBlock", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** ()A flag indicating whether 1 bits are to be interpreted as black pixels + * and 0 bits as white pixels, the reverse of the normal PDF convention + * for image data. Default value: false. +**/ + bool has_BlackIs1() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackIs1", "", NULL)); + } + + bool BlackIs1() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackIs1", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** ()The number of damaged rows of data to be tolerated before an + * error occurs. This entry applies only if EndOfLine is true and K is + * nonnegative. Tolerating a damaged row means locating its end in + * the encoded data by searching for an EndOfLine pattern and then + * substituting decoded data from the previous row if the previous + * row was not damaged, or a white scan line if the previous row was + * also damaged. Default value: 0. +**/ + bool has_DamagedRowsBeforeError() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DamagedRowsBeforeError", "", NULL)); + } + + long DamagedRowsBeforeError() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DamagedRowsBeforeError", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfCcittfaxdecodeFilterDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfCheckboxFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfCheckboxFieldDictionary_autogen.h new file mode 100644 index 0000000000..9661ed9846 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfCheckboxFieldDictionary_autogen.h @@ -0,0 +1,544 @@ +#ifndef __DEFINED__SkPdfCheckboxFieldDictionary +#define __DEFINED__SkPdfCheckboxFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry specific to a checkbox field +class SkPdfCheckboxFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kCheckboxFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCheckboxFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return this;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfCheckboxFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfCheckboxFieldDictionary(const SkPdfCheckboxFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfCheckboxFieldDictionary& operator=(const SkPdfCheckboxFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; inheritable; PDF 1.4) A text string to be used in place of the V entry for the + * value of the field. +**/ + bool has_Opt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL)); + } + + std::string Opt() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfCheckboxFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h new file mode 100644 index 0000000000..6aec3e8149 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h @@ -0,0 +1,580 @@ +#ifndef __DEFINED__SkPdfChoiceFieldDictionary +#define __DEFINED__SkPdfChoiceFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a choice field +class SkPdfChoiceFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kChoiceFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kChoiceFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return this;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfChoiceFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfChoiceFieldDictionary(const SkPdfChoiceFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfChoiceFieldDictionary& operator=(const SkPdfChoiceFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required; inheritable) An array of options to be presented to the user. Each element of + * the array is either a text string representing one of the available options or a two-element + * array consisting of a text string together with a default appearance string for construct- + * ing the item's appearance dynamically at viewing time (see "Variable Text" on page 533; + * see also implementation note 85 in Appendix H). +**/ + bool has_Opt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL)); + } + + SkPdfArray* Opt() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) For scrollable list boxes, the top index (the index in the Opt array + * of the first option visible in the list). +**/ + bool has_TI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", NULL)); + } + + long TI() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Sometimes required, otherwise optional; inheritable; PDF 1.4) For choice fields that allow + * multiple selection (MultiSelect flag set), an array of integers, sorted in ascending order, + * representing the zero-based indices in the Opt array of the currently selected option + * items. This entry is required when two or more elements in the Opt array have different + * names but the same export value, or when the value of the choice field is an array; in + * other cases, it is permitted but not required. If the items identified by this entry differ + * from those in the V entry of the field dictionary (see below), the V entry takes precedence. +**/ + bool has_I() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL)); + } + + SkPdfArray* I() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfChoiceFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfComponentsWithMetadataDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfComponentsWithMetadataDictionary_autogen.h new file mode 100644 index 0000000000..401b090508 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfComponentsWithMetadataDictionary_autogen.h @@ -0,0 +1,543 @@ +#ifndef __DEFINED__SkPdfComponentsWithMetadataDictionary +#define __DEFINED__SkPdfComponentsWithMetadataDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry for components having metadata +class SkPdfComponentsWithMetadataDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kComponentsWithMetadataDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kComponentsWithMetadataDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return this;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfComponentsWithMetadataDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfComponentsWithMetadataDictionary(const SkPdfComponentsWithMetadataDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfComponentsWithMetadataDictionary& operator=(const SkPdfComponentsWithMetadataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the component. +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfComponentsWithMetadataDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfDctdecodeFilterDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfDctdecodeFilterDictionary_autogen.h new file mode 100644 index 0000000000..7d13d01508 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfDctdecodeFilterDictionary_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfDctdecodeFilterDictionary +#define __DEFINED__SkPdfDctdecodeFilterDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Optional parameter for the DCTDecode filter +class SkPdfDctdecodeFilterDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kDctdecodeFilterDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDctdecodeFilterDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return this;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfDctdecodeFilterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfDctdecodeFilterDictionary(const SkPdfDctdecodeFilterDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfDctdecodeFilterDictionary& operator=(const SkPdfDctdecodeFilterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** ()A code specifying the transformation to be performed on the sample values: + * 0 No transformation. + * 1 If the image has three color components, transform RGB values to + * YUV before encoding and from YUV to RGB after decoding. If the + * image has four components, transform CMYK values to YUVK be- + * fore encoding and from YUVK to CMYK after decoding. This option + * is ignored if the image has one or two color components. + * Note: The RGB and YUV used here have nothing to do with the color spaces de- + * fined as part of the Adobe imaging model. The purpose of converting from RGB + * to YUV is to separate luminance and chrominance information (see below). + * The default value of ColorTransform is 1 if the image has three components + * and 0 otherwise. In other words, conversion between RGB and YUV is per- + * formed for all three-component images unless explicitly disabled by setting + * ColorTransform to 0. Additionally, the encoding algorithm inserts an Adobe- + * defined marker code in the encoded data indicating the ColorTransform value + * used. If present, this marker code overrides the ColorTransform value given to + * DCTDecode. Thus it is necessary to specify ColorTransform only when decod- + * ing data that does not contain the Adobe-defined marker code. +**/ + bool has_ColorTransform() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorTransform", "", NULL)); + } + + long ColorTransform() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorTransform", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfDctdecodeFilterDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfDeviceNColorSpaceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfDeviceNColorSpaceDictionary_autogen.h new file mode 100644 index 0000000000..ec96dbc8a1 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfDeviceNColorSpaceDictionary_autogen.h @@ -0,0 +1,554 @@ +#ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary +#define __DEFINED__SkPdfDeviceNColorSpaceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry in a DeviceN color space attributes dictionary +class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kDeviceNColorSpaceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDeviceNColorSpaceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return this;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfDeviceNColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfDeviceNColorSpaceDictionary(const SkPdfDeviceNColorSpaceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfDeviceNColorSpaceDictionary& operator=(const SkPdfDeviceNColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A dictionary describing the individual colorants used in the DeviceN + * color space. For each entry in this dictionary, the key is a colorant name and the + * value is an array defining a Separation color space for that colorant (see "Separa- + * tion Color Spaces" on page 201). The key must match the colorant name given in + * that color space. The dictionary need not list all colorants used in the DeviceN + * color space and may list additional colorants. + * This dictionary has no effect on the operation of the DeviceN color space itself or + * the appearance that it produces. However, it provides information about the indi- + * vidual colorants that may be useful to some applications. In particular, the alter- + * nate color space and tint transformation function of a Separation color space + * describe the appearance of that colorant alone, whereas those of a DeviceN color + * space describe only the appearance of its colorants in combination. +**/ + bool has_Colorants() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", NULL)); + } + + SkPdfDictionary* Colorants() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfDictionary_autogen.h new file mode 100644 index 0000000000..3fe1c07f1c --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfDictionary_autogen.h @@ -0,0 +1,63 @@ +#ifndef __DEFINED__SkPdfDictionary +#define __DEFINED__SkPdfDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfDictionary : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kDictionary__End_SkPdfObjectType;} +public: + virtual SkPdfDictionary* asDictionary() {return this;} + virtual const SkPdfDictionary* asDictionary() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: + SkPdfObject* get(const char* dictionaryKeyName) const {return new SkPdfObject(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(dictionaryKeyName))));} + SkPdfObject* get(const char* dictionaryKeyName) {return new SkPdfObject(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(dictionaryKeyName))));} +private: +public: + SkPdfDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfDictionary(const SkPdfDictionary& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfDictionary& operator=(const SkPdfDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfDocumentCatalogActionsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfDocumentCatalogActionsDictionary_autogen.h new file mode 100644 index 0000000000..515825acde --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfDocumentCatalogActionsDictionary_autogen.h @@ -0,0 +1,600 @@ +#ifndef __DEFINED__SkPdfDocumentCatalogActionsDictionary +#define __DEFINED__SkPdfDocumentCatalogActionsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the document catalog's additional-actions dictionary +class SkPdfDocumentCatalogActionsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kDocumentCatalogActionsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDocumentCatalogActionsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return this;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfDocumentCatalogActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfDocumentCatalogActionsDictionary(const SkPdfDocumentCatalogActionsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfDocumentCatalogActionsDictionary& operator=(const SkPdfDocumentCatalogActionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.4) A JavaScript action to be performed before closing a document. + * (The name DC stands for "document close.") +**/ + bool has_DC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", NULL)); + } + + SkPdfDictionary* DC() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A JavaScript action to be performed before saving a document. + * (The name WS stands for "will save.") +**/ + bool has_WS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", NULL)); + } + + SkPdfDictionary* WS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A JavaScript action to be performed after saving a document. (The + * name DS stands for "did save.") +**/ + bool has_DS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", NULL)); + } + + SkPdfDictionary* DS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A JavaScript action to be performed before printing a document. + * (The name WP stands for "will print.") +**/ + bool has_WP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", NULL)); + } + + SkPdfDictionary* WP() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A JavaScript action to be performed after printing a document. + * (The name DP stands for "did print.") +**/ + bool has_DP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", NULL)); + } + + SkPdfDictionary* DP() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfDocumentCatalogActionsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfDocumentInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfDocumentInformationDictionary_autogen.h new file mode 100644 index 0000000000..34e88fabf7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfDocumentInformationDictionary_autogen.h @@ -0,0 +1,668 @@ +#ifndef __DEFINED__SkPdfDocumentInformationDictionary +#define __DEFINED__SkPdfDocumentInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the document information dictionary +class SkPdfDocumentInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kDocumentInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDocumentInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return this;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfDocumentInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfDocumentInformationDictionary(const SkPdfDocumentInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfDocumentInformationDictionary& operator=(const SkPdfDocumentInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.1) The document's title. +**/ + bool has_Title() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", NULL)); + } + + std::string Title() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of the person who created the document. +**/ + bool has_Author() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Author", "", NULL)); + } + + std::string Author() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Author", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.1) The subject of the document. +**/ + bool has_Subject() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subject", "", NULL)); + } + + std::string Subject() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subject", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.1) Keywords associated with the document. +**/ + bool has_Keywords() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Keywords", "", NULL)); + } + + std::string Keywords() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Keywords", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) If the document was converted to PDF from another format, the + * name of the application (for example, Adobe FrameMaker(R)) that created the + * original document from which it was converted. +**/ + bool has_Creator() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", NULL)); + } + + std::string Creator() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) If the document was converted to PDF from another format, the + * name of the application (for example, Acrobat Distiller) that converted it to + * PDF. +**/ + bool has_Producer() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Producer", "", NULL)); + } + + std::string Producer() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Producer", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The date and time the document was created, in human-readable + * form (see Section 3.8.2, "Dates"). +**/ + bool has_CreationDate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", NULL)); + } + + SkPdfDate CreationDate() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional; PDF 1.1) The date and time the document was most recently + * modified, in human-readable form (see Section 3.8.2, "Dates"). +**/ + bool has_ModDate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", NULL)); + } + + SkPdfDate ModDate() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional; PDF 1.3) A name object indicating whether the document has + * been modified to include trapping information (see Section 9.10.5, "Trap- + * ping Support"): + * True The document has been fully trapped; no further trapping is + * needed. (Note that this is the name True, not the boolean + * value true.) + * False The document has not yet been trapped; any desired trap- + * ping must still be done. (Note that this is the name False, not + * the boolean value false.) + * Unknown Either it is unknown whether the document has been + * trapped or it has been partly but not yet fully trapped; some + * additional trapping may still be needed. + * Default value: Unknown. + * The value of this entry may be set automatically by the software creating the + * document's trapping information or may be known only to a human opera- + * tor and entered manually. +**/ + bool has_Trapped() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trapped", "", NULL)); + } + + std::string Trapped() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trapped", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfDocumentInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEmbeddedFileParameterDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEmbeddedFileParameterDictionary_autogen.h new file mode 100644 index 0000000000..fedb722781 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEmbeddedFileParameterDictionary_autogen.h @@ -0,0 +1,600 @@ +#ifndef __DEFINED__SkPdfEmbeddedFileParameterDictionary +#define __DEFINED__SkPdfEmbeddedFileParameterDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an embedded file parameter dictionary +class SkPdfEmbeddedFileParameterDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEmbeddedFileParameterDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbeddedFileParameterDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return this;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEmbeddedFileParameterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEmbeddedFileParameterDictionary(const SkPdfEmbeddedFileParameterDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEmbeddedFileParameterDictionary& operator=(const SkPdfEmbeddedFileParameterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The size of the embedded file, in bytes. +**/ + bool has_Size() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", NULL)); + } + + long Size() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The date and time when the embedded file was created. +**/ + bool has_CreationDate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", NULL)); + } + + SkPdfDate CreationDate() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) The date and time when the embedded file was last modified. +**/ + bool has_ModDate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", NULL)); + } + + SkPdfDate ModDate() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) A subdictionary containing additional information specific to + * Mac OS files (see Table 3.35). +**/ + bool has_Mac() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", NULL)); + } + + SkPdfDictionary* Mac() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A 16-byte string that is the checksum of the bytes of the uncom- + * pressed embedded file. The checksum is calculated by applying the standard + * MD5 message-digest algorithm (described in Internet RFC 1321, The MD5 + * Message-Digest Algorithm; see the Bibliography) to the bytes of the embedded + * file stream. +**/ + bool has_CheckSum() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum", "", NULL)); + } + + std::string CheckSum() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfEmbeddedFileParameterDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEmbeddedFileStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEmbeddedFileStreamDictionary_autogen.h new file mode 100644 index 0000000000..96479fcaa3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEmbeddedFileStreamDictionary_autogen.h @@ -0,0 +1,577 @@ +#ifndef __DEFINED__SkPdfEmbeddedFileStreamDictionary +#define __DEFINED__SkPdfEmbeddedFileStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries in an embedded file stream dictionary +class SkPdfEmbeddedFileStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEmbeddedFileStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbeddedFileStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return this;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEmbeddedFileStreamDictionary(const SkPdfEmbeddedFileStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEmbeddedFileStreamDictionary& operator=(const SkPdfEmbeddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be EmbeddedFile for an embedded file stream. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The subtype of the embedded file. The value of this entry must be + * a first-class name, as defined in Appendix E. Names without a registered pre- + * fix must conform to the MIME media type names defined in Internet RFC + * 2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types + * (see the Bibliography), with the provision that characters not allowed in + * names must use the 2-character hexadecimal code format described in Sec- + * tion 3.2.4, "Name Objects." +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An embedded file parameter dictionary containing additional, file- + * specific information (see Table 3.34). +**/ + bool has_Params() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Params", "", NULL)); + } + + SkPdfDictionary* Params() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Params", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfEmbeddedFileStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h new file mode 100644 index 0000000000..1c55026e06 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h @@ -0,0 +1,606 @@ +#ifndef __DEFINED__SkPdfEmbeddedFontStreamDictionary +#define __DEFINED__SkPdfEmbeddedFontStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries in an embedded font stream dictionary +class SkPdfEmbeddedFontStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEmbeddedFontStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbeddedFontStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return this;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEmbeddedFontStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEmbeddedFontStreamDictionary(const SkPdfEmbeddedFontStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEmbeddedFontStreamDictionary& operator=(const SkPdfEmbeddedFontStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required for Type 1 and TrueType fonts) The length in bytes of the clear-text portion + * of the Type 1 font program (see below), or the entire TrueType font program, after it + * has been decoded using the filters specified by the stream's Filter entry, if any. +**/ + bool has_Length1() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", NULL)); + } + + long Length1() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required for Type 1 fonts) The length in bytes of the encrypted portion of the Type 1 + * font program (see below) after it has been decoded using the filters specified by the + * stream's Filter entry. +**/ + bool has_Length2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", NULL)); + } + + long Length2() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required for Type 1 fonts) The length in bytes of the fixed-content portion of the + * Type 1 font program (see below), after it has been decoded using the filters specified + * by the stream's Filter entry. If Length3 is 0, it indicates that the 512 zeros and clearto- + * mark have not been included in the FontFile font program and must be added. +**/ + bool has_Length3() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", NULL)); + } + + long Length3() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required if referenced from FontFile3; PDF 1.2) A name specifying the format of the + * embedded font program. The name must be Type1C for Type 1 compact fonts or CID- + * FontType0C for Type 0 compact CIDFonts. When additional font formats are added + * to PDF, more values will be defined for Subtype. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the embedded font + * program (see Section 9.2.2, "Metadata Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfEmbeddedFontStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEncodingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEncodingDictionary_autogen.h new file mode 100644 index 0000000000..293bba4772 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEncodingDictionary_autogen.h @@ -0,0 +1,595 @@ +#ifndef __DEFINED__SkPdfEncodingDictionary +#define __DEFINED__SkPdfEncodingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an encoding dictionary +class SkPdfEncodingDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEncodingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEncodingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return this;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEncodingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEncodingDictionary(const SkPdfEncodingDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEncodingDictionary& operator=(const SkPdfEncodingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must + * be Encoding for an encoding dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The base encoding-that is, the encoding from which the Differences + * entry (if present) describes differences-specified as the name of a predefined + * encoding MacRomanEncoding, MacExpertEncoding, or WinAnsiEncoding (see + * Appendix D). + * If this entry is absent, the Differences entry describes differences from an im- + * plicit base encoding. For a font program that is embedded in the PDF file, the + * implicit base encoding is the font program's built-in encoding, as described + * above and further elaborated in the sections on specific font types below. Other- + * wise, for a nonsymbolic font, it is StandardEncoding, and for a symbolic font, it + * is the font's built-in encoding. +**/ + bool has_BaseEncoding() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseEncoding", "", NULL)); + } + + std::string BaseEncoding() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseEncoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; not recommended with TrueType fonts) An array describing the differ- + * ences from the encoding specified by BaseEncoding or, if BaseEncoding is ab- + * sent, from an implicit base encoding. The Differences array is described above. + * The value of the Differences entry is an array of character codes and character + * names organized as follows: + * code1 name1,1 name1,2 ... + * code2 name2,1 name2,2 ... + * ... + * coden namen,1 namen,2 ... + * Each code is the first index in a sequence of characters to be changed. The first + * character name after the code becomes the name corresponding to that code. + * Subsequent names replace consecutive code indices until the next code appears in + * the array or the array ends. These sequences may be specified in any order but + * should not overlap. + * For example, in the encoding dictionary in Example 5.10, the name quotesingle + * ( ' ) is associated with character code 39, Adieresis (A) with code 128, Aring (A) + * with 129, and trademark ((TM)) with 170. +**/ + bool has_Differences() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", NULL)); + } + + SkPdfArray* Differences() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfEncodingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEncryptedEmbeddedFileStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEncryptedEmbeddedFileStreamDictionary_autogen.h new file mode 100644 index 0000000000..77be6d7344 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEncryptedEmbeddedFileStreamDictionary_autogen.h @@ -0,0 +1,545 @@ +#ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary +#define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry in an embedded file stream dictionary for an encrypted FDF file +class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEncryptedEmbeddedFileStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEncryptedEmbeddedFileStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return this;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEncryptedEmbeddedFileStreamDictionary(const SkPdfEncryptedEmbeddedFileStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbeddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the + * FDF encryption algorithm used to encrypt the file. The only valid value + * defined at the time of publication is 1. +**/ + bool has_EncryptionRevision() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionRevision", "", NULL)); + } + + long EncryptionRevision() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionRevision", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.h new file mode 100644 index 0000000000..5470b9bcda --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.h @@ -0,0 +1,583 @@ +#ifndef __DEFINED__SkPdfEncryptionCommonDictionary +#define __DEFINED__SkPdfEncryptionCommonDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all encryption dictionaries +class SkPdfEncryptionCommonDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kEncryptionCommonDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEncryptionCommonDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return this;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfEncryptionCommonDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfEncryptionCommonDictionary(const SkPdfEncryptionCommonDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfEncryptionCommonDictionary& operator=(const SkPdfEncryptionCommonDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The name of the security handler for this document; see below. Default value: + * Standard, for the built-in security handler. (Names for other security handlers can be + * registered using the procedure described in Appendix E.) +**/ + bool has_Filter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", NULL)); + } + + std::string Filter() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional but strongly recommended) A code specifying the algorithm to be used in en- + * crypting and decrypting the document: + * 0 An algorithm that is undocumented and no longer supported, and whose use is + * strongly discouraged. + * 1 Algorithm 3.1 on page 73, with an encryption key length of 40 bits; see below. + * 2 (PDF 1.4) Algorithm 3.1 on page 73, but allowing encryption key lengths greater + * than 40 bits. + * 3 (PDF 1.4) An unpublished algorithm allowing encryption key lengths ranging + * from 40 to 128 bits. (This algorithm is unpublished as an export requirement of + * the U.S. Department of Commerce.) + * The default value if this entry is omitted is 0, but a value of 1 or greater is strongly rec- + * ommended. (See implementation note 15 in Appendix H.) +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + double V() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.4; only if V is 2 or 3) The length of the encryption key, in bits. The value + * must be a multiple of 8, in the range 40 to 128. Default value: 40. +**/ + bool has_Length() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", NULL)); + } + + long Length() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfEncryptionCommonDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfEnums_autogen.h b/experimental/PdfViewer/autogen/SkPdfEnums_autogen.h new file mode 100644 index 0000000000..a4fcd3a506 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfEnums_autogen.h @@ -0,0 +1,374 @@ +#ifndef __DEFINED__SkPdfEnums +#define __DEFINED__SkPdfEnums + +enum SkPdfObjectType { + kObject_SkPdfObjectType, + kArray_SkPdfObjectType, + kBoolean_SkPdfObjectType, + kDictionary_SkPdfObjectType, + kALinkAnnotationDictionary_SkPdfObjectType, + kActionDictionary_SkPdfObjectType, + kAlternateImageDictionary_SkPdfObjectType, + kAnnotationActionsDictionary_SkPdfObjectType, + kAnnotationDictionary_SkPdfObjectType, + kAppearanceCharacteristicsDictionary_SkPdfObjectType, + kAppearanceDictionary_SkPdfObjectType, + kApplicationDataDictionary_SkPdfObjectType, + kArtifactsDictionary_SkPdfObjectType, + kAttributeObjectDictionary_SkPdfObjectType, + kBeadDictionary_SkPdfObjectType, + kBlockLevelStructureElementsDictionary_SkPdfObjectType, + kBorderStyleDictionary_SkPdfObjectType, + kBoxColorInformationDictionary_SkPdfObjectType, + kBoxStyleDictionary_SkPdfObjectType, + kCIDFontDescriptorDictionary_SkPdfObjectType, + kCIDSystemInfoDictionary_SkPdfObjectType, + kCMapDictionary_SkPdfObjectType, + kCalgrayColorSpaceDictionary_SkPdfObjectType, + kCalrgbColorSpaceDictionary_SkPdfObjectType, + kCatalogDictionary_SkPdfObjectType, + kCcittfaxdecodeFilterDictionary_SkPdfObjectType, + kCheckboxFieldDictionary_SkPdfObjectType, + kChoiceFieldDictionary_SkPdfObjectType, + kComponentsWithMetadataDictionary_SkPdfObjectType, + kDctdecodeFilterDictionary_SkPdfObjectType, + kDeviceNColorSpaceDictionary_SkPdfObjectType, + kDocumentCatalogActionsDictionary_SkPdfObjectType, + kDocumentInformationDictionary_SkPdfObjectType, + kEmbeddedFileParameterDictionary_SkPdfObjectType, + kEmbeddedFileStreamDictionary_SkPdfObjectType, + kEmbeddedFontStreamDictionary_SkPdfObjectType, + kEncodingDictionary_SkPdfObjectType, + kEncryptedEmbeddedFileStreamDictionary_SkPdfObjectType, + kEncryptionCommonDictionary_SkPdfObjectType, + kFDFCatalogDictionary_SkPdfObjectType, + kFDFDictionary_SkPdfObjectType, + kFDFFieldDictionary_SkPdfObjectType, + kFDFFileAnnotationDictionary_SkPdfObjectType, + kFDFNamedPageReferenceDictionary_SkPdfObjectType, + kFDFPageDictionary_SkPdfObjectType, + kFDFTemplateDictionary_SkPdfObjectType, + kFDFTrailerDictionary_SkPdfObjectType, + kFieldDictionary_SkPdfObjectType, + kFileAttachmentAnnotationDictionary_SkPdfObjectType, + kFileSpecificationDictionary_SkPdfObjectType, + kFileTrailerDictionary_SkPdfObjectType, + kFontDescriptorDictionary_SkPdfObjectType, + kFontDictionary_SkPdfObjectType, + kCIDFontDictionary_SkPdfObjectType, + kType0FontDictionary_SkPdfObjectType, + kType1FontDictionary_SkPdfObjectType, + kMultiMasterFontDictionary_SkPdfObjectType, + kTrueTypeFontDictionary_SkPdfObjectType, + kType3FontDictionary_SkPdfObjectType, + kType1FontDictionary__End_SkPdfObjectType, + kFontDictionary__End_SkPdfObjectType, + kFormFieldActionsDictionary_SkPdfObjectType, + kFreeTextAnnotationDictionary_SkPdfObjectType, + kFunctionCommonDictionary_SkPdfObjectType, + kGoToActionDictionary_SkPdfObjectType, + kGraphicsStateDictionary_SkPdfObjectType, + kGroupAttributesDictionary_SkPdfObjectType, + kHideActionDictionary_SkPdfObjectType, + kIccProfileStreamDictionary_SkPdfObjectType, + kIconFitDictionary_SkPdfObjectType, + kImportDataActionDictionary_SkPdfObjectType, + kInkAnnotationDictionary_SkPdfObjectType, + kInlineLevelStructureElementsDictionary_SkPdfObjectType, + kInteractiveFormDictionary_SkPdfObjectType, + kJavascriptActionDictionary_SkPdfObjectType, + kJavascriptDictionary_SkPdfObjectType, + kJbig2DecodeFilterDictionary_SkPdfObjectType, + kLabColorSpaceDictionary_SkPdfObjectType, + kLaunchActionDictionary_SkPdfObjectType, + kLineAnnotationDictionary_SkPdfObjectType, + kListAttributeDictionary_SkPdfObjectType, + kLzwdecodeAndFlatedecodeFiltersDictionary_SkPdfObjectType, + kMacOsFileInformationDictionary_SkPdfObjectType, + kMarkInformationDictionary_SkPdfObjectType, + kMarkedContentReferenceDictionary_SkPdfObjectType, + kMarkupAnnotationsDictionary_SkPdfObjectType, + kMetadataStreamDictionary_SkPdfObjectType, + kMovieActionDictionary_SkPdfObjectType, + kMovieActivationDictionary_SkPdfObjectType, + kMovieAnnotationDictionary_SkPdfObjectType, + kMovieDictionary_SkPdfObjectType, + kNameDictionary_SkPdfObjectType, + kNameTreeNodeDictionary_SkPdfObjectType, + kNamedActionsDictionary_SkPdfObjectType, + kNumberTreeNodeDictionary_SkPdfObjectType, + kObjectReferenceDictionary_SkPdfObjectType, + kOpiVersionDictionary_SkPdfObjectType, + kOutlineDictionary_SkPdfObjectType, + kOutlineItemDictionary_SkPdfObjectType, + kPDF_XOutputIntentDictionary_SkPdfObjectType, + kPSXobjectDictionary_SkPdfObjectType, + kPageLabelDictionary_SkPdfObjectType, + kPageObjectActionsDictionary_SkPdfObjectType, + kPageObjectDictionary_SkPdfObjectType, + kPagePieceDictionary_SkPdfObjectType, + kPageTreeNodeDictionary_SkPdfObjectType, + kPopUpAnnotationDictionary_SkPdfObjectType, + kPrinterMarkAnnotationDictionary_SkPdfObjectType, + kPrinterMarkFormDictionary_SkPdfObjectType, + kRadioButtonFieldDictionary_SkPdfObjectType, + kReferenceDictionary_SkPdfObjectType, + kRemoteGoToActionDictionary_SkPdfObjectType, + kResetFormActionDictionary_SkPdfObjectType, + kResourceDictionary_SkPdfObjectType, + kRubberStampAnnotationDictionary_SkPdfObjectType, + kSeparationDictionary_SkPdfObjectType, + kShadingDictionary_SkPdfObjectType, + kType1ShadingDictionary_SkPdfObjectType, + kType2ShadingDictionary_SkPdfObjectType, + kType3ShadingDictionary_SkPdfObjectType, + kType4ShadingDictionary_SkPdfObjectType, + kType5ShadingDictionary_SkPdfObjectType, + kType6ShadingDictionary_SkPdfObjectType, + kShadingDictionary__End_SkPdfObjectType, + kSignatureDictionary_SkPdfObjectType, + kSoftMaskDictionary_SkPdfObjectType, + kSoftMaskImageDictionary_SkPdfObjectType, + kSoundActionDictionary_SkPdfObjectType, + kSoundAnnotationDictionary_SkPdfObjectType, + kSoundObjectDictionary_SkPdfObjectType, + kSourceInformationDictionary_SkPdfObjectType, + kSquareOrCircleAnnotation_SkPdfObjectType, + kStandardSecurityHandlerDictionary_SkPdfObjectType, + kStandardStructureDictionary_SkPdfObjectType, + kStreamCommonDictionary_SkPdfObjectType, + kStructureElementAccessDictionary_SkPdfObjectType, + kStructureElementDictionary_SkPdfObjectType, + kStructureTreeRootDictionary_SkPdfObjectType, + kSubmitFormActionDictionary_SkPdfObjectType, + kTableAttributesDictionary_SkPdfObjectType, + kTextAnnotationDictionary_SkPdfObjectType, + kTextFieldDictionary_SkPdfObjectType, + kThreadActionDictionary_SkPdfObjectType, + kThreadDictionary_SkPdfObjectType, + kTransitionDictionary_SkPdfObjectType, + kTransparencyGroupDictionary_SkPdfObjectType, + kTrapNetworkAnnotationDictionary_SkPdfObjectType, + kTrapNetworkAppearanceStreamDictionary_SkPdfObjectType, + kType0FunctionDictionary_SkPdfObjectType, + kType10HalftoneDictionary_SkPdfObjectType, + kType16HalftoneDictionary_SkPdfObjectType, + kType1HalftoneDictionary_SkPdfObjectType, + kType1PatternDictionary_SkPdfObjectType, + kType2FunctionDictionary_SkPdfObjectType, + kType2PatternDictionary_SkPdfObjectType, + kType3FunctionDictionary_SkPdfObjectType, + kType5HalftoneDictionary_SkPdfObjectType, + kType6HalftoneDictionary_SkPdfObjectType, + kURIActionDictionary_SkPdfObjectType, + kURIDictionary_SkPdfObjectType, + kURLAliasDictionary_SkPdfObjectType, + kVariableTextFieldDictionary_SkPdfObjectType, + kViewerPreferencesDictionary_SkPdfObjectType, + kWebCaptureCommandDictionary_SkPdfObjectType, + kWebCaptureCommandSettingsDictionary_SkPdfObjectType, + kWebCaptureDictionary_SkPdfObjectType, + kWebCaptureImageSetDictionary_SkPdfObjectType, + kWebCaptureInformationDictionary_SkPdfObjectType, + kWebCapturePageSetDictionary_SkPdfObjectType, + kWidgetAnnotationDictionary_SkPdfObjectType, + kWindowsLaunchActionDictionary_SkPdfObjectType, + kXObjectDictionary_SkPdfObjectType, + kImageDictionary_SkPdfObjectType, + kType1FormDictionary_SkPdfObjectType, + kXObjectDictionary__End_SkPdfObjectType, + kDictionary__End_SkPdfObjectType, + kInteger_SkPdfObjectType, + kNumber_SkPdfObjectType, + kInteger__End_SkPdfObjectType, + kName_SkPdfObjectType, + kNull_SkPdfObjectType, + kReference_SkPdfObjectType, + kStream_SkPdfObjectType, + kString_SkPdfObjectType, + kHexString_SkPdfObjectType, + kString__End_SkPdfObjectType, + kObject__End_SkPdfObjectType, +}; + +class SkPdfObject; +class SkPdfNull; +class SkPdfBoolean; +class SkPdfInteger; +class SkPdfNumber; +class SkPdfName; +class SkPdfReference; +class SkPdfArray; +class SkPdfString; +class SkPdfHexString; +class SkPdfDictionary; +class SkPdfStream; +class SkPdfXObjectDictionary; +class SkPdfFontDictionary; +class SkPdfTrueTypeFontDictionary; +class SkPdfStreamCommonDictionary; +class SkPdfLzwdecodeAndFlatedecodeFiltersDictionary; +class SkPdfCcittfaxdecodeFilterDictionary; +class SkPdfJbig2DecodeFilterDictionary; +class SkPdfDctdecodeFilterDictionary; +class SkPdfFileTrailerDictionary; +class SkPdfEncryptionCommonDictionary; +class SkPdfStandardSecurityHandlerDictionary; +class SkPdfCatalogDictionary; +class SkPdfPageTreeNodeDictionary; +class SkPdfPageObjectDictionary; +class SkPdfNameDictionary; +class SkPdfResourceDictionary; +class SkPdfNameTreeNodeDictionary; +class SkPdfNumberTreeNodeDictionary; +class SkPdfFunctionCommonDictionary; +class SkPdfType0FunctionDictionary; +class SkPdfType2FunctionDictionary; +class SkPdfType3FunctionDictionary; +class SkPdfFileSpecificationDictionary; +class SkPdfEmbeddedFileStreamDictionary; +class SkPdfEmbeddedFileParameterDictionary; +class SkPdfMacOsFileInformationDictionary; +class SkPdfGraphicsStateDictionary; +class SkPdfCalgrayColorSpaceDictionary; +class SkPdfCalrgbColorSpaceDictionary; +class SkPdfLabColorSpaceDictionary; +class SkPdfIccProfileStreamDictionary; +class SkPdfDeviceNColorSpaceDictionary; +class SkPdfType1PatternDictionary; +class SkPdfType2PatternDictionary; +class SkPdfShadingDictionary; +class SkPdfType1ShadingDictionary; +class SkPdfType2ShadingDictionary; +class SkPdfType3ShadingDictionary; +class SkPdfType4ShadingDictionary; +class SkPdfType5ShadingDictionary; +class SkPdfType6ShadingDictionary; +class SkPdfImageDictionary; +class SkPdfAlternateImageDictionary; +class SkPdfType1FormDictionary; +class SkPdfGroupAttributesDictionary; +class SkPdfReferenceDictionary; +class SkPdfPSXobjectDictionary; +class SkPdfType1FontDictionary; +class SkPdfType3FontDictionary; +class SkPdfEncodingDictionary; +class SkPdfCIDSystemInfoDictionary; +class SkPdfCIDFontDictionary; +class SkPdfCMapDictionary; +class SkPdfType0FontDictionary; +class SkPdfFontDescriptorDictionary; +class SkPdfCIDFontDescriptorDictionary; +class SkPdfEmbeddedFontStreamDictionary; +class SkPdfType1HalftoneDictionary; +class SkPdfType6HalftoneDictionary; +class SkPdfType10HalftoneDictionary; +class SkPdfType16HalftoneDictionary; +class SkPdfType5HalftoneDictionary; +class SkPdfSoftMaskDictionary; +class SkPdfSoftMaskImageDictionary; +class SkPdfTransparencyGroupDictionary; +class SkPdfViewerPreferencesDictionary; +class SkPdfOutlineDictionary; +class SkPdfOutlineItemDictionary; +class SkPdfPageLabelDictionary; +class SkPdfThreadDictionary; +class SkPdfBeadDictionary; +class SkPdfTransitionDictionary; +class SkPdfAnnotationDictionary; +class SkPdfBorderStyleDictionary; +class SkPdfAppearanceDictionary; +class SkPdfTextAnnotationDictionary; +class SkPdfALinkAnnotationDictionary; +class SkPdfFreeTextAnnotationDictionary; +class SkPdfLineAnnotationDictionary; +class SkPdfSquareOrCircleAnnotation; +class SkPdfMarkupAnnotationsDictionary; +class SkPdfRubberStampAnnotationDictionary; +class SkPdfInkAnnotationDictionary; +class SkPdfPopUpAnnotationDictionary; +class SkPdfFileAttachmentAnnotationDictionary; +class SkPdfSoundAnnotationDictionary; +class SkPdfMovieAnnotationDictionary; +class SkPdfWidgetAnnotationDictionary; +class SkPdfActionDictionary; +class SkPdfAnnotationActionsDictionary; +class SkPdfPageObjectActionsDictionary; +class SkPdfFormFieldActionsDictionary; +class SkPdfDocumentCatalogActionsDictionary; +class SkPdfGoToActionDictionary; +class SkPdfRemoteGoToActionDictionary; +class SkPdfLaunchActionDictionary; +class SkPdfWindowsLaunchActionDictionary; +class SkPdfThreadActionDictionary; +class SkPdfURIActionDictionary; +class SkPdfURIDictionary; +class SkPdfSoundActionDictionary; +class SkPdfMovieActionDictionary; +class SkPdfHideActionDictionary; +class SkPdfNamedActionsDictionary; +class SkPdfInteractiveFormDictionary; +class SkPdfFieldDictionary; +class SkPdfVariableTextFieldDictionary; +class SkPdfAppearanceCharacteristicsDictionary; +class SkPdfCheckboxFieldDictionary; +class SkPdfRadioButtonFieldDictionary; +class SkPdfTextFieldDictionary; +class SkPdfChoiceFieldDictionary; +class SkPdfSignatureDictionary; +class SkPdfSubmitFormActionDictionary; +class SkPdfResetFormActionDictionary; +class SkPdfImportDataActionDictionary; +class SkPdfJavascriptActionDictionary; +class SkPdfFDFTrailerDictionary; +class SkPdfFDFCatalogDictionary; +class SkPdfFDFDictionary; +class SkPdfEncryptedEmbeddedFileStreamDictionary; +class SkPdfJavascriptDictionary; +class SkPdfFDFFieldDictionary; +class SkPdfIconFitDictionary; +class SkPdfFDFPageDictionary; +class SkPdfFDFTemplateDictionary; +class SkPdfFDFNamedPageReferenceDictionary; +class SkPdfFDFFileAnnotationDictionary; +class SkPdfSoundObjectDictionary; +class SkPdfMovieDictionary; +class SkPdfMovieActivationDictionary; +class SkPdfDocumentInformationDictionary; +class SkPdfMetadataStreamDictionary; +class SkPdfComponentsWithMetadataDictionary; +class SkPdfPagePieceDictionary; +class SkPdfApplicationDataDictionary; +class SkPdfStructureTreeRootDictionary; +class SkPdfStructureElementDictionary; +class SkPdfMarkedContentReferenceDictionary; +class SkPdfObjectReferenceDictionary; +class SkPdfStructureElementAccessDictionary; +class SkPdfAttributeObjectDictionary; +class SkPdfMarkInformationDictionary; +class SkPdfArtifactsDictionary; +class SkPdfStandardStructureDictionary; +class SkPdfBlockLevelStructureElementsDictionary; +class SkPdfInlineLevelStructureElementsDictionary; +class SkPdfListAttributeDictionary; +class SkPdfTableAttributesDictionary; +class SkPdfWebCaptureInformationDictionary; +class SkPdfWebCaptureDictionary; +class SkPdfWebCapturePageSetDictionary; +class SkPdfWebCaptureImageSetDictionary; +class SkPdfSourceInformationDictionary; +class SkPdfURLAliasDictionary; +class SkPdfWebCaptureCommandDictionary; +class SkPdfWebCaptureCommandSettingsDictionary; +class SkPdfBoxColorInformationDictionary; +class SkPdfBoxStyleDictionary; +class SkPdfPrinterMarkAnnotationDictionary; +class SkPdfPrinterMarkFormDictionary; +class SkPdfSeparationDictionary; +class SkPdfPDF_XOutputIntentDictionary; +class SkPdfTrapNetworkAnnotationDictionary; +class SkPdfTrapNetworkAppearanceStreamDictionary; +class SkPdfOpiVersionDictionary; +class SkPdfMultiMasterFontDictionary; + +#endif // __DEFINED__SkPdfEnums diff --git a/experimental/PdfViewer/autogen/SkPdfFDFCatalogDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFCatalogDictionary_autogen.h new file mode 100644 index 0000000000..baddd5f71b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFCatalogDictionary_autogen.h @@ -0,0 +1,563 @@ +#ifndef __DEFINED__SkPdfFDFCatalogDictionary +#define __DEFINED__SkPdfFDFCatalogDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the FDF catalog dictionary +class SkPdfFDFCatalogDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFCatalogDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFCatalogDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return this;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFCatalogDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFCatalogDictionary(const SkPdfFDFCatalogDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFCatalogDictionary& operator=(const SkPdfFDFCatalogDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.4) The version of the PDF specification to which + * this FDF file conforms (for example, 1.4), if later than the version + * specified in the file's header (see "FDF Header" on page 559). If the + * header specifies a later version, or if this entry is absent, the docu- + * ment conforms to the version specified in the header. + * Note: The value of this entry is a name object, not a number, and so + * must be preceded by a slash character (/) when written in the FDF file + * (for example, /1.4). +**/ + bool has_Version() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", NULL)); + } + + std::string Version() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The FDF dictionary for this file (see Table 8.69). +**/ + bool has_FDF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDF", "", NULL)); + } + + SkPdfDictionary* FDF() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFDFCatalogDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFDictionary_autogen.h new file mode 100644 index 0000000000..af7fc69210 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFDictionary_autogen.h @@ -0,0 +1,716 @@ +#ifndef __DEFINED__SkPdfFDFDictionary +#define __DEFINED__SkPdfFDFDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the FDF dictionary +class SkPdfFDFDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFDictionary* asFDFDictionary() {return this;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFDictionary(const SkPdfFDFDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFDictionary& operator=(const SkPdfFDFDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The source file or target file: the PDF document file that + * this FDF file was exported from or is intended to be imported into. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Optional) An array of two strings constituting a file identifier (see + * Section 9.3, "File Identifiers") for the source or target file designated + * by F, taken from the ID entry in the file's trailer dictionary (see Sec- + * tion 3.4.4, "File Trailer"). +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + SkPdfArray* ID() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of FDF field dictionaries (see "FDF Fields" on + * page 564) describing the root fields (those with no ancestors in + * the field hierarchy) to be exported or imported. This entry and + * the Pages entry may not both be present. +**/ + bool has_Fields() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", NULL)); + } + + SkPdfArray* Fields() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A status string to be displayed indicating the result of an + * action, typically a submit-form action (see "Submit-Form Actions" + * on page 550). The string is encoded with PDFDocEncoding. (See + * implementation note 91 in Appendix H.) This entry and the Pages + * entry may not both be present. +**/ + bool has_Status() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Status", "", NULL)); + } + + std::string Status() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Status", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) An array of FDF page dictionaries (see "FDF + * Pages" on page 566) describing new pages to be added to a PDF + * target document. The Fields and Status entries may not be present + * together with this entry. +**/ + bool has_Pages() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", NULL)); + } + + SkPdfArray* Pages() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) The encoding to be used for any FDF field + * value or option (V or Opt in the field dictionary; see Table 8.72 on + * page 564) that is a string and does not begin with the Unicode pre- + * fix U+FEFF. (See implementation note 92 in Appendix H.) Default + * value: PDFDocEncoding. +**/ + bool has_Encoding() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", NULL)); + } + + std::string Encoding() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) An array of FDF annotation dictionaries (see + * "FDF Annotation Dictionaries" on page 568). The array can in- + * clude annotations of any of the standard types listed in Table 8.14 + * on page 499 except Link, Movie, Widget, PrinterMark, and TrapNet. +**/ + bool has_Annots() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "", NULL)); + } + + SkPdfArray* Annots() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A stream containing all the bytes in all incre- + * mental updates made to the underlying PDF document since it was + * opened (see Section 3.4.5, "Incremental Updates"). If a submit- + * form action submitting the document to a remote server in FDF + * format has its IncludeAppendSaves flag set (see "Submit-Form + * Actions" on page 550), the contents of this stream are included in + * the submission. This allows any digital signatures (see "Signature + * Fields" on page 547) to be transmitted to the server. An incremental + * update is automatically performed just before the submission takes + * place, in order to capture all changes made to the document. Note + * that the submission always includes the full set of incremental up- + * dates back to the time the document was first opened, even if some + * of them may already have been included in intervening submissions. + * Note: Although a Fields or Annots entry (or both) may be present + * along with Differences, there is no guarantee that their contents will be + * consistent with it. In particular, if Differences contains a digital signa- + * ture, only the values of the form fields given in the Differences stream + * can be considered trustworthy under that signature. +**/ + bool has_Differences() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", NULL)); + } + + SkPdfStream* Differences() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) The name of a browser frame in which the un- + * derlying PDF document is to be opened. This mimics the behavior + * of the target attribute in HTML tags. +**/ + bool has_Target() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Target", "", NULL)); + } + + std::string Target() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Target", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) An array of file specifications (see Section 3.10, + * "File Specifications") representing other FDF files embedded with- + * in this one (Section 3.10.3, "Embedded File Streams"). +**/ + bool has_EmbeddedFDFs() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFDFs", "", NULL)); + } + + SkPdfArray* EmbeddedFDFs() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFDFs", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A JavaScript dictionary (see Table 8.71) defin- + * ing document-level JavaScript scripts. +**/ + bool has_JavaScript() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", NULL)); + } + + SkPdfDictionary* JavaScript() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFDFDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFFieldDictionary_autogen.h new file mode 100644 index 0000000000..9ece7a99a0 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFFieldDictionary_autogen.h @@ -0,0 +1,766 @@ +#ifndef __DEFINED__SkPdfFDFFieldDictionary +#define __DEFINED__SkPdfFDFFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an FDF field dictionary +class SkPdfFDFFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return this;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFFieldDictionary(const SkPdfFDFFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFFieldDictionary& operator=(const SkPdfFDFFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) An array containing the immediate children of this field. + * Note: Unlike the children of fields in a PDF file, which must be specified as indirect + * object references, those of an FDF field may be either direct or indirect objects. +**/ + bool has_Kids() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); + } + + SkPdfArray* Kids() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The partial field name (see "Field Names" on page 532). +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The field's value, whose format varies depending on the field type; see + * the descriptions of individual field types in Section 8.6.3 for further information. +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + SkPdfObject* V() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A set of flags specifying various characteristics of the field (see Tables + * 8.50 on page 532, 8.53 on page 538, 8.56 on page 543, and 8.58 on page 546). When + * imported into an interactive form, the value of this entry replaces that of the Ff + * entry in the form's corresponding field dictionary. If this field is present, the SetFf + * and ClrFf entries, if any, are ignored. +**/ + bool has_Ff() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ff", "", NULL)); + } + + long Ff() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ff", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags to be set (turned on) in the Ff entry of the form's cor- + * responding field dictionary. Bits equal to 1 in SetFf cause the corresponding bits in + * Ff to be set to 1. This entry is ignored if an Ff entry is present in the FDF field + * dictionary. +**/ + bool has_SetFf() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SetFf", "", NULL)); + } + + long SetFf() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SetFf", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags to be cleared (turned off) in the Ff entry of the form's cor- + * responding field dictionary. Bits equal to 1 in ClrFf cause the corresponding bits in + * Ff to be set to 0. If a SetFf entry is also present in the FDF field dictionary, it is + * applied before this entry. This entry is ignored if an Ff entry is present in the FDF + * field dictionary. +**/ + bool has_ClrFf() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClrFf", "", NULL)); + } + + long ClrFf() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClrFf", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags specifying various characteristics of the field's widget anno- + * tation (see Section 8.4.2, "Annotation Flags"). When imported into an interactive + * form, the value of this entry replaces that of the F entry in the form's corresponding + * annotation dictionary. If this field is present, the SetF and ClrF entries, if any, are + * ignored. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + long F() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags to be set (turned on) in the F entry of the form's corre- + * sponding widget annotation dictionary. Bits equal to 1 in SetF cause the corre- + * sponding bits in F to be set to 1. This entry is ignored if an F entry is present in the + * FDF field dictionary. +**/ + bool has_SetF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SetF", "", NULL)); + } + + long SetF() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SetF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags to be cleared (turned off) in the F entry of the form's corre- + * sponding widget annotation dictionary. Bits equal to 1 in ClrF cause the corre- + * sponding bits in F to be set to 0. If a SetF entry is also present in the FDF field + * dictionary, it is applied before this entry. This entry is ignored if an F entry is + * present in the FDF field dictionary. +**/ + bool has_ClrF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClrF", "", NULL)); + } + + long ClrF() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClrF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) An appearance dictionary specifying the appearance of a pushbutton + * field (see "Pushbuttons" on page 539). The appearance dictionary's contents are as + * shown in Table 8.13 on page 497, except that the values of the N, R, and D entries + * must all be streams. +**/ + bool has_AP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", NULL)); + } + + SkPdfDictionary* AP() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A dictionary holding references to external PDF files contain- + * ing the pages to use for the appearances of a pushbutton field. This dictionary is + * similar to an appearance dictionary (see Table 8.13 on page 497), except that the + * values of the N, R, and D entries must all be named page reference dictionaries + * (Table 8.76 on page 568). This entry is ignored if an AP entry is present. +**/ + bool has_APRef() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "APRef", "", NULL)); + } + + SkPdfDictionary* APRef() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "APRef", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3; button fields only) An icon fit dictionary (see Table 8.73) speci- + * fying how to display a button field's icon within the annotation rectangle of its wid- + * get annotation. +**/ + bool has_IF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", NULL)); + } + + SkPdfDictionary* IF() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; choice fields only) An array of options to be presented to the user. Each + * element of the array can take either of two forms: + * * A text string representing one of the available options + * * A two-element array consisting of a text string representing one of the available + * options and a default appearance string for constructing the item's appearance + * dynamically at viewing time (see "Variable Text" on page 533) +**/ + bool has_Opt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL)); + } + + SkPdfArray* Opt() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An action to be performed when this field's widget annotation is activat- + * ed (see Section 8.5, "Actions"). +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + SkPdfDictionary* A() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An additional-actions dictionary defining the field's behavior in re- + * sponse to various trigger events (see Section 8.5.2, "Trigger Events"). +**/ + bool has_AA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", NULL)); + } + + SkPdfDictionary* AA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFDFFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFFileAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFFileAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..1e5b26aa48 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFFileAnnotationDictionary_autogen.h @@ -0,0 +1,544 @@ +#ifndef __DEFINED__SkPdfFDFFileAnnotationDictionary +#define __DEFINED__SkPdfFDFFileAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry for annotation dictionaries in an FDF file +class SkPdfFDFFileAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFFileAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFFileAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return this;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFFileAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFFileAnnotationDictionary(const SkPdfFDFFileAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFFileAnnotationDictionary& operator=(const SkPdfFDFFileAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required for annotations in FDF files) The ordinal page number on which + * this annotation should appear, where page 0 is the first page. +**/ + bool has_Page() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", NULL)); + } + + long Page() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfFDFFileAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFNamedPageReferenceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFNamedPageReferenceDictionary_autogen.h new file mode 100644 index 0000000000..41b765f9c6 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFNamedPageReferenceDictionary_autogen.h @@ -0,0 +1,557 @@ +#ifndef __DEFINED__SkPdfFDFNamedPageReferenceDictionary +#define __DEFINED__SkPdfFDFNamedPageReferenceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an FDF named page reference dictionary +class SkPdfFDFNamedPageReferenceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFNamedPageReferenceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFNamedPageReferenceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return this;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFNamedPageReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFNamedPageReferenceDictionary(const SkPdfFDFNamedPageReferenceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFNamedPageReferenceDictionary& operator=(const SkPdfFDFNamedPageReferenceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The name of the referenced page. +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The file containing the named page. If this key is absent, it is + * assumed that the page resides in the associated PDF file. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +}; + +#endif // __DEFINED__SkPdfFDFNamedPageReferenceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFPageDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFPageDictionary_autogen.h new file mode 100644 index 0000000000..509bd7bdba --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFPageDictionary_autogen.h @@ -0,0 +1,559 @@ +#ifndef __DEFINED__SkPdfFDFPageDictionary +#define __DEFINED__SkPdfFDFPageDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an FDF page dictionary +class SkPdfFDFPageDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFPageDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFPageDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return this;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFPageDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFPageDictionary(const SkPdfFDFPageDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFPageDictionary& operator=(const SkPdfFDFPageDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of FDF template dictionaries (see Table 8.75) describing the + * named pages that serve as templates on the page. +**/ + bool has_Templates() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", NULL)); + } + + SkPdfArray* Templates() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An FDF page information dictionary containing additional informa- + * tion about the page. At the time of publication, no entries have been defined for + * this dictionary. +**/ + bool has_Info() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", NULL)); + } + + SkPdfDictionary* Info() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFDFPageDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFTemplateDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFTemplateDictionary_autogen.h new file mode 100644 index 0000000000..92bfa1a6d3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFTemplateDictionary_autogen.h @@ -0,0 +1,574 @@ +#ifndef __DEFINED__SkPdfFDFTemplateDictionary +#define __DEFINED__SkPdfFDFTemplateDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an FDF template dictionary +class SkPdfFDFTemplateDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFTemplateDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFTemplateDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return this;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFTemplateDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFTemplateDictionary(const SkPdfFDFTemplateDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFTemplateDictionary& operator=(const SkPdfFDFTemplateDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) A named page reference dictionary (see Table 8.76) specifying the + * location of the template. +**/ + bool has_TRef() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TRef", "", NULL)); + } + + SkPdfDictionary* TRef() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TRef", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of references to FDF field dictionaries (see Table 8.72 on + * page 564) describing the root fields to be imported (those with no ancestors in + * the field hierarchy). +**/ + bool has_Fields() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", NULL)); + } + + SkPdfArray* Fields() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag specifying whether fields imported from the template may be + * renamed in the event of name conflicts with existing fields; see below for further + * discussion. Default value: true. +**/ + bool has_Rename() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rename", "", NULL)); + } + + bool Rename() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rename", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfFDFTemplateDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFDFTrailerDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFDFTrailerDictionary_autogen.h new file mode 100644 index 0000000000..12ac84cadb --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFDFTrailerDictionary_autogen.h @@ -0,0 +1,544 @@ +#ifndef __DEFINED__SkPdfFDFTrailerDictionary +#define __DEFINED__SkPdfFDFTrailerDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry in the FDF trailer dictionary +class SkPdfFDFTrailerDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFDFTrailerDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFDFTrailerDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return this;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFDFTrailerDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFDFTrailerDictionary(const SkPdfFDFTrailerDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFDFTrailerDictionary& operator=(const SkPdfFDFTrailerDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required; must be an indirect reference) The catalog object for this FDF file (see + * "FDF Catalog," below). +**/ + bool has_Root() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", NULL)); + } + + SkPdfDictionary* Root() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFDFTrailerDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFieldDictionary_autogen.h new file mode 100644 index 0000000000..6a67ff4e1c --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFieldDictionary_autogen.h @@ -0,0 +1,689 @@ +#ifndef __DEFINED__SkPdfFieldDictionary +#define __DEFINED__SkPdfFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all field dictionaries +class SkPdfFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFieldDictionary* asFieldDictionary() {return this;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFieldDictionary(const SkPdfFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFieldDictionary& operator=(const SkPdfFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required for terminal fields; inheritable) The type of field that this dictionary + * describes: + * Btn Button (see "Button Fields" on page 538) + * Tx Text (see "Text Fields" on page 543) + * Ch Choice (see "Choice Fields" on page 545) + * Sig (PDF 1.3) Signature (see "Signature Fields" on page 547) + * Note: This entry may be present in a nonterminal field (one whose descendants + * are themselves fields) in order to provide an inheritable FT value. However, a + * nonterminal field does not logically have a type of its own; it is merely a contain- + * er for inheritable attributes that are intended for descendant terminal fields of + * any type. +**/ + bool has_FT() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FT", "", NULL)); + } + + std::string FT() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if this field is the child of another in the field hierarchy; absent other- + * wise) The field that is the immediate parent of this one (the field, if any, + * whose Kids array includes this field). A field can have at most one parent; that + * is, it can be included in the Kids array of at most one other field. +**/ + bool has_Parent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); + } + + SkPdfDictionary* Parent() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of indirect references to the immediate children of this + * field. +**/ + bool has_Kids() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); + } + + SkPdfArray* Kids() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The partial field name (see "Field Names," below; see also imple- + * mentation notes 82 and 83 in Appendix H). +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) An alternate field name, to be used in place of the actual + * field name wherever the field must be identified in the user interface (such as + * in error or status messages referring to the field). This text is also useful + * when extracting the document's contents in support of accessibility to dis- + * abled users or for other purposes (see Section 9.8.2, "Alternate Descrip- + * tions"). +**/ + bool has_TU() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TU", "", NULL)); + } + + std::string TU() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TU", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) The mapping name to be used when exporting inter- + * active form field data from the document. +**/ + bool has_TM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TM", "", NULL)); + } + + std::string TM() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; inheritable) A set of flags specifying various characteristics of the + * field (see Table 8.50). Default value: 0. +**/ + bool has_Ff() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ff", "", NULL)); + } + + long Ff() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ff", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; inheritable) The field's value, whose format varies depending on + * the field type; see the descriptions of individual field types for further infor- + * mation. +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + SkPdfObject* V() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) The default value to which the field reverts when a + * reset-form action is executed (see "Reset-Form Actions" on page 554). The + * format of this value is the same as that of V. +**/ + bool has_DV() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DV", "", NULL)); + } + + SkPdfObject* DV() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DV", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An additional-actions dictionary defining the field's + * behavior in response to various trigger events (see Section 8.5.2, "Trigger + * Events"). This entry has exactly the same meaning as the AA entry in an + * annotation dictionary (see Section 8.4.1, "Annotation Dictionaries"). +**/ + bool has_AA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", NULL)); + } + + SkPdfDictionary* AA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFileAttachmentAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFileAttachmentAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..2187f766c3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFileAttachmentAnnotationDictionary_autogen.h @@ -0,0 +1,593 @@ +#ifndef __DEFINED__SkPdfFileAttachmentAnnotationDictionary +#define __DEFINED__SkPdfFileAttachmentAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a file attachment annotation +class SkPdfFileAttachmentAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFileAttachmentAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFileAttachmentAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return this;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFileAttachmentAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFileAttachmentAnnotationDictionary(const SkPdfFileAttachmentAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFileAttachmentAnnotationDictionary& operator=(const SkPdfFileAttachmentAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be + * FileAttachment for a file attachment annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The file associated with this annotation. +**/ + bool has_FS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FS", "", NULL)); + } + + SkPdfFileSpec FS() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Required) The text to be displayed in the pop-up window when the annota- + * tion is opened. Carriage returns may be used to separate the text into para- + * graphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of an icon to be used in displaying the annotation. + * Viewer applications should provide predefined icon appearances for at least + * the following standard names: + * Graph PushPin + * Paperclip Tag + * Additional names may be supported as well. Default value: PushPin. + * Note: The annotation dictionary's AP entry, if present, takes precedence over + * the Name entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance + * Streams." +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfFileAttachmentAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFileSpecificationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFileSpecificationDictionary_autogen.h new file mode 100644 index 0000000000..d233724dc7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFileSpecificationDictionary_autogen.h @@ -0,0 +1,689 @@ +#ifndef __DEFINED__SkPdfFileSpecificationDictionary +#define __DEFINED__SkPdfFileSpecificationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a file specification dictionary +class SkPdfFileSpecificationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFileSpecificationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFileSpecificationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return this;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFileSpecificationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFileSpecificationDictionary(const SkPdfFileSpecificationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFileSpecificationDictionary& operator=(const SkPdfFileSpecificationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required if an EF or RF entry is present; recommended always) The type of PDF object + * that this dictionary describes; must be Filespec for a file specification dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of the file system to be used to interpret this file specification. If + * this entry is present, all other entries in the dictionary are interpreted by the desig- + * nated file system. PDF defines only one standard file system, URL (see Section 3.10.4, + * "URL Specifications"); a viewer application or plug-in extension can register a differ- + * ent one (see Appendix E). Note that this entry is independent of the F, DOS, Mac, and + * Unix entries. +**/ + bool has_FS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FS", "", NULL)); + } + + std::string FS() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if the DOS, Mac, and Unix entries are all absent) A file specification string of + * the form described in Section 3.10.1, "File Specification Strings," or (if the file system + * is URL) a uniform resource locator, as described in Section 3.10.4, "URL Specifica- + * tions." +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + std::string F() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A file specification string (see Section 3.10.1, "File Specification Strings") + * representing a DOS file name. +**/ + bool has_DOS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DOS", "", NULL)); + } + + std::string DOS() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DOS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A file specification string (see Section 3.10.1, "File Specification Strings") + * representing a Mac OS file name. +**/ + bool has_Mac() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", NULL)); + } + + std::string Mac() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A file specification string (see Section 3.10.1, "File Specification Strings") + * representing a UNIX file name. +**/ + bool has_Unix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Unix", "", NULL)); + } + + std::string Unix() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Unix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of two strings constituting a file identifier (see Section 9.3, "File + * Identifiers") that is also included in the referenced file. The use of this entry improves + * a viewer application's chances of finding the intended file and allows it to warn the + * user if the file has changed since the link was made. +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + SkPdfArray* ID() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A flag indicating whether the file referenced by the file specifica- + * tion is volatile (changes frequently with time). If the value is true, viewer applications + * should never cache a copy of the file. For example, a movie annotation referencing a + * URL to a live video camera could set this flag to true, notifying the application that it + * should reacquire the movie each time it is played. Default value: false. +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + bool V() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Required if RF is present; PDF 1.3) A dictionary containing a subset of the keys F, + * DOS, Mac, and Unix, corresponding to the entries by those names in the file specifica- + * tion dictionary. The value of each such key is an embedded file stream (see Section + * 3.10.3, "Embedded File Streams") containing the corresponding file. If this entry is + * present, the Type entry is required and the file specification dictionary must be indi- + * rectly referenced. +**/ + bool has_EF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EF", "", NULL)); + } + + SkPdfDictionary* EF() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A dictionary with the same structure as the EF dictionary, which + * must also be present. Each key in the RF dictionary must also be present in the EF dic- + * tionary. Each value is a related files array (see "Related Files Arrays" on page 125) + * identifying files that are related to the corresponding file in the EF dictionary. If this + * entry is present, the Type entry is required and the file specification dictionary must + * be indirectly referenced. +**/ + bool has_RF() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RF", "", NULL)); + } + + SkPdfDictionary* RF() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RF", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFileSpecificationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h new file mode 100644 index 0000000000..49786950c7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h @@ -0,0 +1,615 @@ +#ifndef __DEFINED__SkPdfFileTrailerDictionary +#define __DEFINED__SkPdfFileTrailerDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the file trailer dictionary +class SkPdfFileTrailerDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFileTrailerDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFileTrailerDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return this;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFileTrailerDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFileTrailerDictionary(const SkPdfFileTrailerDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFileTrailerDictionary& operator=(const SkPdfFileTrailerDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The total number of entries in the file's cross-reference table, as defined + * by the combination of the original section and all update sections. Equivalently, this + * value is 1 greater than the highest object number used in the file. +**/ + bool has_Size() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", NULL)); + } + + long Size() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Present only if the file has more than one cross-reference section) The byte offset from + * the beginning of the file to the beginning of the previous cross-reference section. +**/ + bool has_Prev() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", NULL)); + } + + long Prev() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required; must be an indirect reference) The catalog dictionary for the PDF docu- + * ment contained in the file (see Section 3.6.1, "Document Catalog"). +**/ + bool has_Root() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", NULL)); + } + + SkPdfDictionary* Root() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if document is encrypted; PDF 1.1) The document's encryption dictionary + * (see Section 3.5, "Encryption"). +**/ + bool has_Encrypt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encrypt", "", NULL)); + } + + SkPdfDictionary* Encrypt() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encrypt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; must be an indirect reference) The document's information dictionary + * (see Section 9.2.1, "Document Information Dictionary"). +**/ + bool has_Info() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", NULL)); + } + + SkPdfDictionary* Info() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1) An array of two strings constituting a file identifier (see Section + * 9.3, "File Identifiers") for the file. +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + SkPdfArray* ID() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFileTrailerDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFontDescriptorDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFontDescriptorDictionary_autogen.h new file mode 100644 index 0000000000..2d57f714e1 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFontDescriptorDictionary_autogen.h @@ -0,0 +1,810 @@ +#ifndef __DEFINED__SkPdfFontDescriptorDictionary +#define __DEFINED__SkPdfFontDescriptorDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all font descriptors +class SkPdfFontDescriptorDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFontDescriptorDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFontDescriptorDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return this;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFontDescriptorDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFontDescriptorDictionary(const SkPdfFontDescriptorDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFontDescriptorDictionary& operator=(const SkPdfFontDescriptorDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * FontDescriptor for a font descriptor. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The PostScript name of the font. This should be the same as the + * value of BaseFont in the font or CIDFont dictionary that refers to this font + * descriptor. +**/ + bool has_FontName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontName", "", NULL)); + } + + std::string FontName() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A collection of flags defining various characteristics of the font + * (see Section 5.7.1, "Font Descriptor Flags"). +**/ + bool has_Flags() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", NULL)); + } + + long Flags() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the + * glyph coordinate system, specifying the font bounding box. This is the small- + * est rectangle enclosing the shape that would result if all of the glyphs of the + * font were placed with their origins coincident and then filled. +**/ + bool has_FontBBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", NULL)); + } + + SkRect* FontBBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The angle, expressed in degrees counterclockwise from the verti- + * cal, of the dominant vertical strokes of the font. (For example, the 9-o'clock + * position is 90 degrees, and the 3-o'clock position is '90 degrees.) The value is + * negative for fonts that slope to the right, as almost all italic fonts do. +**/ + bool has_ItalicAngle() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ItalicAngle", "", NULL)); + } + + double ItalicAngle() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ItalicAngle", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The maximum height above the baseline reached by glyphs in this + * font, excluding the height of glyphs for accented characters. +**/ + bool has_Ascent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascent", "", NULL)); + } + + double Ascent() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The maximum depth below the baseline reached by glyphs in this + * font. The value is a negative number. +**/ + bool has_Descent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Descent", "", NULL)); + } + + double Descent() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Descent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The desired spacing between baselines of consecutive lines of text. + * Default value: 0. +**/ + bool has_Leading() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leading", "", NULL)); + } + + double Leading() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leading", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The vertical coordinate of the top of flat capital letters, measured + * from the baseline. +**/ + bool has_CapHeight() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHeight", "", NULL)); + } + + double CapHeight() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHeight", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The font's x height: the vertical coordinate of the top of flat non- + * ascending lowercase letters (like the letter x), measured from the baseline. + * Default value: 0. +**/ + bool has_XHeight() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeight", "", NULL)); + } + + double XHeight() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeight", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The thickness, measured horizontally, of the dominant vertical + * stems of glyphs in the font. +**/ + bool has_StemV() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV", "", NULL)); + } + + double StemV() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The thickness, measured invertically, of the dominant horizontal + * stems of glyphs in the font. Default value: 0. +**/ + bool has_StemH() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH", "", NULL)); + } + + double StemH() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The average width of glyphs in the font. Default value: 0. +**/ + bool has_AvgWidth() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWidth", "", NULL)); + } + + double AvgWidth() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWidth", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The maximum width of glyphs in the font. Default value: 0. +**/ + bool has_MaxWidth() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWidth", "", NULL)); + } + + double MaxWidth() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWidth", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The width to use for character codes whose widths are not speci- + * fied in a font dictionary's Widths array. This has a predictable effect only if all + * such codes map to glyphs whose actual widths are the same as the Missing- + * Width value. Default value: 0. +**/ + bool has_MissingWidth() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MissingWidth", "", NULL)); + } + + double MissingWidth() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MissingWidth", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A stream containing a Type 1 font program (see Section 5.8, + * "Embedded Font Programs"). +**/ + bool has_FontFile() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", NULL)); + } + + SkPdfStream* FontFile() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1) A stream containing a TrueType font program (see Sec- + * tion 5.8, "Embedded Font Programs"). +**/ + bool has_FontFile2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", NULL)); + } + + SkPdfStream* FontFile2() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A stream containing a font program other than Type 1 or + * TrueType. The format of the font program is specified by the Subtype entry + * in the stream dictionary (see Section 5.8, "Embedded Font Programs," and + * implementation note 49 in Appendix H). + * At most, only one of the FontFile, FontFile2, and FontFile3 entries may be + * present. +**/ + bool has_FontFile3() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", NULL)); + } + + SkPdfStream* FontFile3() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; meaningful only in Type 1 fonts; PDF 1.1) A string listing the char- + * acter names defined in a font subset. The names in this string must be in PDF + * syntax-that is, each name preceded by a slash (/). The names can appear in + * any order. The name .notdef should be omitted; it is assumed to exist in the + * font subset. If this entry is absent, the only indication of a font subset is the + * subset tag in the FontName entry (see Section 5.5.3, "Font Subsets"). +**/ + bool has_CharSet() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharSet", "", NULL)); + } + + std::string CharSet() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharSet", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfFontDescriptorDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFontDictionary_autogen.h new file mode 100644 index 0000000000..818fc9851f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFontDictionary_autogen.h @@ -0,0 +1,511 @@ +#ifndef __DEFINED__SkPdfFontDictionary +#define __DEFINED__SkPdfFontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +class SkPdfFontDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kFontDictionary__End_SkPdfObjectType;} +public: + virtual SkPdfFontDictionary* asFontDictionary() {return this;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFontDictionary(const SkPdfFontDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFontDictionary& operator=(const SkPdfFontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfFontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFormFieldActionsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFormFieldActionsDictionary_autogen.h new file mode 100644 index 0000000000..2792bf127c --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFormFieldActionsDictionary_autogen.h @@ -0,0 +1,592 @@ +#ifndef __DEFINED__SkPdfFormFieldActionsDictionary +#define __DEFINED__SkPdfFormFieldActionsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a form field's additional-actions dictionary +class SkPdfFormFieldActionsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFormFieldActionsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFormFieldActionsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return this;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFormFieldActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFormFieldActionsDictionary(const SkPdfFormFieldActionsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFormFieldActionsDictionary& operator=(const SkPdfFormFieldActionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.3) A JavaScript action to be performed when the user types a key- + * stroke into a text field or combo box or modifies the selection in a scrollable list box. + * This allows the keystroke to be checked for validity and rejected or modified. +**/ + bool has_K() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", NULL)); + } + + SkPdfDictionary* K() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A JavaScript action to be performed before the field is formatted + * to display its current value. This allows the field's value to be modified before format- + * ting. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfDictionary* F() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A JavaScript action to be performed when the field's value is + * changed. This allows the new value to be checked for validity. (The name V stands for + * "validate.") +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + SkPdfDictionary* V() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A JavaScript action to be performed in order to recalculate the + * value of this field when that of another field changes. (The name C stands for + * "calculate.") The order in which the document's fields are recalculated is defined by the + * CO entry in the interactive form dictionary (see Section 8.6.1, "Interactive Form + * Dictionary"). +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfDictionary* C() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFormFieldActionsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFreeTextAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFreeTextAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..795e9bf190 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFreeTextAnnotationDictionary_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfFreeTextAnnotationDictionary +#define __DEFINED__SkPdfFreeTextAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a free text annotation +class SkPdfFreeTextAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFreeTextAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFreeTextAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return this;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFreeTextAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFreeTextAnnotationDictionary(const SkPdfFreeTextAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFreeTextAnnotationDictionary& operator=(const SkPdfFreeTextAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be + * FreeText for a free text annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The default appearance string to be used in formatting the text (see + * "Variable Text" on page 533). + * Note: The annotation dictionary's AP entry, if present, takes precedence over the DA + * entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams." +**/ + bool has_DA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", NULL)); + } + + std::string DA() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) A code specifying the form of quadding (justification) to be + * used in displaying the annotation's text: + * 0 Left-justified + * 1 Centered + * 2 Right-justified + * Default value: 0 (left-justified). +**/ + bool has_Q() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", NULL)); + } + + long Q() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfFreeTextAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfFunctionCommonDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfFunctionCommonDictionary_autogen.h new file mode 100644 index 0000000000..5633dcbf22 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfFunctionCommonDictionary_autogen.h @@ -0,0 +1,582 @@ +#ifndef __DEFINED__SkPdfFunctionCommonDictionary +#define __DEFINED__SkPdfFunctionCommonDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all function dictionaries +class SkPdfFunctionCommonDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kFunctionCommonDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kFunctionCommonDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return this;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfFunctionCommonDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfFunctionCommonDictionary(const SkPdfFunctionCommonDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfFunctionCommonDictionary& operator=(const SkPdfFunctionCommonDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The function type: + * 0 Sampled function + * 2 Exponential interpolation function + * 3 Stitching function + * 4 PostScript calculator function +**/ + bool has_FunctionType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FunctionType", "", NULL)); + } + + long FunctionType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FunctionType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) An array of 2 x m numbers, where m is the number of input + * values. For each i from 0 to m - 1, Domain2i must be less than or equal to + * Domain2i+1 , and the ith input value, xi , must lie in the interval + * Domain2i <= xi <= Domain2i+1 . Input values outside the declared domain are + * clipped to the nearest boundary value. +**/ + bool has_Domain() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL)); + } + + SkPdfArray* Domain() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required for type 0 and type 4 functions, optional otherwise; see below) An + * array of 2 x n numbers, where n is the number of output values. For each j + * from 0 to n - 1, Range2j must be less than or equal to Range2j+1 , and the jth + * output value, yj , must lie in the interval Range2j <= yj <= Range2j+1 . Output + * values outside the declared range are clipped to the nearest boundary value. + * If this entry is absent, no clipping is done. +**/ + bool has_Range() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", NULL)); + } + + SkPdfArray* Range() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfFunctionCommonDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfGoToActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfGoToActionDictionary_autogen.h new file mode 100644 index 0000000000..2e04730ebd --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfGoToActionDictionary_autogen.h @@ -0,0 +1,589 @@ +#ifndef __DEFINED__SkPdfGoToActionDictionary +#define __DEFINED__SkPdfGoToActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a go-to action +class SkPdfGoToActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kGoToActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGoToActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return this;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfGoToActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfGoToActionDictionary(const SkPdfGoToActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfGoToActionDictionary& operator=(const SkPdfGoToActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be GoTo for a + * go-to action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The destination to jump to (see Section 8.2.1, "Destinations"). +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + bool isDAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getDAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfGoToActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfGraphicsStateDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfGraphicsStateDictionary_autogen.h new file mode 100644 index 0000000000..7cb5f01607 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfGraphicsStateDictionary_autogen.h @@ -0,0 +1,1108 @@ +#ifndef __DEFINED__SkPdfGraphicsStateDictionary +#define __DEFINED__SkPdfGraphicsStateDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a graphics state parameter dictionary +class SkPdfGraphicsStateDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kGraphicsStateDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGraphicsStateDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return this;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfGraphicsStateDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfGraphicsStateDictionary(const SkPdfGraphicsStateDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfGraphicsStateDictionary& operator=(const SkPdfGraphicsStateDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; must be + * ExtGState for a graphics state parameter dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) The line width (see "Line Width" on page 152). +**/ + bool has_LW() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW", "", NULL)); + } + + double LW() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LW", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) The line cap style (see "Line Cap Style" on page 153). +**/ + bool has_LC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LC", "", NULL)); + } + + long LC() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) The line join style (see "Line Join Style" on page 153). +**/ + bool has_LJ() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LJ", "", NULL)); + } + + long LJ() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LJ", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) The miter limit (see "Miter Limit" on page 153). +**/ + bool has_ML() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML", "", NULL)); + } + + double ML() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ML", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) The line dash pattern, expressed as an array of the form + * [dashArray dashPhase], where dashArray is itself an array and dashPhase is an + * integer (see "Line Dash Pattern" on page 155). +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + SkPdfArray* D() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) The name of the rendering intent (see "Rendering + * Intents" on page 197). +**/ + bool has_RI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", NULL)); + } + + std::string RI() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag specifying whether to apply overprint (see Section 4.5.6, + * "Overprint Control"). In PDF 1.2 and earlier, there is a single overprint + * parameter that applies to all painting operations. Beginning with PDF 1.3, + * there are two separate overprint parameters: one for stroking and one for all + * other painting operations. Specifying an OP entry sets both parameters un- + * less there is also an op entry in the same graphics state parameter dictionary, + * in which case the OP entry sets only the overprint parameter for stroking. +**/ + bool has_OP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OP", "", NULL)); + } + + bool OP() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.3) A flag specifying whether to apply overprint (see Section + * 4.5.6, "Overprint Control") for painting operations other than stroking. If + * this entry is absent, the OP entry, if any, sets this parameter. +**/ + bool has_op() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "op", "", NULL)); + } + + bool op() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "op", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.3) The overprint mode (see Section 4.5.6, "Overprint Con- + * trol"). +**/ + bool has_OPM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM", "", NULL)); + } + + long OPM() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) An array of the form [font size], where font is an indirect + * reference to a font dictionary and size is a number expressed in text space + * units. These two objects correspond to the operands of the Tf operator (see + * Section 5.2, "Text State Parameters and Operators"); however, the first oper- + * and is an indirect object reference instead of a resource name. +**/ + bool has_Font() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "", NULL)); + } + + SkPdfArray* Font() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The black-generation function, which maps the interval [0.0 1.0] + * to the interval [0.0 1.0] (see Section 6.2.3, "Conversion from DeviceRGB to + * DeviceCMYK"). +**/ + bool has_BG() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", NULL)); + } + + SkPdfFunction BG() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +/** (Optional; PDF 1.3) Same as BG except that the value may also be the name + * Default, denoting the black-generation function that was in effect at the start + * of the page. If both BG and BG2 are present in the same graphics state param- + * eter dictionary, BG2 takes precedence. +**/ + bool has_BG2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", NULL)); + } + + bool isBG2AFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getBG2AsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isBG2AName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getBG2AsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BG2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The undercolor-removal function, which maps the interval + * [0.0 1.0] to the interval [-1.0 1.0] (see Section 6.2.3, "Conversion from + * DeviceRGB to DeviceCMYK"). +**/ + bool has_UCR() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR", "", NULL)); + } + + SkPdfFunction UCR() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +/** (Optional; PDF 1.3) Same as UCR except that the value may also be the name + * Default, denoting the undercolor-removal function that was in effect at the + * start of the page. If both UCR and UCR2 are present in the same graphics state + * parameter dictionary, UCR2 takes precedence. +**/ + bool has_UCR2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", NULL)); + } + + bool isUCR2AFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getUCR2AsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isUCR2AName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getUCR2AsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "UCR2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The transfer function, which maps the interval [0.0 1.0] to the + * interval [0.0 1.0] (see Section 6.3, "Transfer Functions"). The value is either + * a single function (which applies to all process colorants) or an array of four + * functions (which apply to the process colorants individually). The name + * Identity may be used to represent the identity function. +**/ + bool has_TR() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", NULL)); + } + + bool isTRAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTRAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTRAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getTRAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isTRAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTRAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) Same as TR except that the value may also be the name + * Default, denoting the transfer function that was in effect at the start of the + * page. If both TR and TR2 are present in the same graphics state parameter dic- + * tionary, TR2 takes precedence. +**/ + bool has_TR2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", NULL)); + } + + bool isTR2AFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTR2AsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTR2AArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getTR2AsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isTR2AName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTR2AsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The halftone dictionary or stream (see Section 6.4, "Halftones") + * or the name Default, denoting the halftone that was in effect at the start of the + * page. +**/ + bool has_HT() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", NULL)); + } + + bool isHTADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getHTAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isHTAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getHTAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isHTAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getHTAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) The flatness tolerance (see Section 6.5.1, "Flatness Toler- + * ance"). +**/ + bool has_FL() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL", "", NULL)); + } + + double FL() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FL", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) The smoothness tolerance (see Section 6.5.2, "Smooth- + * ness Tolerance"). +**/ + bool has_SM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM", "", NULL)); + } + + double SM() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A flag specifying whether to apply automatic stroke adjustment + * (see Section 6.5.4, "Automatic Stroke Adjustment"). +**/ + bool has_SA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SA", "", NULL)); + } + + bool SA() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.4) The current blend mode to be used in the transparent + * imaging model (see Sections 7.2.4, "Blend Mode," and 7.5.2, "Specifying + * Blending Color Space and Blend Mode"). +**/ + bool has_BM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", NULL)); + } + + bool isBMAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getBMAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isBMAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getBMAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) The current soft mask, specifying the mask shape or + * mask opacity values to be used in the transparent imaging model (see + * "Source Shape and Opacity" on page 421 and "Mask Shape and Opacity" on + * page 443). + * Note: Although the current soft mask is sometimes referred to as a "soft clip," + * altering it with the gs operator completely replaces the old value with the new + * one, rather than intersecting the two as is done with the current clipping path + * parameter (see Section 4.4.3, "Clipping Path Operators"). +**/ + bool has_SMask() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", NULL)); + } + + bool isSMaskADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getSMaskAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isSMaskAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getSMaskAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The current stroking alpha constant, specifying the con- + * stant shape or constant opacity value to be used for stroking operations in the + * transparent imaging model (see "Source Shape and Opacity" on page 421 + * and "Constant Shape and Opacity" on page 444). +**/ + bool has_CA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", NULL)); + } + + double CA() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.4) Same as CA, but for nonstroking operations. +**/ + bool has_ca() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca", "", NULL)); + } + + double ca() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ca", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.4) The alpha source flag ("alpha is shape"), specifying + * whether the current soft mask and alpha constant are to be interpreted as + * shape values (true) or opacity values (false). +**/ + bool has_AIS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS", "", NULL)); + } + + bool AIS() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AIS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.4) The text knockout flag, which determines the behavior + * of overlapping glyphs within a text object in the transparent imaging model + * (see Section 5.2.7, "Text Knockout"). +**/ + bool has_TK() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", NULL)); + } + + bool TK() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfGraphicsStateDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfGroupAttributesDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfGroupAttributesDictionary_autogen.h new file mode 100644 index 0000000000..7ac962bad4 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfGroupAttributesDictionary_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfGroupAttributesDictionary +#define __DEFINED__SkPdfGroupAttributesDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all group attributes dictionaries +class SkPdfGroupAttributesDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kGroupAttributesDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kGroupAttributesDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return this;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfGroupAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfGroupAttributesDictionary(const SkPdfGroupAttributesDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfGroupAttributesDictionary& operator=(const SkPdfGroupAttributesDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must + * be Group for a group attributes dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The group subtype, which identifies the type of group whose at- + * tributes this dictionary describes and determines the format and meaning of the + * dictionary's remaining entries. The only group subtype defined in PDF 1.4 is + * Transparency; see Section 7.5.5, "Transparency Group XObjects," for the re- + * maining contents of this type of dictionary. Other group subtypes may be added + * in the future. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfGroupAttributesDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfHeaders_autogen.h b/experimental/PdfViewer/autogen/SkPdfHeaders_autogen.h new file mode 100644 index 0000000000..089719837f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfHeaders_autogen.h @@ -0,0 +1,184 @@ +#ifndef __DEFINED__SkPdfHeaders +#define __DEFINED__SkPdfHeaders + +#include "SkPdfEnums_autogen.h" +#include "SkPdfJavascriptActionDictionary_autogen.h" +#include "SkPdfMovieAnnotationDictionary_autogen.h" +#include "SkPdfMetadataStreamDictionary_autogen.h" +#include "SkPdfPageTreeNodeDictionary_autogen.h" +#include "SkPdfWebCaptureCommandDictionary_autogen.h" +#include "SkPdfAnnotationActionsDictionary_autogen.h" +#include "SkPdfInkAnnotationDictionary_autogen.h" +#include "SkPdfWindowsLaunchActionDictionary_autogen.h" +#include "SkPdfBeadDictionary_autogen.h" +#include "SkPdfPageObjectDictionary_autogen.h" +#include "SkPdfType16HalftoneDictionary_autogen.h" +#include "SkPdfObject_autogen.h" +#include "SkPdfFontDescriptorDictionary_autogen.h" +#include "SkPdfLaunchActionDictionary_autogen.h" +#include "SkPdfType3FontDictionary_autogen.h" +#include "SkPdfMovieActionDictionary_autogen.h" +#include "SkPdfBorderStyleDictionary_autogen.h" +#include "SkPdfNamedActionsDictionary_autogen.h" +#include "SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h" +#include "SkPdfTrueTypeFontDictionary_autogen.h" +#include "SkPdfJavascriptDictionary_autogen.h" +#include "SkPdfFDFTrailerDictionary_autogen.h" +#include "SkPdfMultiMasterFontDictionary_autogen.h" +#include "SkPdfEmbeddedFileStreamDictionary_autogen.h" +#include "SkPdfAppearanceDictionary_autogen.h" +#include "SkPdfRadioButtonFieldDictionary_autogen.h" +#include "SkPdfType6HalftoneDictionary_autogen.h" +#include "SkPdfFDFNamedPageReferenceDictionary_autogen.h" +#include "SkPdfReference_autogen.h" +#include "SkPdfWebCaptureImageSetDictionary_autogen.h" +#include "SkPdfBlockLevelStructureElementsDictionary_autogen.h" +#include "SkPdfViewerPreferencesDictionary_autogen.h" +#include "SkPdfType3FunctionDictionary_autogen.h" +#include "SkPdfFieldDictionary_autogen.h" +#include "SkPdfAnnotationDictionary_autogen.h" +#include "SkPdfType3ShadingDictionary_autogen.h" +#include "SkPdfType1HalftoneDictionary_autogen.h" +#include "SkPdfActionDictionary_autogen.h" +#include "SkPdfDocumentInformationDictionary_autogen.h" +#include "SkPdfStructureElementDictionary_autogen.h" +#include "SkPdfIccProfileStreamDictionary_autogen.h" +#include "SkPdfType1FontDictionary_autogen.h" +#include "SkPdfTextFieldDictionary_autogen.h" +#include "SkPdfGroupAttributesDictionary_autogen.h" +#include "SkPdfFileSpecificationDictionary_autogen.h" +#include "SkPdfRubberStampAnnotationDictionary_autogen.h" +#include "SkPdfSoftMaskImageDictionary_autogen.h" +#include "SkPdfTrapNetworkAnnotationDictionary_autogen.h" +#include "SkPdfRemoteGoToActionDictionary_autogen.h" +#include "SkPdfMarkInformationDictionary_autogen.h" +#include "SkPdfComponentsWithMetadataDictionary_autogen.h" +#include "SkPdfString_autogen.h" +#include "SkPdfAlternateImageDictionary_autogen.h" +#include "SkPdfArtifactsDictionary_autogen.h" +#include "SkPdfPrinterMarkFormDictionary_autogen.h" +#include "SkPdfFreeTextAnnotationDictionary_autogen.h" +#include "SkPdfLineAnnotationDictionary_autogen.h" +#include "SkPdfFDFFileAnnotationDictionary_autogen.h" +#include "SkPdfWebCaptureDictionary_autogen.h" +#include "SkPdfPageObjectActionsDictionary_autogen.h" +#include "SkPdfSeparationDictionary_autogen.h" +#include "SkPdfSoftMaskDictionary_autogen.h" +#include "SkPdfURLAliasDictionary_autogen.h" +#include "SkPdfListAttributeDictionary_autogen.h" +#include "SkPdfResourceDictionary_autogen.h" +#include "SkPdfNameTreeNodeDictionary_autogen.h" +#include "SkPdfIconFitDictionary_autogen.h" +#include "SkPdfImportDataActionDictionary_autogen.h" +#include "SkPdfTransparencyGroupDictionary_autogen.h" +#include "SkPdfInteractiveFormDictionary_autogen.h" +#include "SkPdfMovieActivationDictionary_autogen.h" +#include "SkPdfPageLabelDictionary_autogen.h" +#include "SkPdfLabColorSpaceDictionary_autogen.h" +#include "SkPdfFDFCatalogDictionary_autogen.h" +#include "SkPdfALinkAnnotationDictionary_autogen.h" +#include "SkPdfAppearanceCharacteristicsDictionary_autogen.h" +#include "SkPdfStream_autogen.h" +#include "SkPdfTransitionDictionary_autogen.h" +#include "SkPdfApplicationDataDictionary_autogen.h" +#include "SkPdfFileAttachmentAnnotationDictionary_autogen.h" +#include "SkPdfGraphicsStateDictionary_autogen.h" +#include "SkPdfType0FontDictionary_autogen.h" +#include "SkPdfMacOsFileInformationDictionary_autogen.h" +#include "SkPdfWebCapturePageSetDictionary_autogen.h" +#include "SkPdfNumberTreeNodeDictionary_autogen.h" +#include "SkPdfURIActionDictionary_autogen.h" +#include "SkPdfVariableTextFieldDictionary_autogen.h" +#include "SkPdfJbig2DecodeFilterDictionary_autogen.h" +#include "SkPdfSourceInformationDictionary_autogen.h" +#include "SkPdfFDFDictionary_autogen.h" +#include "SkPdfThreadActionDictionary_autogen.h" +#include "SkPdfReferenceDictionary_autogen.h" +#include "SkPdfEncodingDictionary_autogen.h" +#include "SkPdfFDFFieldDictionary_autogen.h" +#include "SkPdfAttributeObjectDictionary_autogen.h" +#include "SkPdfCIDSystemInfoDictionary_autogen.h" +#include "SkPdfMarkedContentReferenceDictionary_autogen.h" +#include "SkPdfResetFormActionDictionary_autogen.h" +#include "SkPdfDictionary_autogen.h" +#include "SkPdfCalgrayColorSpaceDictionary_autogen.h" +#include "SkPdfSquareOrCircleAnnotation_autogen.h" +#include "SkPdfTableAttributesDictionary_autogen.h" +#include "SkPdfSubmitFormActionDictionary_autogen.h" +#include "SkPdfType2FunctionDictionary_autogen.h" +#include "SkPdfCheckboxFieldDictionary_autogen.h" +#include "SkPdfBoxStyleDictionary_autogen.h" +#include "SkPdfInteger_autogen.h" +#include "SkPdfType1PatternDictionary_autogen.h" +#include "SkPdfHexString_autogen.h" +#include "SkPdfPagePieceDictionary_autogen.h" +#include "SkPdfEncryptedEmbeddedFileStreamDictionary_autogen.h" +#include "SkPdfWebCaptureCommandSettingsDictionary_autogen.h" +#include "SkPdfType2ShadingDictionary_autogen.h" +#include "SkPdfInlineLevelStructureElementsDictionary_autogen.h" +#include "SkPdfMarkupAnnotationsDictionary_autogen.h" +#include "SkPdfPopUpAnnotationDictionary_autogen.h" +#include "SkPdfFormFieldActionsDictionary_autogen.h" +#include "SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h" +#include "SkPdfSoundObjectDictionary_autogen.h" +#include "SkPdfOutlineItemDictionary_autogen.h" +#include "SkPdfCIDFontDescriptorDictionary_autogen.h" +#include "SkPdfCMapDictionary_autogen.h" +#include "SkPdfNumber_autogen.h" +#include "SkPdfTextAnnotationDictionary_autogen.h" +#include "SkPdfType2PatternDictionary_autogen.h" +#include "SkPdfPSXobjectDictionary_autogen.h" +#include "SkPdfOutlineDictionary_autogen.h" +#include "SkPdfThreadDictionary_autogen.h" +#include "SkPdfImageDictionary_autogen.h" +#include "SkPdfCIDFontDictionary_autogen.h" +#include "SkPdfType5ShadingDictionary_autogen.h" +#include "SkPdfType5HalftoneDictionary_autogen.h" +#include "SkPdfOpiVersionDictionary_autogen.h" +#include "SkPdfStructureElementAccessDictionary_autogen.h" +#include "SkPdfDocumentCatalogActionsDictionary_autogen.h" +#include "SkPdfDeviceNColorSpaceDictionary_autogen.h" +#include "SkPdfMovieDictionary_autogen.h" +#include "SkPdfWidgetAnnotationDictionary_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" +#include "SkPdfCatalogDictionary_autogen.h" +#include "SkPdfStructureTreeRootDictionary_autogen.h" +#include "SkPdfType6ShadingDictionary_autogen.h" +#include "SkPdfFileTrailerDictionary_autogen.h" +#include "SkPdfFDFTemplateDictionary_autogen.h" +#include "SkPdfEmbeddedFileParameterDictionary_autogen.h" +#include "SkPdfBoxColorInformationDictionary_autogen.h" +#include "SkPdfXObjectDictionary_autogen.h" +#include "SkPdfGoToActionDictionary_autogen.h" +#include "SkPdfObjectReferenceDictionary_autogen.h" +#include "SkPdfBoolean_autogen.h" +#include "SkPdfWebCaptureInformationDictionary_autogen.h" +#include "SkPdfStreamCommonDictionary_autogen.h" +#include "SkPdfDctdecodeFilterDictionary_autogen.h" +#include "SkPdfPrinterMarkAnnotationDictionary_autogen.h" +#include "SkPdfStandardStructureDictionary_autogen.h" +#include "SkPdfName_autogen.h" +#include "SkPdfEncryptionCommonDictionary_autogen.h" +#include "SkPdfStandardSecurityHandlerDictionary_autogen.h" +#include "SkPdfSoundAnnotationDictionary_autogen.h" +#include "SkPdfChoiceFieldDictionary_autogen.h" +#include "SkPdfPDF_XOutputIntentDictionary_autogen.h" +#include "SkPdfType4ShadingDictionary_autogen.h" +#include "SkPdfSoundActionDictionary_autogen.h" +#include "SkPdfNull_autogen.h" +#include "SkPdfType10HalftoneDictionary_autogen.h" +#include "SkPdfEmbeddedFontStreamDictionary_autogen.h" +#include "SkPdfType1ShadingDictionary_autogen.h" +#include "SkPdfNameDictionary_autogen.h" +#include "SkPdfCcittfaxdecodeFilterDictionary_autogen.h" +#include "SkPdfType1FormDictionary_autogen.h" +#include "SkPdfFontDictionary_autogen.h" +#include "SkPdfFunctionCommonDictionary_autogen.h" +#include "SkPdfHideActionDictionary_autogen.h" +#include "SkPdfURIDictionary_autogen.h" +#include "SkPdfSignatureDictionary_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfType0FunctionDictionary_autogen.h" +#include "SkPdfFDFPageDictionary_autogen.h" +#include "SkPdfCalrgbColorSpaceDictionary_autogen.h" +#endif // __DEFINED__SkPdfHeaders diff --git a/experimental/PdfViewer/autogen/SkPdfHexString_autogen.h b/experimental/PdfViewer/autogen/SkPdfHexString_autogen.h new file mode 100644 index 0000000000..f8c0ee0852 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfHexString_autogen.h @@ -0,0 +1,32 @@ +#ifndef __DEFINED__SkPdfHexString +#define __DEFINED__SkPdfHexString + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfString_autogen.h" + +class SkPdfHexString : public SkPdfString { +public: + virtual SkPdfObjectType getType() const { return kHexString_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kHexString_SkPdfObjectType + 1);} +public: + virtual SkPdfHexString* asHexString() {return this;} + virtual const SkPdfHexString* asHexString() const {return this;} + +private: +public: + const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8();} +private: +public: + SkPdfHexString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfString(podofoDoc, podofoObj) {} + + SkPdfHexString(const SkPdfHexString& from) : SkPdfString(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfHexString& operator=(const SkPdfHexString& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfHexString diff --git a/experimental/PdfViewer/autogen/SkPdfHideActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfHideActionDictionary_autogen.h new file mode 100644 index 0000000000..e7a97fd053 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfHideActionDictionary_autogen.h @@ -0,0 +1,609 @@ +#ifndef __DEFINED__SkPdfHideActionDictionary +#define __DEFINED__SkPdfHideActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a hide action +class SkPdfHideActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kHideActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kHideActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return this;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfHideActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfHideActionDictionary(const SkPdfHideActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfHideActionDictionary& operator=(const SkPdfHideActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Hide for a hide + * action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The annotation or annotations to be hidden or shown, specified in any + * of the following forms: + * * An indirect reference to an annotation dictionary + * * A string giving the fully qualified field name of an interactive form field whose + * associated widget annotation or annotations are to be affected (see "Field + * Names" on page 532) + * * An array of such dictionaries or strings +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + bool isTADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getTAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isTAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getTAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isTAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getTAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag indicating whether to hide the annotation (true) or show it (false). + * Default value: true. +**/ + bool has_H() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", NULL)); + } + + bool H() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfHideActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfIccProfileStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfIccProfileStreamDictionary_autogen.h new file mode 100644 index 0000000000..565cb341e4 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfIccProfileStreamDictionary_autogen.h @@ -0,0 +1,617 @@ +#ifndef __DEFINED__SkPdfIccProfileStreamDictionary +#define __DEFINED__SkPdfIccProfileStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to an ICC profile stream dictionary +class SkPdfIccProfileStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kIccProfileStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kIccProfileStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return this;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfIccProfileStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfIccProfileStreamDictionary(const SkPdfIccProfileStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfIccProfileStreamDictionary& operator=(const SkPdfIccProfileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The number of color components in the color space described by the ICC + * profile data. This number must match the number of components actually in the ICC + * profile. As of PDF 1.4, N must be 1, 3, or 4. +**/ + bool has_N() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL)); + } + + long N() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) An alternate color space to be used in case the one specified in the stream + * data is not supported (for example, by viewer applications designed for earlier + * versions of PDF). The alternate space may be any valid color space (except a Pattern + * color space) that has the number of components specified by N. If this entry is omit- + * ted and the viewer application does not understand the ICC profile data, the color + * space used will be DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether + * the value of N is 1, 3, or 4, respectively. + * Note: Note that there is no conversion of source color values, such as a tint transforma- + * tion, when using the alternate color space. Color values that are within the range of the + * ICCBased color space might not be within the range of the alternate color space. In this + * case, the nearest values within the range of the alternate space will be substituted. +**/ + bool has_Alternate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternate", "", NULL)); + } + + bool isAlternateAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternate", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getAlternateAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isAlternateAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternate", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getAlternateAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of 2 x N numbers [min0 max0 min1 max1 ... ] specifying the + * minimum and maximum valid values of the corresponding color components. + * These values must match the information in the ICC profile. Default value: + * [0.0 1.0 0.0 1.0 ...]. +**/ + bool has_Range() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", NULL)); + } + + SkPdfArray* Range() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the color space (see + * Section 9.2.2, "Metadata Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfIccProfileStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfIconFitDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfIconFitDictionary_autogen.h new file mode 100644 index 0000000000..60f788917a --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfIconFitDictionary_autogen.h @@ -0,0 +1,586 @@ +#ifndef __DEFINED__SkPdfIconFitDictionary +#define __DEFINED__SkPdfIconFitDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an icon fit dictionary +class SkPdfIconFitDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kIconFitDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kIconFitDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return this;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfIconFitDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfIconFitDictionary(const SkPdfIconFitDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfIconFitDictionary& operator=(const SkPdfIconFitDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The circumstances under which the icon should be scaled inside the annota- + * tion rectangle: + * A Always scale. + * B Scale only when the icon is bigger than the annotation rectangle. + * S Scale only when the icon is smaller than the annotation rectangle. + * N Never scale. + * Default value: A. +**/ + bool has_SW() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SW", "", NULL)); + } + + std::string SW() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SW", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of scaling to use: + * A Anamorphic scaling: scale the icon to fill the annotation rectangle exactly, with- + * out regard to its original aspect ratio (ratio of width to height). + * P Proportional scaling: scale the icon to fit the width or height of the annotation + * rectangle while maintaining the icon's original aspect ratio. If the required hori- + * zontal and vertical scaling factors are different, use the smaller of the two, cen- + * tering the icon within the annotation rectangle in the other dimension. + * Default value: P. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of two numbers between 0.0 and 1.0 indicating the fraction of left- + * over space to allocate at the left and bottom of the icon. A value of [0.0 0.0] positions the + * icon at the bottom-left corner of the annotation rectangle; a value of [0.5 0.5] centers it + * within the rectangle. This entry is used only if the icon is scaled proportionally. Default + * value: [0.5 0.5]. +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + SkPdfArray* A() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfIconFitDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.h new file mode 100644 index 0000000000..c46cf5f015 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.h @@ -0,0 +1,361 @@ +#ifndef __DEFINED__SkPdfImageDictionary +#define __DEFINED__SkPdfImageDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfXObjectDictionary_autogen.h" + +// Additional entries specific to an image dictionary +class SkPdfImageDictionary : public SkPdfXObjectDictionary { +public: + virtual SkPdfObjectType getType() const { return kImageDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kImageDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfImageDictionary* asImageDictionary() {return this;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return this;} + +private: + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfImageDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfXObjectDictionary(podofoDoc, podofoObj) {} + + SkPdfImageDictionary(const SkPdfImageDictionary& from) : SkPdfXObjectDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfImageDictionary& operator=(const SkPdfImageDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be XObject for an image XObject. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of XObject that this dictionary describes; must be + * Image for an image XObject. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The width of the image, in samples. +**/ + bool has_Width() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL)); + } + + long Width() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The height of the image, in samples. +**/ + bool has_Height() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL)); + } + + long Height() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required except for image masks; not allowed for image masks) The color + * space in which image samples are specified. This may be any type of color + * space except Pattern. +**/ + bool has_ColorSpace() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", NULL)); + } + + bool isColorSpaceAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getColorSpaceAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isColorSpaceAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getColorSpaceAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required except for image masks; optional for image masks) The number of + * bits used to represent each color component. Only a single value may be + * specified; the number of bits is the same for all color components. Valid + * values are 1, 2, 4, and 8. If ImageMask is true, this entry is optional, and if + * specified, its value must be 1. + * If the image stream uses a filter, the value of BitsPerComponent must be + * consistent with the size of the data samples that the filter delivers. In par- + * ticular, a CCITTFaxDecode or JBIG2Decode filter always delivers 1-bit sam- + * ples, a RunLengthDecode or DCTDecode filter delivers 8-bit samples, and + * an LZWDecode or FlateDecode filter delivers samples of a specified size if + * a predictor function is used. +**/ + bool has_BitsPerComponent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); + } + + long BitsPerComponent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.1) The name of a color rendering intent to be used in + * rendering the image (see "Rendering Intents" on page 197). Default value: + * the current rendering intent in the graphics state. +**/ + bool has_Intent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Intent", "", NULL)); + } + + std::string Intent() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Intent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag indicating whether the image is to be treated as an image + * mask (see Section 4.8.5, "Masked Images"). If this flag is true, the value of + * BitsPerComponent must be 1 and Mask and ColorSpace should not be + * specified; unmasked areas will be painted using the current nonstroking + * color. Default value: false. +**/ + bool has_ImageMask() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ImageMask", "", NULL)); + } + + bool ImageMask() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ImageMask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional except for image masks; not allowed for image masks; PDF 1.3) An + * image XObject defining an image mask to be applied to this image (see + * "Explicit Masking" on page 277), or an array specifying a range of colors + * to be applied to it as a color key mask (see "Color Key Masking" on page + * 277). If ImageMask is true, this entry must not be present. (See + * implementation note 35 in Appendix H.) +**/ + bool has_Mask() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", NULL)); + } + + bool isMaskAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getMaskAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isMaskAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getMaskAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A subsidiary image XObject defining a soft-mask + * image (see "Soft-Mask Images" on page 447) to be used as a source of + * mask shape or mask opacity values in the transparent imaging model. The + * alpha source parameter in the graphics state determines whether the mask + * values are interpreted as shape or opacity. + * If present, this entry overrides the current soft mask in the graphics state, + * as well as the image's Mask entry, if any. (However, the other transparency- + * related graphics state parameters-blend mode and alpha constant- + * remain in effect.) If SMask is absent, the image has no associated soft mask + * (although the current soft mask in the graphics state may still apply). +**/ + bool has_SMask() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", NULL)); + } + + SkPdfStream* SMask() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of numbers describing how to map image samples + * into the range of values appropriate for the image's color space (see + * "Decode Arrays" on page 271). If ImageMask is true, the array must be + * either [0 1] or [1 0]; otherwise, its length must be twice the number of + * color components required by ColorSpace. Default value: see "Decode + * Arrays" on page 271. +**/ + bool has_Decode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); + } + + SkPdfArray* Decode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag indicating whether image interpolation is to be per- + * formed (see "Image Interpolation" on page 273). Default value: false. +**/ + bool has_Interpolate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Interpolate", "", NULL)); + } + + bool Interpolate() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Interpolate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.3) An array of alternate image dictionaries for this image + * (see "Alternate Images" on page 273). The order of elements within the + * array has no significance. This entry may not be present in an image + * XObject that is itself an alternate image. +**/ + bool has_Alternates() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternates", "", NULL)); + } + + SkPdfArray* Alternates() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternates", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required in PDF 1.0; optional otherwise) The name by which this image + * XObject is referenced in the XObject subdictionary of the current resource + * dictionary (see Section 3.7.2, "Resource Dictionaries"). + * Note: This entry is obsolescent and its use is no longer recommended. (See + * implementation note 36 in Appendix H.) +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if the image is a structural content item; PDF 1.3) The integer key + * of the image's entry in the structural parent tree (see "Finding Structure + * Elements from Content Items" on page 600). +**/ + bool has_StructParent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", NULL)); + } + + long StructParent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3; indirect reference preferred) The digital identifier of the + * image's parent Web Capture content set (see Section 9.9.5, "Object At- + * tributes Related to Web Capture"). +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + std::string ID() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.2) An OPI version dictionary for the image (see Section + * 9.10.6, "Open Prepress Interface (OPI)"). If ImageMask is true, this entry + * is ignored. +**/ + bool has_OPI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", NULL)); + } + + SkPdfDictionary* OPI() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the image + * (see Section 9.2.2, "Metadata Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfImageDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfImportDataActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfImportDataActionDictionary_autogen.h new file mode 100644 index 0000000000..896dd6b364 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfImportDataActionDictionary_autogen.h @@ -0,0 +1,558 @@ +#ifndef __DEFINED__SkPdfImportDataActionDictionary +#define __DEFINED__SkPdfImportDataActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to an import-data action +class SkPdfImportDataActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kImportDataActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kImportDataActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return this;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfImportDataActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfImportDataActionDictionary(const SkPdfImportDataActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfImportDataActionDictionary& operator=(const SkPdfImportDataActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be ImportData + * for an import-data action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The FDF file from which to import the data. (See implementation + * notes 87 and 88 in Appendix H.) +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +}; + +#endif // __DEFINED__SkPdfImportDataActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfInkAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfInkAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..73472998c4 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfInkAnnotationDictionary_autogen.h @@ -0,0 +1,592 @@ +#ifndef __DEFINED__SkPdfInkAnnotationDictionary +#define __DEFINED__SkPdfInkAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to an ink annotation +class SkPdfInkAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kInkAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kInkAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return this;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfInkAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfInkAnnotationDictionary(const SkPdfInkAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfInkAnnotationDictionary& operator=(const SkPdfInkAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Ink for + * an ink annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annotation + * is opened. Carriage returns may be used to separate the text into paragraphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of n arrays, each representing a stroked path. Each array is a + * series of alternating horizontal and vertical coordinates in default user space, + * specifying points along the path. When drawn, the points are connected by + * straight lines or curves in an implementation-dependent way. (See implementa- + * tion note 68 in Appendix H.) +**/ + bool has_InkList() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "InkList", "", NULL)); + } + + SkPdfArray* InkList() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "InkList", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A border style dictionary (see Table 8.12 on page 495) specifying the + * line width and dash pattern to be used in drawing the paths. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * InkList and BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance + * Streams." +**/ + bool has_BS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", NULL)); + } + + SkPdfDictionary* BS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfInkAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfInlineLevelStructureElementsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfInlineLevelStructureElementsDictionary_autogen.h new file mode 100644 index 0000000000..1c8a9bd0b7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfInlineLevelStructureElementsDictionary_autogen.h @@ -0,0 +1,572 @@ +#ifndef __DEFINED__SkPdfInlineLevelStructureElementsDictionary +#define __DEFINED__SkPdfInlineLevelStructureElementsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Standard layout attributes specific to inline-level structure elements +class SkPdfInlineLevelStructureElementsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kInlineLevelStructureElementsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kInlineLevelStructureElementsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return this;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfInlineLevelStructureElementsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfInlineLevelStructureElementsDictionary(const SkPdfInlineLevelStructureElementsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfInlineLevelStructureElementsDictionary& operator=(const SkPdfInlineLevelStructureElementsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The element's preferred height, measured in default user space + * units in the block-progression direction. The height of a line is deter- + * mined by the largest LineHeight value for any complete or partial ILSE + * that it contains. + * The name Normal or Auto in place of a numeric value indicates that no + * specific height constraint is to be imposed; the element's height is set to a + * reasonable value based on the content's font size: + * Normal Adjust the line height to include any nonzero value + * specified for BaselineShift (see below). + * Auto Do not adjust for the value of BaselineShift. + * Default value: Normal. +**/ + bool has_LineHeight() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", NULL)); + } + + bool isLineHeightANumber() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + double getLineHeightAsNumber() const { + double ret = 0; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isLineHeightAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getLineHeightAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfInlineLevelStructureElementsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfInteger_autogen.h b/experimental/PdfViewer/autogen/SkPdfInteger_autogen.h new file mode 100644 index 0000000000..3717140c8e --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfInteger_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfInteger +#define __DEFINED__SkPdfInteger + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfInteger : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kInteger_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kInteger__End_SkPdfObjectType;} +public: + virtual SkPdfInteger* asInteger() {return this;} + virtual const SkPdfInteger* asInteger() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: + long value() const {return fPodofoObj->GetNumber();} +private: +public: + SkPdfInteger(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfInteger(const SkPdfInteger& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfInteger& operator=(const SkPdfInteger& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfInteger diff --git a/experimental/PdfViewer/autogen/SkPdfInteractiveFormDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfInteractiveFormDictionary_autogen.h new file mode 100644 index 0000000000..2837857119 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfInteractiveFormDictionary_autogen.h @@ -0,0 +1,633 @@ +#ifndef __DEFINED__SkPdfInteractiveFormDictionary +#define __DEFINED__SkPdfInteractiveFormDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the interactive form dictionary +class SkPdfInteractiveFormDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kInteractiveFormDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kInteractiveFormDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return this;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfInteractiveFormDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfInteractiveFormDictionary(const SkPdfInteractiveFormDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfInteractiveFormDictionary& operator=(const SkPdfInteractiveFormDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of references to the document's root fields (those with + * no ancestors in the field hierarchy). +**/ + bool has_Fields() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", NULL)); + } + + SkPdfArray* Fields() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag specifying whether to construct appearance streams and + * appearance dictionaries for all widget annotations in the document (see + * "Variable Text" on page 533). Default value: false. +**/ + bool has_NeedAppearances() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NeedAppearances", "", NULL)); + } + + bool NeedAppearances() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NeedAppearances", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.3) A set of flags specifying various document-level char- + * acteristics related to signature fields (see Table 8.48, below, and "Signature + * Fields" on page 547). Default value: 0. +**/ + bool has_SigFlags() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SigFlags", "", NULL)); + } + + long SigFlags() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SigFlags", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required if any fields in the document have additional-actions dictionaries + * containing a C entry; PDF 1.3) An array of indirect references to field dic- + * tionaries with calculation actions, defining the calculation order in which + * their values will be recalculated when the value of any field changes (see + * Section 8.5.2, "Trigger Events"). +**/ + bool has_CO() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", NULL)); + } + + SkPdfArray* CO() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A document-wide default value for the DR attribute of variable + * text fields (see "Variable Text" on page 533). +**/ + bool has_DR() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DR", "", NULL)); + } + + SkPdfDictionary* DR() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A document-wide default value for the DA attribute of variable + * text fields (see "Variable Text" on page 533). +**/ + bool has_DA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", NULL)); + } + + std::string DA() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A document-wide default value for the Q attribute of variable + * text fields (see "Variable Text" on page 533). +**/ + bool has_Q() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", NULL)); + } + + long Q() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfInteractiveFormDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfJavascriptActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfJavascriptActionDictionary_autogen.h new file mode 100644 index 0000000000..fdac07068e --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfJavascriptActionDictionary_autogen.h @@ -0,0 +1,579 @@ +#ifndef __DEFINED__SkPdfJavascriptActionDictionary +#define __DEFINED__SkPdfJavascriptActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a JavaScript action +class SkPdfJavascriptActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kJavascriptActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kJavascriptActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return this;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfJavascriptActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfJavascriptActionDictionary(const SkPdfJavascriptActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfJavascriptActionDictionary& operator=(const SkPdfJavascriptActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be JavaScript + * for a JavaScript action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A string or stream containing the JavaScript script to be executed. + * Note: PDFDocEncoding or Unicode encoding (the latter identified by the Unicode + * prefix U+ FEFF) is used to encode the contents of the string or stream. (See imple- + * mentation note 89 in Appendix H.) +**/ + bool has_JS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", NULL)); + } + + bool isJSAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getJSAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isJSAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getJSAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfJavascriptActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfJavascriptDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfJavascriptDictionary_autogen.h new file mode 100644 index 0000000000..4a1ee00aef --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfJavascriptDictionary_autogen.h @@ -0,0 +1,617 @@ +#ifndef __DEFINED__SkPdfJavascriptDictionary +#define __DEFINED__SkPdfJavascriptDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the JavaScript dictionary +class SkPdfJavascriptDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kJavascriptDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kJavascriptDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return this;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfJavascriptDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfJavascriptDictionary(const SkPdfJavascriptDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfJavascriptDictionary& operator=(const SkPdfJavascriptDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A string or stream containing a JavaScript script to be executed + * just before the FDF file is imported. +**/ + bool has_Before() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", NULL)); + } + + bool isBeforeAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getBeforeAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isBeforeAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getBeforeAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A string or stream containing a JavaScript script to be executed + * just after the FDF file is imported. +**/ + bool has_After() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", NULL)); + } + + bool isAfterAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getAfterAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isAfterAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getAfterAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array defining additional JavaScript scripts to be added to + * those defined in the JavaScript entry of the document's name dictionary (see + * Section 3.6.3, "Name Dictionary"). The array contains an even number of + * elements, organized in pairs. The first element of each pair is a name and the + * second is a string or stream defining the script corresponding to that name. + * Each of the defined scripts will be added to those already defined in the name + * dictionary and then executed before the script defined in the Before entry is + * executed. As described in "JavaScript Actions" on page 556, these scripts are + * used to define JavaScript functions for use by other scripts in the document. +**/ + bool has_Doc() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Doc", "", NULL)); + } + + SkPdfArray* Doc() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Doc", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfJavascriptDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfJbig2DecodeFilterDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfJbig2DecodeFilterDictionary_autogen.h new file mode 100644 index 0000000000..2f457fb8e9 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfJbig2DecodeFilterDictionary_autogen.h @@ -0,0 +1,545 @@ +#ifndef __DEFINED__SkPdfJbig2DecodeFilterDictionary +#define __DEFINED__SkPdfJbig2DecodeFilterDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Optional parameter for the JBIG2Decode filter +class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kJbig2DecodeFilterDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kJbig2DecodeFilterDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return this;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfJbig2DecodeFilterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfJbig2DecodeFilterDictionary(const SkPdfJbig2DecodeFilterDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** ()A stream containing the JBIG2 global (page 0) segments. Global segments + * must be placed in this stream even if only a single JBIG2 image XObject refers + * to it. +**/ + bool has_JBIG2Globals() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Globals", "", NULL)); + } + + SkPdfStream* JBIG2Globals() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Globals", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfLabColorSpaceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfLabColorSpaceDictionary_autogen.h new file mode 100644 index 0000000000..52fb023819 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfLabColorSpaceDictionary_autogen.h @@ -0,0 +1,581 @@ +#ifndef __DEFINED__SkPdfLabColorSpaceDictionary +#define __DEFINED__SkPdfLabColorSpaceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a Lab color space dictionary +class SkPdfLabColorSpaceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kLabColorSpaceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLabColorSpaceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return this;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfLabColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfLabColorSpaceDictionary(const SkPdfLabColorSpaceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfLabColorSpaceDictionary& operator=(const SkPdfLabColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus value, + * in the CIE 1931 XYZ space, of the diffuse white point; see "CalRGB Color Spaces" on + * page 184 for further discussion. The numbers XW and ZW must be positive, and YW + * must be equal to 1.0. +**/ + bool has_WhitePoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", NULL)); + } + + SkPdfArray* WhitePoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus value, in + * the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces" on + * page 184 for further discussion. All three of these numbers must be nonnegative. + * Default value: [0.0 0.0 0.0]. +**/ + bool has_BlackPoint() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", NULL)); + } + + SkPdfArray* BlackPoint() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of four numbers [ amin amax bmin bmax ] specifying the range of + * valid values for the a* and b* (B and C) components of the color space-that is, + * a min <= a* <= a max + * and + * b min <= b* <= b max + * Component values falling outside the specified range will be adjusted to the nearest + * valid value without error indication. Default value: [ -100 100 -100 100]. +**/ + bool has_Range() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", NULL)); + } + + SkPdfArray* Range() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfLabColorSpaceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfLaunchActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfLaunchActionDictionary_autogen.h new file mode 100644 index 0000000000..5fbb763aa4 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfLaunchActionDictionary_autogen.h @@ -0,0 +1,618 @@ +#ifndef __DEFINED__SkPdfLaunchActionDictionary +#define __DEFINED__SkPdfLaunchActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a launch action +class SkPdfLaunchActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kLaunchActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLaunchActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return this;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfLaunchActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfLaunchActionDictionary(const SkPdfLaunchActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfLaunchActionDictionary& operator=(const SkPdfLaunchActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Launch + * for a launch action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if none of the entries Win, Mac, or Unix is present) The application to + * be launched or the document to be opened or printed. If this entry is absent + * and the viewer application does not understand any of the alternative entries, + * it should do nothing. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Optional) A dictionary containing Windows-specific launch parameters (see + * the Table 8.38; see also implementation note 73 in Appendix H). +**/ + bool has_Win() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Win", "", NULL)); + } + + SkPdfDictionary* Win() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Win", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) Mac OS'specific launch parameters; not yet defined. +**/ + bool has_Mac() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", NULL)); + } + + SkPdfObject* Mac() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) UNIX-specific launch parameters; not yet defined. +**/ + bool has_Unix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Unix", "", NULL)); + } + + SkPdfObject* Unix() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Unix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A flag specifying whether to open the destination docu- + * ment in a new window. If this flag is false, the destination document will + * replace the current document in the same window. If this entry is absent, the + * viewer application should behave in accordance with the current user prefer- + * ence. This entry is ignored if the file designated by the F entry is not a PDF + * document. +**/ + bool has_NewWindow() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NewWindow", "", NULL)); + } + + bool NewWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NewWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfLaunchActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfLineAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfLineAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..29f5758604 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfLineAnnotationDictionary_autogen.h @@ -0,0 +1,621 @@ +#ifndef __DEFINED__SkPdfLineAnnotationDictionary +#define __DEFINED__SkPdfLineAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a line annotation +class SkPdfLineAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kLineAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLineAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return this;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfLineAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfLineAnnotationDictionary(const SkPdfLineAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfLineAnnotationDictionary& operator=(const SkPdfLineAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Line + * for a line annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annotation + * is opened. Carriage returns may be used to separate the text into paragraphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of four numbers, [x1 y1 x2 y2 ], specifying the starting and + * ending coordinates of the line in default user space. +**/ + bool has_L() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "", NULL)); + } + + SkPdfArray* L() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A border style dictionary (see Table 8.12 on page 495) specifying the + * width and dash pattern to be used in drawing the line. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the L + * and BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams." +**/ + bool has_BS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", NULL)); + } + + SkPdfDictionary* BS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An array of two names specifying the line ending styles to be + * used in drawing the line. The first and second elements of the array specify the + * line ending styles for the endpoints defined, respectively, by the first and second + * pairs of coordinates, (x1 , y1 ) and (x2 , y2 ), in the L array. Table 8.19 shows the + * possible values. Default value: [/None /None]. +**/ + bool has_LE() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LE", "", NULL)); + } + + SkPdfArray* LE() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LE", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0 specifying + * the components, in the DeviceRGB color space, of the interior color with which to + * fill the annotation's line endings (see Table 8.19). If this entry is absent, the inte- + * riors of the line endings are left transparent. +**/ + bool has_IC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IC", "", NULL)); + } + + SkPdfArray* IC() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfLineAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfListAttributeDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfListAttributeDictionary_autogen.h new file mode 100644 index 0000000000..8b8bbe3628 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfListAttributeDictionary_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfListAttributeDictionary +#define __DEFINED__SkPdfListAttributeDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Standard list attribute +class SkPdfListAttributeDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kListAttributeDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kListAttributeDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return this;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfListAttributeDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfListAttributeDictionary(const SkPdfListAttributeDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfListAttributeDictionary& operator=(const SkPdfListAttributeDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The numbering system used to generate the content of the Lbl (Label) + * elements in an autonumbered list, or the symbol used to identify each item in an + * unnumbered list: + * None No autonumbering; Lbl elements (if present) contain arbi- + * trary text not subject to any numbering scheme + * Disc Solid circular bullet + * Circle Open circular bullet + * Square Solid square bullet + * Decimal Decimal arabic numerals (1'9, 10'99, ...) + * UpperRoman Uppercase roman numerals (I, II, III, IV, ...) + * LowerRoman Lowercase roman numerals (i, ii, iii, iv, ...) + * UpperAlpha Uppercase letters (A, B, C, ...) + * LowerAlpha Lowercase letters (a, b, c, ...) + * Default value: None. + * Note: The alphabet used for UpperAlpha and LowerAlpha is determined by the pre- + * vailing Lang entry (see Section 9.8.1, "Natural Language Specification"). + * Note: The set of possible values may be expanded as Unicode identifies additional + * numbering systems. +**/ + bool has_ListNumbering() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ListNumbering", "", NULL)); + } + + std::string ListNumbering() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ListNumbering", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfListAttributeDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h new file mode 100644 index 0000000000..eb43ba257f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h @@ -0,0 +1,609 @@ +#ifndef __DEFINED__SkPdfLzwdecodeAndFlatedecodeFiltersDictionary +#define __DEFINED__SkPdfLzwdecodeAndFlatedecodeFiltersDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Optional parameters for LZWDecode and FlateDecode filters +class SkPdfLzwdecodeAndFlatedecodeFiltersDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kLzwdecodeAndFlatedecodeFiltersDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLzwdecodeAndFlatedecodeFiltersDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return this;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfLzwdecodeAndFlatedecodeFiltersDictionary(const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfLzwdecodeAndFlatedecodeFiltersDictionary& operator=(const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** ()A code that selects the predictor algorithm, if any. If the value of this entry + * is 1, the filter assumes that the normal algorithm was used to encode the data, + * without prediction. If the value is greater than 1, the filter assumes that the + * data was differenced before being encoded, and Predictor selects the predic- + * tor algorithm. For more information regarding Predictor values greater + * than 1, see "LZW and Flate Predictor Functions," below. Default value: 1. +**/ + bool has_Predictor() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Predictor", "", NULL)); + } + + long Predictor() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Predictor", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Used only if Predictor is greater than 1) The number of interleaved color com- + * ponents per sample. Valid values are 1 to 4 in PDF 1.2 or earlier, and 1 or + * greater in PDF 1.3 or later. Default value: 1. +**/ + bool has_Colors() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colors", "", NULL)); + } + + long Colors() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colors", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Used only if Predictor is greater than 1) The number of bits used to represent + * each color component in a sample. Valid values are 1, 2, 4, and 8. Default + * value: 8. +**/ + bool has_BitsPerComponent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); + } + + long BitsPerComponent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Used only if Predictor is greater than 1) The number of samples in each row. + * Default value: 1. +**/ + bool has_Columns() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Columns", "", NULL)); + } + + long Columns() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Columns", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (LZWDecode only) An indication of when to increase the code length. If the + * value of this entry is 0, code length increases are postponed as long as pos- + * sible. If it is 1, they occur one code early. This parameter is included because + * LZW sample code distributed by some vendors increases the code length one + * code earlier than necessary. Default value: 1. +**/ + bool has_EarlyChange() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EarlyChange", "", NULL)); + } + + long EarlyChange() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EarlyChange", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfLzwdecodeAndFlatedecodeFiltersDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMacOsFileInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMacOsFileInformationDictionary_autogen.h new file mode 100644 index 0000000000..5e070c8641 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMacOsFileInformationDictionary_autogen.h @@ -0,0 +1,569 @@ +#ifndef __DEFINED__SkPdfMacOsFileInformationDictionary +#define __DEFINED__SkPdfMacOsFileInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a Mac OS file information dictionary +class SkPdfMacOsFileInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMacOsFileInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMacOsFileInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return this;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMacOsFileInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMacOsFileInformationDictionary(const SkPdfMacOsFileInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMacOsFileInformationDictionary& operator=(const SkPdfMacOsFileInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The embedded file's file type. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The embedded file's creator signature. +**/ + bool has_Creator() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", NULL)); + } + + std::string Creator() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The binary contents of the embedded file's resource fork. +**/ + bool has_ResFork() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", NULL)); + } + + SkPdfStream* ResFork() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfMacOsFileInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMarkInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMarkInformationDictionary_autogen.h new file mode 100644 index 0000000000..c88d4913cd --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMarkInformationDictionary_autogen.h @@ -0,0 +1,544 @@ +#ifndef __DEFINED__SkPdfMarkInformationDictionary +#define __DEFINED__SkPdfMarkInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry in the mark information dictionary +class SkPdfMarkInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMarkInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return this;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMarkInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMarkInformationDictionary(const SkPdfMarkInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMarkInformationDictionary& operator=(const SkPdfMarkInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A flag indicating whether the document conforms to Tagged PDF + * conventions. Default value: false. +**/ + bool has_Marked() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marked", "", NULL)); + } + + bool Marked() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marked", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfMarkInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMarkedContentReferenceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMarkedContentReferenceDictionary_autogen.h new file mode 100644 index 0000000000..bf0f64fd82 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMarkedContentReferenceDictionary_autogen.h @@ -0,0 +1,607 @@ +#ifndef __DEFINED__SkPdfMarkedContentReferenceDictionary +#define __DEFINED__SkPdfMarkedContentReferenceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a marked-content reference dictionary +class SkPdfMarkedContentReferenceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMarkedContentReferenceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkedContentReferenceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return this;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMarkedContentReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMarkedContentReferenceDictionary(const SkPdfMarkedContentReferenceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMarkedContentReferenceDictionary& operator=(const SkPdfMarkedContentReferenceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be MCR + * for a marked-content reference. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; must be an indirect reference) The page object representing the page on + * which the graphics objects in the marked-content sequence are rendered. This + * entry overrides any Pg entry in the structure element containing the marked- + * content reference; it is required if the structure element has no such entry. +**/ + bool has_Pg() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", NULL)); + } + + SkPdfDictionary* Pg() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; must be an indirect reference) The content stream containing the + * marked-content sequence. This entry is needed only if the marked-content + * sequence resides in some other content stream associated with the page-for + * example, in a form XObject (see Section 4.9, "Form XObjects") or an annota- + * tion's appearance stream (Section 8.4.4, "Appearance Streams"). Default value: + * the content stream of the page identified by Pg. +**/ + bool has_Stm() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", NULL)); + } + + SkPdfStream* Stm() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; must be an indirect reference) The PDF object owning the stream + * identified by Stm-for example, the annotation to which an appearance stream + * belongs. +**/ + bool has_StmOwn() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StmOwn", "", NULL)); + } + + SkPdfObject* StmOwn() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StmOwn", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The marked-content identifier of the marked-content sequence with- + * in its content stream. +**/ + bool has_MCID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MCID", "", NULL)); + } + + long MCID() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MCID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfMarkedContentReferenceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMarkupAnnotationsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMarkupAnnotationsDictionary_autogen.h new file mode 100644 index 0000000000..dc754b2c7d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMarkupAnnotationsDictionary_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfMarkupAnnotationsDictionary +#define __DEFINED__SkPdfMarkupAnnotationsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to markup annotations +class SkPdfMarkupAnnotationsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMarkupAnnotationsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkupAnnotationsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return this;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMarkupAnnotationsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMarkupAnnotationsDictionary(const SkPdfMarkupAnnotationsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMarkupAnnotationsDictionary& operator=(const SkPdfMarkupAnnotationsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be + * Highlight, Underline, Squiggly, or StrikeOut for a highlight, underline, + * squiggly-underline, or strikeout annotation, respectively. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annota- + * tion is opened. Carriage returns may be used to separate the text into para- + * graphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of 8 x n numbers specifying the coordinates of n quadri- + * laterals in default user space. Each quadrilateral encompasses a word or + * group of contiguous words in the text underlying the annotation. The coor- + * dinates for each quadrilateral are given in the order + * x1 y1 x2 y2 x3 y3 x4 y4 + * specifying the quadrilateral's four vertices in counterclockwise order (see + * Figure 8.5). The text is oriented with respect to the edge connecting points + * (x1 , y1) and (x2 , y2). (See implementation note 67 in Appendix H.) + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * QuadPoints entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance + * Streams." + * (x3 , y3 ) + * ter + * (x2 , y2 ) + * pi + * (x4 , y4 ) + * Ju + * (x1 , y1 ) + * FIGURE 8.5 QuadPoints specification +**/ + bool has_QuadPoints() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "QuadPoints", "", NULL)); + } + + SkPdfArray* QuadPoints() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "QuadPoints", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfMarkupAnnotationsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMetadataStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMetadataStreamDictionary_autogen.h new file mode 100644 index 0000000000..0c8798f23a --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMetadataStreamDictionary_autogen.h @@ -0,0 +1,558 @@ +#ifndef __DEFINED__SkPdfMetadataStreamDictionary +#define __DEFINED__SkPdfMetadataStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries in a metadata stream dictionary +class SkPdfMetadataStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMetadataStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMetadataStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return this;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMetadataStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMetadataStreamDictionary(const SkPdfMetadataStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMetadataStreamDictionary& operator=(const SkPdfMetadataStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be Metadata + * for a metadata stream. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of metadata stream that this dictionary describes; must be + * XML. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfMetadataStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMovieActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMovieActionDictionary_autogen.h new file mode 100644 index 0000000000..2b2e193495 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMovieActionDictionary_autogen.h @@ -0,0 +1,595 @@ +#ifndef __DEFINED__SkPdfMovieActionDictionary +#define __DEFINED__SkPdfMovieActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a movie action +class SkPdfMovieActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMovieActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMovieActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return this;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMovieActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMovieActionDictionary(const SkPdfMovieActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMovieActionDictionary& operator=(const SkPdfMovieActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Movie + * for a movie action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An indirect reference to a movie annotation identifying the movie + * to be played. +**/ + bool has_Annot() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot", "", NULL)); + } + + SkPdfDictionary* Annot() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The title of a movie annotation identifying the movie to be + * played. + * Note: The dictionary must include either an Annot or a T entry, but not both. +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The operation to be performed on the movie: + * Play Start playing the movie, using the play mode specified by the + * dictionary's Mode entry (see Table 8.79 on page 571). If the + * movie is currently paused, it is repositioned to the beginning + * before playing (or to the starting point specified by the dic- + * tionary's Start entry, if present). + * Stop Stop playing the movie. + * Pause Pause a playing movie. + * Resume Resume a paused movie. + * Default value: Play. +**/ + bool has_Operation() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Operation", "", NULL)); + } + + std::string Operation() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Operation", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfMovieActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMovieActivationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMovieActivationDictionary_autogen.h new file mode 100644 index 0000000000..88fe52be3b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMovieActivationDictionary_autogen.h @@ -0,0 +1,689 @@ +#ifndef __DEFINED__SkPdfMovieActivationDictionary +#define __DEFINED__SkPdfMovieActivationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a movie activation dictionary +class SkPdfMovieActivationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMovieActivationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMovieActivationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return this;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMovieActivationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMovieActivationDictionary(const SkPdfMovieActivationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMovieActivationDictionary& operator=(const SkPdfMovieActivationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The starting time of the movie segment to be played. Movie time + * values are expressed in units of time based on a time scale, which defines the + * number of units per second; the default time scale is defined in the movie + * data itself. The starting time is nominally a 64-bit integer, specified as follows: + * * If it is representable as an integer (subject to the implementation limit for + * integers, as described in Appendix C), it should be specified as such. + * * If it is not representable as an integer, it should be specified as an 8-byte + * string representing a 64-bit twos-complement integer, most significant + * byte first. + * * If it is expressed in a time scale different from that of the movie itself, it is + * represented as an array of two values: an integer or string denoting the + * starting time, as above, followed by an integer specifying the time scale in + * units per second. + * If this entry is omitted, the movie is played from the beginning. +**/ + bool has_Start() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Start", "", NULL)); + } + + SkPdfObject* Start() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Start", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The duration of the movie segment to be played, specified in the + * same form as Start. Negative values specify that the movie is to be played + * backward. If this entry is omitted, the movie is played to the end. +**/ + bool has_Duration() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Duration", "", NULL)); + } + + SkPdfObject* Duration() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Duration", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The initial speed at which to play the movie. If the value of this + * entry is negative, the movie is played backward with respect to Start and + * Duration. Default value: 1.0. +**/ + bool has_Rate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rate", "", NULL)); + } + + double Rate() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The initial sound volume at which to play the movie, in the range + * -1.0 to 1.0. Higher values denote greater volume; negative values mute the + * sound. Default value: 1.0. +**/ + bool has_Volume() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", NULL)); + } + + double Volume() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A flag specifying whether to display a movie controller bar while + * playing the movie. Default value: false. +**/ + bool has_ShowControls() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ShowControls", "", NULL)); + } + + bool ShowControls() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ShowControls", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) The play mode for playing the movie: + * Once Play once and stop. + * Open Play and leave the movie controller bar open. + * Repeat Play repeatedly from beginning to end until stopped. + * Palindrome Play continuously forward and backward until stopped. + * Default value: Once. +**/ + bool has_Mode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mode", "", NULL)); + } + + std::string Mode() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag specifying whether to play the movie synchronously or + * asynchronously. If this value is true, the movie player will retain control until + * the movie is completed or dismissed by the user; if false, it will return control + * to the viewer application immediately after starting the movie. Default value: + * false. +**/ + bool has_Synchronous() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", NULL)); + } + + bool Synchronous() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) The magnification (zoom) factor at which to play the movie. The + * presence of this entry implies that the movie is to be played in a floating win- + * dow; if the entry is absent, it will be played in the annotation rectangle. + * The value of the entry is an array of two integers, [numerator denominator], + * denoting a rational magnification factor for the movie. The final window + * size, in pixels, is + * (numerator / denominator) x Aspect + * where the value of Aspect is taken from the movie dictionary (see Table 8.79). +**/ + bool has_FWScale() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FWScale", "", NULL)); + } + + SkPdfArray* FWScale() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FWScale", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) For floating play windows, the relative position of the window on + * the screen. The value is an array of two numbers + * [horiz vert] + * each in the range 0.0 to 1.0, denoting the relative horizontal and vertical posi- + * tion of the movie window with respect to the screen. For example, the value + * [0.5 0.5] centers the window on the screen. Default value: [0.5 0.5]. + * CHAPTER 9 +**/ + bool has_FWPosition() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FWPosition", "", NULL)); + } + + SkPdfArray* FWPosition() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FWPosition", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfMovieActivationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMovieAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMovieAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..db13412715 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMovieAnnotationDictionary_autogen.h @@ -0,0 +1,611 @@ +#ifndef __DEFINED__SkPdfMovieAnnotationDictionary +#define __DEFINED__SkPdfMovieAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a movie annotation +class SkPdfMovieAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMovieAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMovieAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return this;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMovieAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMovieAnnotationDictionary(const SkPdfMovieAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMovieAnnotationDictionary& operator=(const SkPdfMovieAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Movie + * for a movie annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A movie dictionary describing the movie's static characteristics (see + * Section 8.8, "Movies"). +**/ + bool has_Movie() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Movie", "", NULL)); + } + + SkPdfDictionary* Movie() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Movie", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An alternate representation of the annotation's contents in + * human-readable form, useful when extracting the document's contents in sup- + * port of accessibility to disabled users or for other purposes (see Section 9.8.2, + * "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag or dictionary specifying whether and how to play the movie + * when the annotation is activated. If this value is a dictionary, it is a movie activa- + * tion dictionary (see Section 8.8, "Movies") specifying how to play the movie; if it + * is the boolean value true, the movie should be played using default activation + * parameters; if it is false, the movie should not be played at all. Default value: + * true. +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + bool isAABoolean() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Bool; + } + + bool getAAsBoolean() const { + bool ret = false; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + + bool isAADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getAAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfMovieAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMovieDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMovieDictionary_autogen.h new file mode 100644 index 0000000000..9173414070 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMovieDictionary_autogen.h @@ -0,0 +1,610 @@ +#ifndef __DEFINED__SkPdfMovieDictionary +#define __DEFINED__SkPdfMovieDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a movie dictionary +class SkPdfMovieDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kMovieDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMovieDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMovieDictionary* asMovieDictionary() {return this;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMovieDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfMovieDictionary(const SkPdfMovieDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMovieDictionary& operator=(const SkPdfMovieDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) A file specification identifying a self-describing movie file. + * Note: The format of a "self-describing movie file" is left unspecified, and there is + * no guarantee of portability. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Optional) The width and height of the movie's bounding box, in pixels, + * specified as [width height]. This entry should be omitted for a movie consist- + * ing entirely of sound with no visible images. +**/ + bool has_Aspect() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Aspect", "", NULL)); + } + + SkPdfArray* Aspect() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Aspect", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The number of degrees by which the movie is rotated clockwise + * relative to the page. The value must be a multiple of 90. Default value: 0. +**/ + bool has_Rotate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rotate", "", NULL)); + } + + long Rotate() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rotate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A flag or stream specifying whether and how to display a poster + * image representing the movie. If this value is a stream, it contains an image + * XObject (see Section 4.8, "Images") to be displayed as the poster; if it is the + * boolean value true, the poster image should be retrieved from the movie file + * itself; if it is false, no poster should be displayed. Default value: false. +**/ + bool has_Poster() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", NULL)); + } + + bool isPosterABoolean() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Bool; + } + + bool getPosterAsBoolean() const { + bool ret = false; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + + bool isPosterAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getPosterAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Poster", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfMovieDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfMultiMasterFontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfMultiMasterFontDictionary_autogen.h new file mode 100644 index 0000000000..766cf06c46 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfMultiMasterFontDictionary_autogen.h @@ -0,0 +1,48 @@ +#ifndef __DEFINED__SkPdfMultiMasterFontDictionary +#define __DEFINED__SkPdfMultiMasterFontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfType1FontDictionary_autogen.h" + +class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { +public: + virtual SkPdfObjectType getType() const { return kMultiMasterFontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMultiMasterFontDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return this;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return this;} + +private: + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfMultiMasterFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} + + SkPdfMultiMasterFontDictionary(const SkPdfMultiMasterFontDictionary& from) : SkPdfType1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfMultiMasterFontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfNameDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfNameDictionary_autogen.h new file mode 100644 index 0000000000..2e1e8249e0 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNameDictionary_autogen.h @@ -0,0 +1,794 @@ +#ifndef __DEFINED__SkPdfNameDictionary +#define __DEFINED__SkPdfNameDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the name dictionary +class SkPdfNameDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kNameDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNameDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfNameDictionary* asNameDictionary() {return this;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfNameDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfNameDictionary(const SkPdfNameDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNameDictionary& operator=(const SkPdfNameDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.2) A name tree mapping name strings to destinations (see + * "Named Destinations" on page 476). +**/ + bool has_Dests() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", NULL)); + } + + bool isDestsAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDestsAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDestsATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getDestsAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping name strings to annotation + * appearance streams (see Section 8.4.4, "Appearance Streams"). +**/ + bool has_AP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", NULL)); + } + + bool isAPAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getAPAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isAPATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getAPAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping name strings to document-level + * JavaScript(R) actions (see "JavaScript Actions" on page 556). +**/ + bool has_JavaScript() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", NULL)); + } + + bool isJavaScriptAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getJavaScriptAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isJavaScriptATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getJavaScriptAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping name strings to visible pages for + * use in interactive forms (see Section 8.6.5, "Named Pages"). +**/ + bool has_Pages() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", NULL)); + } + + bool isPagesAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getPagesAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isPagesATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getPagesAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping name strings to invisible (tem- + * plate) pages for use in interactive forms (see Section 8.6.5, "Named Pages"). +**/ + bool has_Templates() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", NULL)); + } + + bool isTemplatesAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTemplatesAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isTemplatesATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getTemplatesAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping digital identifiers to Web Capture + * content sets (see Section 9.9.3, "Content Sets"). +**/ + bool has_IDS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", NULL)); + } + + bool isIDSAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getIDSAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isIDSATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getIDSAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A name tree mapping uniform resource locators (URLs) + * to Web Capture content sets (see Section 9.9.3, "Content Sets"). +**/ + bool has_URLS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", NULL)); + } + + bool isURLSAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getURLSAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isURLSATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getURLSAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A name tree mapping name strings to embedded file + * streams (see Section 3.10.3, "Embedded File Streams"). +**/ + bool has_EmbeddedFiles() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles", "", NULL)); + } + + bool isEmbeddedFilesAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getEmbeddedFilesAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isEmbeddedFilesATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getEmbeddedFilesAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfNameDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfNameTreeNodeDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfNameTreeNodeDictionary_autogen.h new file mode 100644 index 0000000000..6a9afd4719 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNameTreeNodeDictionary_autogen.h @@ -0,0 +1,577 @@ +#ifndef __DEFINED__SkPdfNameTreeNodeDictionary +#define __DEFINED__SkPdfNameTreeNodeDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a name tree node dictionary +class SkPdfNameTreeNodeDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kNameTreeNodeDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNameTreeNodeDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return this;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfNameTreeNodeDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfNameTreeNodeDictionary(const SkPdfNameTreeNodeDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNameTreeNodeDictionary& operator=(const SkPdfNameTreeNodeDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Root and intermediate nodes only; required in intermediate nodes; present in the root node + * if and only if Names is not present) An array of indirect references to the immediate chil- + * dren of this node. The children may be intermediate or leaf nodes. +**/ + bool has_Kids() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); + } + + SkPdfArray* Kids() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Root and leaf nodes only; required in leaf nodes; present in the root node if and only if Kids + * is not present) An array of the form + * [key1 value1 key2 value2 ... keyn valuen ] + * where each keyi is a string and the corresponding valuei is an indirect reference to the + * object associated with that key. The keys are sorted in lexical order, as described below. +**/ + bool has_Names() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names", "", NULL)); + } + + SkPdfArray* Names() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Names", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Intermediate and leaf nodes only; required) An array of two strings, specifying the (lexi- + * cally) least and greatest keys included in the Names array of a leaf node or in the Names + * arrays of any leaf nodes that are descendants of an intermediate node. +**/ + bool has_Limits() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Limits", "", NULL)); + } + + SkPdfArray* Limits() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Limits", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfNameTreeNodeDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfName_autogen.h b/experimental/PdfViewer/autogen/SkPdfName_autogen.h new file mode 100644 index 0000000000..e3be4a0fba --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfName_autogen.h @@ -0,0 +1,563 @@ +#ifndef __DEFINED__SkPdfName +#define __DEFINED__SkPdfName + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfName : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kName_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kName_SkPdfObjectType + 1);} +public: + virtual SkPdfName* asName() {return this;} + virtual const SkPdfName* asName() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: + const std::string& value() const {return fPodofoObj->GetName().GetName();} +private: +public: + SkPdfName(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfName(const SkPdfName& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfName& operator=(const SkPdfName& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfName diff --git a/experimental/PdfViewer/autogen/SkPdfNamedActionsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfNamedActionsDictionary_autogen.h new file mode 100644 index 0000000000..8545683674 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNamedActionsDictionary_autogen.h @@ -0,0 +1,557 @@ +#ifndef __DEFINED__SkPdfNamedActionsDictionary +#define __DEFINED__SkPdfNamedActionsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to named actions +class SkPdfNamedActionsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kNamedActionsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNamedActionsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return this;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfNamedActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfNamedActionsDictionary(const SkPdfNamedActionsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNamedActionsDictionary& operator=(const SkPdfNamedActionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Named for a named + * action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The name of the action to be performed (see Table 8.45). +**/ + bool has_N() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL)); + } + + std::string N() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfNamedActionsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfNull_autogen.h b/experimental/PdfViewer/autogen/SkPdfNull_autogen.h new file mode 100644 index 0000000000..9b54eeeaf8 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNull_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfNull +#define __DEFINED__SkPdfNull + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfNull : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kNull_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNull_SkPdfObjectType + 1);} +public: + virtual SkPdfNull* asNull() {return this;} + virtual const SkPdfNull* asNull() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: +private: +public: + SkPdfNull(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfNull(const SkPdfNull& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNull& operator=(const SkPdfNull& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfNull diff --git a/experimental/PdfViewer/autogen/SkPdfNumberTreeNodeDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfNumberTreeNodeDictionary_autogen.h new file mode 100644 index 0000000000..3cce6afe82 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNumberTreeNodeDictionary_autogen.h @@ -0,0 +1,578 @@ +#ifndef __DEFINED__SkPdfNumberTreeNodeDictionary +#define __DEFINED__SkPdfNumberTreeNodeDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a number tree node dictionary +class SkPdfNumberTreeNodeDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kNumberTreeNodeDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNumberTreeNodeDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return this;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfNumberTreeNodeDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfNumberTreeNodeDictionary(const SkPdfNumberTreeNodeDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNumberTreeNodeDictionary& operator=(const SkPdfNumberTreeNodeDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Root and intermediate nodes only; required in intermediate nodes; present in the root node + * if and only if Nums is not present) An array of indirect references to the immediate chil- + * dren of this node. The children may be intermediate or leaf nodes. +**/ + bool has_Kids() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); + } + + SkPdfArray* Kids() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Root and leaf nodes only; required in leaf nodes; present in the root node if and only if Kids + * is not present) An array of the form + * [key1 value1 key2 value2 ... keyn valuen ] + * where each keyi is an integer and the corresponding valuei is an indirect reference to the + * object associated with that key. The keys are sorted in numerical order, analogously to + * the arrangement of keys in a name tree as described in Section 3.8.4, "Name Trees." +**/ + bool has_Nums() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Nums", "", NULL)); + } + + SkPdfArray* Nums() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Nums", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Intermediate and leaf nodes only; required) An array of two integers, specifying the + * (numerically) least and greatest keys included in the Nums array of a leaf node or in the + * Nums arrays of any leaf nodes that are descendants of an intermediate node. +**/ + bool has_Limits() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Limits", "", NULL)); + } + + SkPdfArray* Limits() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Limits", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfNumberTreeNodeDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfNumber_autogen.h b/experimental/PdfViewer/autogen/SkPdfNumber_autogen.h new file mode 100644 index 0000000000..a0c171d04d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfNumber_autogen.h @@ -0,0 +1,32 @@ +#ifndef __DEFINED__SkPdfNumber +#define __DEFINED__SkPdfNumber + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfInteger_autogen.h" + +class SkPdfNumber : public SkPdfInteger { +public: + virtual SkPdfObjectType getType() const { return kNumber_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNumber_SkPdfObjectType + 1);} +public: + virtual SkPdfNumber* asNumber() {return this;} + virtual const SkPdfNumber* asNumber() const {return this;} + +private: +public: + double value() const {return fPodofoObj->GetReal();} +private: +public: + SkPdfNumber(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfInteger(podofoDoc, podofoObj) {} + + SkPdfNumber(const SkPdfNumber& from) : SkPdfInteger(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfNumber& operator=(const SkPdfNumber& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfNumber diff --git a/experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.h new file mode 100644 index 0000000000..f6cff4927f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.h @@ -0,0 +1,573 @@ +#ifndef __DEFINED__SkPdfObjectReferenceDictionary +#define __DEFINED__SkPdfObjectReferenceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an object reference dictionary +class SkPdfObjectReferenceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kObjectReferenceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectReferenceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return this;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfObjectReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfObjectReferenceDictionary(const SkPdfObjectReferenceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfObjectReferenceDictionary& operator=(const SkPdfObjectReferenceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be OBJR for an + * object reference. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; must be an indirect reference) The page object representing the page on + * which the object is rendered. This entry overrides any Pg entry in the structure ele- + * ment containing the object reference; it is required if the structure element has no such + * entry. +**/ + bool has_Pg() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", NULL)); + } + + SkPdfDictionary* Pg() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) The referenced object. +**/ + bool has_Obj() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj", "", NULL)); + } + + SkPdfObject* Obj() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfObjectReferenceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfObject_autogen.h b/experimental/PdfViewer/autogen/SkPdfObject_autogen.h new file mode 100644 index 0000000000..83cd5caa48 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfObject_autogen.h @@ -0,0 +1,568 @@ +#ifndef __DEFINED__SkPdfObject +#define __DEFINED__SkPdfObject + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" + +class SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kObject_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kObject__End_SkPdfObjectType;} +public: + virtual SkPdfObject* asObject() {return this;} + virtual const SkPdfObject* asObject() const {return this;} + + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: +private: +protected: + const PdfMemDocument* fPodofoDoc; + const PdfObject* fPodofoObj; + +public: + SkPdfObject(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : fPodofoDoc(podofoDoc), fPodofoObj(podofoObj) {} + SkPdfObject(const SkPdfObject& from) : fPodofoDoc(from.fPodofoDoc), fPodofoObj(from.fPodofoObj) {} + + const PdfMemDocument* doc() const { return fPodofoDoc;} + const PdfObject* podofo() const { return fPodofoObj;} + virtual bool valid() const {return true;} + + SkPdfObject& operator=(const SkPdfObject& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfObject diff --git a/experimental/PdfViewer/autogen/SkPdfOpiVersionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfOpiVersionDictionary_autogen.h new file mode 100644 index 0000000000..7da516a668 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfOpiVersionDictionary_autogen.h @@ -0,0 +1,545 @@ +#ifndef __DEFINED__SkPdfOpiVersionDictionary +#define __DEFINED__SkPdfOpiVersionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry in an OPI version dictionary +class SkPdfOpiVersionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kOpiVersionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kOpiVersionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return this;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfOpiVersionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfOpiVersionDictionary(const SkPdfOpiVersionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this proxy + * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2.0, + * identifying the version of OPI to which the proxy corresponds. +**/ + bool has_version_number() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "version_number", "", NULL)); + } + + SkPdfDictionary* version_number() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "version_number", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfOpiVersionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfOutlineDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfOutlineDictionary_autogen.h new file mode 100644 index 0000000000..55a13c0e84 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfOutlineDictionary_autogen.h @@ -0,0 +1,587 @@ +#ifndef __DEFINED__SkPdfOutlineDictionary +#define __DEFINED__SkPdfOutlineDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the outline dictionary +class SkPdfOutlineDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kOutlineDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kOutlineDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return this;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfOutlineDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfOutlineDictionary(const SkPdfOutlineDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfOutlineDictionary& operator=(const SkPdfOutlineDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Outlines for an outline dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) An outline item dictionary represent- + * ing the first top-level item in the outline. +**/ + bool has_First() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "First", "", NULL)); + } + + SkPdfDictionary* First() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "First", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; must be an indirect reference) An outline item dictionary represent- + * ing the last top-level item in the outline. +**/ + bool has_Last() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Last", "", NULL)); + } + + SkPdfDictionary* Last() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Last", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the document has any open outline entries) The total number of + * open items at all levels of the outline. This entry should be omitted if there + * are no open outline items. +**/ + bool has_Count() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", NULL)); + } + + long Count() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfOutlineDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfOutlineItemDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfOutlineItemDictionary_autogen.h new file mode 100644 index 0000000000..eb74f64628 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfOutlineItemDictionary_autogen.h @@ -0,0 +1,738 @@ +#ifndef __DEFINED__SkPdfOutlineItemDictionary +#define __DEFINED__SkPdfOutlineItemDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in an outline item dictionary +class SkPdfOutlineItemDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kOutlineItemDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kOutlineItemDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return this;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfOutlineItemDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfOutlineItemDictionary(const SkPdfOutlineItemDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfOutlineItemDictionary& operator=(const SkPdfOutlineItemDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The text to be displayed on the screen for this item. +**/ + bool has_Title() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", NULL)); + } + + std::string Title() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) The parent of this item in the outline + * hierarchy. The parent of a top-level item is the outline dictionary itself. +**/ + bool has_Parent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); + } + + SkPdfDictionary* Parent() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required for all but the first item at each level; must be an indirect reference) + * The previous item at this outline level. +**/ + bool has_Prev() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", NULL)); + } + + SkPdfDictionary* Prev() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required for all but the last item at each level; must be an indirect reference) + * The next item at this outline level. +**/ + bool has_Next() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", NULL)); + } + + SkPdfDictionary* Next() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the item has any descendants; must be an indirect reference) The + * first of this item's immediate children in the outline hierarchy. +**/ + bool has_First() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "First", "", NULL)); + } + + SkPdfDictionary* First() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "First", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the item has any descendants; must be an indirect reference) The + * last of this item's immediate children in the outline hierarchy. +**/ + bool has_Last() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Last", "", NULL)); + } + + SkPdfDictionary* Last() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Last", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the item has any descendants) If the item is open, the total num- + * ber of its open descendants at all lower levels of the outline hierarchy. If the + * item is closed, a negative integer whose absolute value specifies how many + * descendants would appear if the item were reopened. +**/ + bool has_Count() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", NULL)); + } + + long Count() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; not permitted if an A entry is present) The destination to be + * displayed when this item is activated (see Section 8.2.1, "Destinations"; see + * also implementation note 56 in Appendix H). +**/ + bool has_Dest() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", NULL)); + } + + bool isDestAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDestAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDestAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDestAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDestAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getDestAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1; not permitted if a Dest entry is present) The action to be + * performed when this item is activated (see Section 8.5, "Actions"). +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + SkPdfDictionary* A() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3; must be an indirect reference) The structure element to + * which the item refers (see Section 9.6.1, "Structure Hierarchy"). + * Note: The ability to associate an outline item with a structure element (such as + * the beginning of a chapter) is a PDF 1.3 feature. For backward compatibility + * with earlier PDF versions, such an item should also specify a destination (Dest) + * corresponding to an area of a page where the contents of the designated structure + * element are displayed. +**/ + bool has_SE() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SE", "", NULL)); + } + + SkPdfDictionary* SE() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SE", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0, repre- + * senting the components in the DeviceRGB color space of the color to be used + * for the outline entry's text. Default value: [0.0 0.0 0.0]. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfArray* C() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A set of flags specifying style characteristics for display- + * ing the outline item's text (see Table 8.5). Default value: 0. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + long F() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfOutlineItemDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPDF_XOutputIntentDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPDF_XOutputIntentDictionary_autogen.h new file mode 100644 index 0000000000..8b21fcfb1b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPDF_XOutputIntentDictionary_autogen.h @@ -0,0 +1,655 @@ +#ifndef __DEFINED__SkPdfPDF_XOutputIntentDictionary +#define __DEFINED__SkPdfPDF_XOutputIntentDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a PDF/X output intent dictionary +class SkPdfPDF_XOutputIntentDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPDF_XOutputIntentDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPDF_XOutputIntentDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return this;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPDF_XOutputIntentDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPDF_XOutputIntentDictionary(const SkPdfPDF_XOutputIntentDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPDF_XOutputIntentDictionary& operator=(const SkPdfPDF_XOutputIntentDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; + * if present, must be OutputIntent for an output intent dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The output intent subtype; must be GTS_PDFX for a + * PDF/X output intent. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A text string concisely identifying the intended out- + * put device or production condition in human-readable form. + * This is the preferred method of defining such a string for pre- + * sentation to the user. +**/ + bool has_OutputCondition() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputCondition", "", NULL)); + } + + std::string OutputCondition() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputCondition", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A string identifying the intended output device or + * production condition in human- or machine-readable form. If + * human-readable, this string may be used in lieu of an Output- + * Condition string for presentation to the user. + * A typical value for this entry would be the name of a production + * condition maintained in an industry-standard registry such as + * the ICC Characterization Data Registry (see the Bibliography). If + * the designated condition matches that in effect at production + * time, it is the responsibility of the production software to pro- + * vide the corresponding ICC profile as defined in the registry. + * If the intended production condition is not a recognized + * standard, the value Custom is recommended for this entry; the + * DestOutputProfile entry defines the ICC profile and the Info + * entry is used for further human-readable identification. +**/ + bool has_OutputConditionIdentifier() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputConditionIdentifier", "", NULL)); + } + + std::string OutputConditionIdentifier() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OutputConditionIdentifier", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A string (conventionally a uniform resource identifi- + * er, or URI) identifying the registry in which the condition desig- + * nated by OutputConditionIdentifier is defined. +**/ + bool has_RegistryName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RegistryName", "", NULL)); + } + + std::string RegistryName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RegistryName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if OutputConditionIdentifier does not specify a standard + * production condition; optional otherwise) A human-readable text + * string containing additional information or comments about + * the intended target device or production condition. +**/ + bool has_Info() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", NULL)); + } + + std::string Info() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if OutputConditionIdentifier does not specify a standard + * production condition; optional otherwise) An ICC profile stream + * defining the transformation from the PDF document's source + * colors to output device colorants. + * The format of the profile stream is the same as that used in speci- + * fying an ICCBased color space (see "ICCBased Color Spaces" on + * page 189). The output transformation uses the profile's "from + * CIE" information (BToA in ICC terminology); the "to CIE" + * (AToB) information can optionally be used to remap source + * color values to some other destination color space, such as for + * screen preview or hardcopy proofing. (See implementation note + * 111 in Appendix H.) +**/ + bool has_DestOutputProfile() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DestOutputProfile", "", NULL)); + } + + SkPdfStream* DestOutputProfile() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DestOutputProfile", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfPDF_XOutputIntentDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.h new file mode 100644 index 0000000000..a136f452e7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.h @@ -0,0 +1,573 @@ +#ifndef __DEFINED__SkPdfPSXobjectDictionary +#define __DEFINED__SkPdfPSXobjectDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a PostScript XObject dictionary +class SkPdfPSXobjectDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPSXobjectDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPSXobjectDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return this;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPSXobjectDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPSXobjectDictionary(const SkPdfPSXobjectDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPSXobjectDictionary& operator=(const SkPdfPSXobjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * XObject for a PostScript XObject. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of XObject that this dictionary describes; must be PS for a + * PostScript XObject. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A stream whose contents are to be used in place of the PostScript + * XObject's stream when the target PostScript interpreter is known to support only + * LanguageLevel 1. +**/ + bool has_Level1() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", NULL)); + } + + SkPdfStream* Level1() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfPSXobjectDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPageLabelDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPageLabelDictionary_autogen.h new file mode 100644 index 0000000000..dceaf55a2e --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPageLabelDictionary_autogen.h @@ -0,0 +1,594 @@ +#ifndef __DEFINED__SkPdfPageLabelDictionary +#define __DEFINED__SkPdfPageLabelDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a page label dictionary +class SkPdfPageLabelDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPageLabelDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPageLabelDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return this;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPageLabelDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPageLabelDictionary(const SkPdfPageLabelDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPageLabelDictionary& operator=(const SkPdfPageLabelDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * PageLabel for a page label dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The numbering style to be used for the numeric portion of each page label: + * D Decimal arabic numerals + * R Uppercase roman numerals + * r Lowercase roman numerals + * A Uppercase letters (A to Z for the first 26 pages, AA to ZZ for the next 26, and so on) + * a Lowercase letters (a to z for the first 26 pages, aa to zz for the next 26, and so on) + * There is no default numbering style; if no S entry is present, page labels will consist solely + * of a label prefix with no numeric portion. For example, if the P entry (below) specifies the + * label prefix Contents, each page will simply be labeled Contents with no page number. (If + * the P entry is also missing or empty, the page label will be an empty string.) +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The label prefix for page labels in this range. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + std::string P() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The value of the numeric portion for the first page label in the range. Sub- + * sequent pages will be numbered sequentially from this value, which must be greater than + * or equal to 1. Default value: 1. +**/ + bool has_St() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "St", "", NULL)); + } + + long St() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "St", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfPageLabelDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPageObjectActionsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPageObjectActionsDictionary_autogen.h new file mode 100644 index 0000000000..9a582ce2fd --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPageObjectActionsDictionary_autogen.h @@ -0,0 +1,563 @@ +#ifndef __DEFINED__SkPdfPageObjectActionsDictionary +#define __DEFINED__SkPdfPageObjectActionsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a page object's additional-actions dictionary +class SkPdfPageObjectActionsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPageObjectActionsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPageObjectActionsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return this;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPageObjectActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPageObjectActionsDictionary(const SkPdfPageObjectActionsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPageObjectActionsDictionary& operator=(const SkPdfPageObjectActionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.2) An action to be performed when the page is opened (for example, + * when the user navigates to it from the next or previous page or via a link annotation or + * outline item). This action is independent of any that may be defined by the Open- + * Action entry in the document catalog (see Section 3.6.1, "Document Catalog"), and is + * executed after such an action. (See implementation note 72 in Appendix H.) +**/ + bool has_O() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL)); + } + + SkPdfDictionary* O() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An action to be performed when the page is closed (for example, + * when the user navigates to the next or previous page or follows a link annotation or an + * outline item). This action applies to the page being closed, and is executed before any + * other page is opened. (See implementation note 72 in Appendix H.) +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfDictionary* C() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfPageObjectActionsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPageObjectDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPageObjectDictionary_autogen.h new file mode 100644 index 0000000000..46d686ec2b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPageObjectDictionary_autogen.h @@ -0,0 +1,943 @@ +#ifndef __DEFINED__SkPdfPageObjectDictionary +#define __DEFINED__SkPdfPageObjectDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a page object +class SkPdfPageObjectDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPageObjectDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPageObjectDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return this;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPageObjectDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPageObjectDictionary(const SkPdfPageObjectDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPageObjectDictionary& operator=(const SkPdfPageObjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * Page for a page object. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) The page tree node that is the im- + * mediate parent of this page object. +**/ + bool has_Parent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); + } + + SkPdfDictionary* Parent() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if PieceInfo is present; optional otherwise; PDF 1.3) The date and + * time (see Section 3.8.2, "Dates") when the page's contents were most re- + * cently modified. If a page-piece dictionary (PieceInfo) is present, the + * modification date is used to ascertain which of the application data dic- + * tionaries that it contains correspond to the current content of the page + * (see Section 9.4, "Page-Piece Dictionaries"). +**/ + bool has_LastModified() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", NULL)); + } + + SkPdfDate LastModified() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Required; inheritable) A dictionary containing any resources required by + * the page (see Section 3.7.2, "Resource Dictionaries"). If the page requires + * no resources, the value of this entry should be an empty dictionary; omit- + * ting the entry entirely indicates that the resources are to be inherited from + * an ancestor node in the page tree. +**/ + bool has_Resources() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", NULL)); + } + + SkPdfDictionary* Resources() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; inheritable) A rectangle (see Section 3.8.3, "Rectangles"), ex- + * pressed in default user space units, defining the boundaries of the physical + * medium on which the page is intended to be displayed or printed (see + * Section 9.10.1, "Page Boundaries"). +**/ + bool has_MediaBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MediaBox", "", NULL)); + } + + SkRect* MediaBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MediaBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) A rectangle, expressed in default user space units, + * defining the visible region of default user space. When the page is dis- + * played or printed, its contents are to be clipped (cropped) to this rectangle + * and then imposed on the output medium in some implementation- + * defined manner (see Section 9.10.1, "Page Boundaries"). Default value: + * the value of MediaBox. +**/ + bool has_CropBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropBox", "", NULL)); + } + + SkRect* CropBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A rectangle, expressed in default user space units, de- + * fining the region to which the contents of the page should be clipped + * when output in a production environment (see Section 9.10.1, "Page + * Boundaries"). Default value: the value of CropBox. +**/ + bool has_BleedBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BleedBox", "", NULL)); + } + + SkRect* BleedBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BleedBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A rectangle, expressed in default user space units, de- + * fining the intended dimensions of the finished page after trimming (see + * Section 9.10.1, "Page Boundaries"). Default value: the value of CropBox. +**/ + bool has_TrimBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimBox", "", NULL)); + } + + SkRect* TrimBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A rectangle, expressed in default user space units, de- + * fining the extent of the page's meaningful content (including potential + * white space) as intended by the page's creator (see Section 9.10.1, "Page + * Boundaries"). Default value: the value of CropBox. +**/ + bool has_ArtBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBox", "", NULL)); + } + + SkRect* ArtBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A box color information dictionary specifying the colors and + * other visual characteristics to be used in displaying guidelines on the + * screen for the various page boundaries (see "Display of Page Boundaries" + * on page 679). If this entry is absent, the viewer application should use its + * own current default settings. +**/ + bool has_BoxColorInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BoxColorInfo", "", NULL)); + } + + SkPdfDictionary* BoxColorInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BoxColorInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A content stream (see Section 3.7.1, "Content Streams") de- + * scribing the contents of this page. If this entry is absent, the page is empty. + * The value may be either a single stream or an array of streams. If it is an + * array, the effect is as if all of the streams in the array were concatenated, in + * order, to form a single stream. This allows a program generating a PDF + * file to create image objects and other resources as they occur, even though + * they interrupt the content stream. The division between streams may + * occur only at the boundaries between lexical tokens (see Section 3.1, "Lex- + * ical Conventions"), but is unrelated to the page's logical content or orga- + * nization. Applications that consume or produce PDF files are not required + * to preserve the existing structure of the Contents array. (See implementa- + * tion note 22 in Appendix H.) +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + bool isContentsAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getContentsAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isContentsAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getContentsAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) The number of degrees by which the page should + * be rotated clockwise when displayed or printed. The value must be a mul- + * tiple of 90. Default value: 0. +**/ + bool has_Rotate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rotate", "", NULL)); + } + + long Rotate() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rotate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.4) A group attributes dictionary specifying the attributes + * of the page's page group for use in the transparent imaging model (see + * Sections 7.3.6, "Page Group," and 7.5.5, "Transparency Group XObjects"). +**/ + bool has_Group() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Group", "", NULL)); + } + + SkPdfDictionary* Group() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Group", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A stream object defining the page's thumbnail image (see Sec- + * tion 8.2.3, "Thumbnail Images"). +**/ + bool has_Thumb() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb", "", NULL)); + } + + SkPdfStream* Thumb() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1; recommended if the page contains article beads) An ar- + * ray of indirect references to article beads appearing on the page (see Sec- + * tion 8.3.2, "Articles"; see also implementation note 23 in Appendix H). + * The beads are listed in the array in natural reading order. +**/ + bool has_B() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", NULL)); + } + + SkPdfArray* B() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.1) The page's display duration (also called its advance + * timing): the maximum length of time, in seconds, that the page will be + * displayed during presentations before the viewer application automati- + * cally advances to the next page (see Section 8.3.3, "Presentations"). By + * default, the viewer does not advance automatically. +**/ + bool has_Dur() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dur", "", NULL)); + } + + double Dur() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dur", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.1) A transition dictionary describing the transition effect + * to be used when displaying the page during presentations (see Section + * 8.3.3, "Presentations"). +**/ + bool has_Trans() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trans", "", NULL)); + } + + SkPdfDictionary* Trans() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trans", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of annotation dictionaries representing annotations + * associated with the page (see Section 8.4, "Annotations"). +**/ + bool has_Annots() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "", NULL)); + } + + SkPdfArray* Annots() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) An additional-actions dictionary defining actions to + * be performed when the page is opened or closed (see Section 8.5.2, "Trig- + * ger Events"; see also implementation note 24 in Appendix H). +**/ + bool has_AA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", NULL)); + } + + SkPdfDictionary* AA() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the page + * (see Section 9.2.2, "Metadata Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A page-piece dictionary associated with the page (see + * Section 9.4, "Page-Piece Dictionaries"). +**/ + bool has_PieceInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PieceInfo", "", NULL)); + } + + SkPdfDictionary* PieceInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PieceInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the page contains structural content items; PDF 1.3) The inte- + * ger key of the page's entry in the structural parent tree (see "Finding Struc- + * ture Elements from Content Items" on page 600). +**/ + bool has_StructParents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", NULL)); + } + + long StructParents() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3; indirect reference preferred) The digital identifier of the + * page's parent Web Capture content set (see Section 9.9.5, "Object At- + * tributes Related to Web Capture"). +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + std::string ID() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) The page's preferred zoom (magnification) factor: the + * factor by which it should be scaled to achieve the "natural" display magni- + * fication (see Section 9.9.5, "Object Attributes Related to Web Capture"). +**/ + bool has_PZ() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PZ", "", NULL)); + } + + double PZ() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PZ", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.3) A separation dictionary containing information need- + * ed to generate color separations for the page (see Section 9.10.3, "Separa- + * tion Dictionaries"). +**/ + bool has_SeparationInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SeparationInfo", "", NULL)); + } + + SkPdfDictionary* SeparationInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SeparationInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfPageObjectDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPagePieceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPagePieceDictionary_autogen.h new file mode 100644 index 0000000000..9ffd819427 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPagePieceDictionary_autogen.h @@ -0,0 +1,545 @@ +#ifndef __DEFINED__SkPdfPagePieceDictionary +#define __DEFINED__SkPdfPagePieceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a page-piece dictionary +class SkPdfPagePieceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPagePieceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPagePieceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return this;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPagePieceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPagePieceDictionary(const SkPdfPagePieceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPagePieceDictionary& operator=(const SkPdfPagePieceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** ()An application data dictionary (see Table 9.7). +**/ +/* + bool has_[any_application_name_or_well_known_data_type]() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_application_name_or_well_known_data_type]", "", NULL)); + } + + SkPdfDictionary* [any_application_name_or_well_known_data_type]() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_application_name_or_well_known_data_type]", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +*/ +}; + +#endif // __DEFINED__SkPdfPagePieceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPageTreeNodeDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPageTreeNodeDictionary_autogen.h new file mode 100644 index 0000000000..b1d6d7c20f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPageTreeNodeDictionary_autogen.h @@ -0,0 +1,586 @@ +#ifndef __DEFINED__SkPdfPageTreeNodeDictionary +#define __DEFINED__SkPdfPageTreeNodeDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Required entries in a page tree node +class SkPdfPageTreeNodeDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPageTreeNodeDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPageTreeNodeDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return this;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPageTreeNodeDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPageTreeNodeDictionary(const SkPdfPageTreeNodeDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPageTreeNodeDictionary& operator=(const SkPdfPageTreeNodeDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be Pages for + * a page tree node. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required except in root node; must be an indirect reference) The page tree node that + * is the immediate parent of this one. +**/ + bool has_Parent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); + } + + SkPdfDictionary* Parent() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An array of indirect references to the immediate children of this node. + * The children may be page objects or other page tree nodes. +**/ + bool has_Kids() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); + } + + SkPdfArray* Kids() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The number of leaf nodes (page objects) that are descendants of this + * node within the page tree. +**/ + bool has_Count() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", NULL)); + } + + long Count() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfPageTreeNodeDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.h b/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.h new file mode 100644 index 0000000000..f4c52b4dc0 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.h @@ -0,0 +1,3083 @@ +#ifndef __DEFINED__SkPdfPodofoMapper +#define __DEFINED__SkPdfPodofoMapper + +#include "SkPdfHeaders_autogen.h" +class PodofoMapper { +public: + static bool map(const SkPdfObject& in, SkPdfObject** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfObject** out) { + if (!isObject(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfArray**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfInteger**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfName**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfNull**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfReference**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfString**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStream**)out)) return true; + + *out = new SkPdfObject(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNull** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNull** out) { + if (!isNull(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNull(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBoolean** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoolean** out) { + if (!isBoolean(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBoolean(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfInteger** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInteger** out) { + if (!isInteger(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfNumber**)out)) return true; + + *out = new SkPdfInteger(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNumber** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNumber** out) { + if (!isNumber(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNumber(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfName** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfName** out) { + if (!isName(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfName(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfReference** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfReference** out) { + if (!isReference(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfReference(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfArray** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfArray** out) { + if (!isArray(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfArray(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfString** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfString** out) { + if (!isString(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfHexString**)out)) return true; + + *out = new SkPdfString(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfHexString** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfHexString** out) { + if (!isHexString(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfHexString(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDictionary** out) { + if (!isDictionary(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfALinkAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAlternateImageDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAnnotationActionsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAppearanceCharacteristicsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAppearanceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfApplicationDataDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfArtifactsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfAttributeObjectDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBeadDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBlockLevelStructureElementsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBorderStyleDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBoxColorInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfBoxStyleDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCIDFontDescriptorDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCIDSystemInfoDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCMapDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCalgrayColorSpaceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCalrgbColorSpaceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCatalogDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCcittfaxdecodeFilterDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfCheckboxFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfChoiceFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfComponentsWithMetadataDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfDctdecodeFilterDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfDeviceNColorSpaceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfDocumentCatalogActionsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfDocumentInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEmbeddedFileParameterDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEmbeddedFileStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEmbeddedFontStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEncodingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEncryptedEmbeddedFileStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfEncryptionCommonDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFCatalogDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFFileAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFNamedPageReferenceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFPageDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFTemplateDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFDFTrailerDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFileAttachmentAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFileSpecificationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFileTrailerDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFontDescriptorDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFontDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFormFieldActionsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFreeTextAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfFunctionCommonDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfGoToActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfGraphicsStateDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfGroupAttributesDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfHideActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfIccProfileStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfIconFitDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfImportDataActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfInkAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfInlineLevelStructureElementsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfInteractiveFormDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfJavascriptActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfJavascriptDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfJbig2DecodeFilterDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfLabColorSpaceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfLaunchActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfLineAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfListAttributeDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfLzwdecodeAndFlatedecodeFiltersDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMacOsFileInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMarkInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMarkedContentReferenceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMarkupAnnotationsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMetadataStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMovieActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMovieActivationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMovieAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfMovieDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfNameDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfNameTreeNodeDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfNamedActionsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfNumberTreeNodeDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfObjectReferenceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfOpiVersionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfOutlineDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfOutlineItemDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPDF_XOutputIntentDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPSXobjectDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPageLabelDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPageObjectActionsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPageObjectDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPagePieceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPageTreeNodeDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPopUpAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPrinterMarkAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfPrinterMarkFormDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfRadioButtonFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfReferenceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfRemoteGoToActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfResetFormActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfResourceDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfRubberStampAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSeparationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSignatureDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSoftMaskDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSoftMaskImageDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSoundActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSoundAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSoundObjectDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSourceInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSquareOrCircleAnnotation**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStandardSecurityHandlerDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStandardStructureDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStreamCommonDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStructureElementAccessDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStructureElementDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfStructureTreeRootDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfSubmitFormActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTableAttributesDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTextAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTextFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfThreadActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfThreadDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTransitionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTransparencyGroupDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTrapNetworkAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTrapNetworkAppearanceStreamDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType0FunctionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType10HalftoneDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType16HalftoneDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType1HalftoneDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType1PatternDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType2FunctionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType2PatternDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType3FunctionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType5HalftoneDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType6HalftoneDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfURIActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfURIDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfURLAliasDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfVariableTextFieldDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfViewerPreferencesDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCaptureCommandDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCaptureCommandSettingsDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCaptureDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCaptureImageSetDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCaptureInformationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWebCapturePageSetDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWidgetAnnotationDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfWindowsLaunchActionDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfXObjectDictionary**)out)) return true; + + *out = new SkPdfDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStream** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStream** out) { + if (!isStream(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStream(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfXObjectDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfXObjectDictionary** out) { + if (!isXObjectDictionary(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfImageDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType1FormDictionary**)out)) return true; + + *out = new SkPdfXObjectDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFontDictionary** out) { + if (!isFontDictionary(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)out)) return true; + + *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTrueTypeFontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrueTypeFontDictionary** out) { + if (!isTrueTypeFontDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTrueTypeFontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStreamCommonDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStreamCommonDictionary** out) { + if (!isStreamCommonDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStreamCommonDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** out) { + if (!isLzwdecodeAndFlatedecodeFiltersDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfLzwdecodeAndFlatedecodeFiltersDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCcittfaxdecodeFilterDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCcittfaxdecodeFilterDictionary** out) { + if (!isCcittfaxdecodeFilterDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCcittfaxdecodeFilterDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfJbig2DecodeFilterDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJbig2DecodeFilterDictionary** out) { + if (!isJbig2DecodeFilterDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfJbig2DecodeFilterDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfDctdecodeFilterDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDctdecodeFilterDictionary** out) { + if (!isDctdecodeFilterDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfDctdecodeFilterDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFileTrailerDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileTrailerDictionary** out) { + if (!isFileTrailerDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFileTrailerDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEncryptionCommonDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncryptionCommonDictionary** out) { + if (!isEncryptionCommonDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEncryptionCommonDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStandardSecurityHandlerDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStandardSecurityHandlerDictionary** out) { + if (!isStandardSecurityHandlerDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStandardSecurityHandlerDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCatalogDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCatalogDictionary** out) { + if (!isCatalogDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCatalogDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPageTreeNodeDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageTreeNodeDictionary** out) { + if (!isPageTreeNodeDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPageTreeNodeDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPageObjectDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageObjectDictionary** out) { + if (!isPageObjectDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPageObjectDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNameDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNameDictionary** out) { + if (!isNameDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNameDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfResourceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfResourceDictionary** out) { + if (!isResourceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfResourceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNameTreeNodeDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNameTreeNodeDictionary** out) { + if (!isNameTreeNodeDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNameTreeNodeDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNumberTreeNodeDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNumberTreeNodeDictionary** out) { + if (!isNumberTreeNodeDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNumberTreeNodeDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFunctionCommonDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFunctionCommonDictionary** out) { + if (!isFunctionCommonDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFunctionCommonDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType0FunctionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType0FunctionDictionary** out) { + if (!isType0FunctionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType0FunctionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType2FunctionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2FunctionDictionary** out) { + if (!isType2FunctionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType2FunctionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType3FunctionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3FunctionDictionary** out) { + if (!isType3FunctionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType3FunctionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFileSpecificationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileSpecificationDictionary** out) { + if (!isFileSpecificationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFileSpecificationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEmbeddedFileStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFileStreamDictionary** out) { + if (!isEmbeddedFileStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEmbeddedFileStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEmbeddedFileParameterDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFileParameterDictionary** out) { + if (!isEmbeddedFileParameterDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEmbeddedFileParameterDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMacOsFileInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMacOsFileInformationDictionary** out) { + if (!isMacOsFileInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMacOsFileInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfGraphicsStateDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGraphicsStateDictionary** out) { + if (!isGraphicsStateDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfGraphicsStateDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCalgrayColorSpaceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCalgrayColorSpaceDictionary** out) { + if (!isCalgrayColorSpaceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCalgrayColorSpaceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCalrgbColorSpaceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCalrgbColorSpaceDictionary** out) { + if (!isCalrgbColorSpaceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCalrgbColorSpaceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfLabColorSpaceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLabColorSpaceDictionary** out) { + if (!isLabColorSpaceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfLabColorSpaceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfIccProfileStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfIccProfileStreamDictionary** out) { + if (!isIccProfileStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfIccProfileStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfDeviceNColorSpaceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDeviceNColorSpaceDictionary** out) { + if (!isDeviceNColorSpaceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfDeviceNColorSpaceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType1PatternDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1PatternDictionary** out) { + if (!isType1PatternDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType1PatternDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType2PatternDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2PatternDictionary** out) { + if (!isType2PatternDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType2PatternDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfShadingDictionary** out) { + if (!isShadingDictionary(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfType1ShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType2ShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType3ShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType4ShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType5ShadingDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType6ShadingDictionary**)out)) return true; + + *out = new SkPdfShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType1ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1ShadingDictionary** out) { + if (!isType1ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType1ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType2ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2ShadingDictionary** out) { + if (!isType2ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType2ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType3ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3ShadingDictionary** out) { + if (!isType3ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType3ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType4ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType4ShadingDictionary** out) { + if (!isType4ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType4ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType5ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType5ShadingDictionary** out) { + if (!isType5ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType5ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType6ShadingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType6ShadingDictionary** out) { + if (!isType6ShadingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType6ShadingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfImageDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfImageDictionary** out) { + if (!isImageDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfImageDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAlternateImageDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAlternateImageDictionary** out) { + if (!isAlternateImageDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAlternateImageDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType1FormDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1FormDictionary** out) { + if (!isType1FormDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType1FormDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfGroupAttributesDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGroupAttributesDictionary** out) { + if (!isGroupAttributesDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfGroupAttributesDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfReferenceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfReferenceDictionary** out) { + if (!isReferenceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfReferenceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPSXobjectDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPSXobjectDictionary** out) { + if (!isPSXobjectDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPSXobjectDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType1FontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1FontDictionary** out) { + if (!isType1FontDictionary(podofoDoc, podofoObj)) return false; + + if (map(podofoDoc, podofoObj, (SkPdfMultiMasterFontDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfTrueTypeFontDictionary**)out)) return true; + if (map(podofoDoc, podofoObj, (SkPdfType3FontDictionary**)out)) return true; + + *out = new SkPdfType1FontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType3FontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3FontDictionary** out) { + if (!isType3FontDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType3FontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEncodingDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncodingDictionary** out) { + if (!isEncodingDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEncodingDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCIDSystemInfoDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDSystemInfoDictionary** out) { + if (!isCIDSystemInfoDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCIDSystemInfoDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCIDFontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDFontDictionary** out) { + if (!isCIDFontDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCIDFontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCMapDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCMapDictionary** out) { + if (!isCMapDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCMapDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType0FontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType0FontDictionary** out) { + if (!isType0FontDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType0FontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFontDescriptorDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFontDescriptorDictionary** out) { + if (!isFontDescriptorDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFontDescriptorDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCIDFontDescriptorDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDFontDescriptorDictionary** out) { + if (!isCIDFontDescriptorDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCIDFontDescriptorDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEmbeddedFontStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFontStreamDictionary** out) { + if (!isEmbeddedFontStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEmbeddedFontStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType1HalftoneDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1HalftoneDictionary** out) { + if (!isType1HalftoneDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType1HalftoneDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType6HalftoneDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType6HalftoneDictionary** out) { + if (!isType6HalftoneDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType6HalftoneDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType10HalftoneDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType10HalftoneDictionary** out) { + if (!isType10HalftoneDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType10HalftoneDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType16HalftoneDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType16HalftoneDictionary** out) { + if (!isType16HalftoneDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType16HalftoneDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfType5HalftoneDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType5HalftoneDictionary** out) { + if (!isType5HalftoneDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfType5HalftoneDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSoftMaskDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoftMaskDictionary** out) { + if (!isSoftMaskDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSoftMaskDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSoftMaskImageDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoftMaskImageDictionary** out) { + if (!isSoftMaskImageDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSoftMaskImageDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTransparencyGroupDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTransparencyGroupDictionary** out) { + if (!isTransparencyGroupDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTransparencyGroupDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfViewerPreferencesDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfViewerPreferencesDictionary** out) { + if (!isViewerPreferencesDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfViewerPreferencesDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfOutlineDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOutlineDictionary** out) { + if (!isOutlineDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfOutlineDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfOutlineItemDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOutlineItemDictionary** out) { + if (!isOutlineItemDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfOutlineItemDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPageLabelDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageLabelDictionary** out) { + if (!isPageLabelDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPageLabelDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfThreadDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfThreadDictionary** out) { + if (!isThreadDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfThreadDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBeadDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBeadDictionary** out) { + if (!isBeadDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBeadDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTransitionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTransitionDictionary** out) { + if (!isTransitionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTransitionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAnnotationDictionary** out) { + if (!isAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBorderStyleDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBorderStyleDictionary** out) { + if (!isBorderStyleDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBorderStyleDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAppearanceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAppearanceDictionary** out) { + if (!isAppearanceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAppearanceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTextAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTextAnnotationDictionary** out) { + if (!isTextAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTextAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfALinkAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfALinkAnnotationDictionary** out) { + if (!isALinkAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfALinkAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFreeTextAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFreeTextAnnotationDictionary** out) { + if (!isFreeTextAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFreeTextAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfLineAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLineAnnotationDictionary** out) { + if (!isLineAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfLineAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSquareOrCircleAnnotation** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSquareOrCircleAnnotation** out) { + if (!isSquareOrCircleAnnotation(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSquareOrCircleAnnotation(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMarkupAnnotationsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkupAnnotationsDictionary** out) { + if (!isMarkupAnnotationsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMarkupAnnotationsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfRubberStampAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRubberStampAnnotationDictionary** out) { + if (!isRubberStampAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfRubberStampAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfInkAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInkAnnotationDictionary** out) { + if (!isInkAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfInkAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPopUpAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPopUpAnnotationDictionary** out) { + if (!isPopUpAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPopUpAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFileAttachmentAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileAttachmentAnnotationDictionary** out) { + if (!isFileAttachmentAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFileAttachmentAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSoundAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundAnnotationDictionary** out) { + if (!isSoundAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSoundAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMovieAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieAnnotationDictionary** out) { + if (!isMovieAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMovieAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWidgetAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWidgetAnnotationDictionary** out) { + if (!isWidgetAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWidgetAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfActionDictionary** out) { + if (!isActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAnnotationActionsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAnnotationActionsDictionary** out) { + if (!isAnnotationActionsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAnnotationActionsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPageObjectActionsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageObjectActionsDictionary** out) { + if (!isPageObjectActionsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPageObjectActionsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFormFieldActionsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFormFieldActionsDictionary** out) { + if (!isFormFieldActionsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFormFieldActionsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfDocumentCatalogActionsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDocumentCatalogActionsDictionary** out) { + if (!isDocumentCatalogActionsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfDocumentCatalogActionsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfGoToActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGoToActionDictionary** out) { + if (!isGoToActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfGoToActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfRemoteGoToActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRemoteGoToActionDictionary** out) { + if (!isRemoteGoToActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfRemoteGoToActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfLaunchActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLaunchActionDictionary** out) { + if (!isLaunchActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfLaunchActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWindowsLaunchActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWindowsLaunchActionDictionary** out) { + if (!isWindowsLaunchActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWindowsLaunchActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfThreadActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfThreadActionDictionary** out) { + if (!isThreadActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfThreadActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfURIActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURIActionDictionary** out) { + if (!isURIActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfURIActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfURIDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURIDictionary** out) { + if (!isURIDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfURIDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSoundActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundActionDictionary** out) { + if (!isSoundActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSoundActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMovieActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieActionDictionary** out) { + if (!isMovieActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMovieActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfHideActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfHideActionDictionary** out) { + if (!isHideActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfHideActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfNamedActionsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNamedActionsDictionary** out) { + if (!isNamedActionsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfNamedActionsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfInteractiveFormDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInteractiveFormDictionary** out) { + if (!isInteractiveFormDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfInteractiveFormDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFieldDictionary** out) { + if (!isFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfVariableTextFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfVariableTextFieldDictionary** out) { + if (!isVariableTextFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfVariableTextFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAppearanceCharacteristicsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAppearanceCharacteristicsDictionary** out) { + if (!isAppearanceCharacteristicsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAppearanceCharacteristicsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfCheckboxFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCheckboxFieldDictionary** out) { + if (!isCheckboxFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfCheckboxFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfRadioButtonFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRadioButtonFieldDictionary** out) { + if (!isRadioButtonFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfRadioButtonFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTextFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTextFieldDictionary** out) { + if (!isTextFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTextFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfChoiceFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfChoiceFieldDictionary** out) { + if (!isChoiceFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfChoiceFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSignatureDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSignatureDictionary** out) { + if (!isSignatureDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSignatureDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSubmitFormActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSubmitFormActionDictionary** out) { + if (!isSubmitFormActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSubmitFormActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfResetFormActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfResetFormActionDictionary** out) { + if (!isResetFormActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfResetFormActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfImportDataActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfImportDataActionDictionary** out) { + if (!isImportDataActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfImportDataActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfJavascriptActionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJavascriptActionDictionary** out) { + if (!isJavascriptActionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfJavascriptActionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFTrailerDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFTrailerDictionary** out) { + if (!isFDFTrailerDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFTrailerDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFCatalogDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFCatalogDictionary** out) { + if (!isFDFCatalogDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFCatalogDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFDictionary** out) { + if (!isFDFDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfEncryptedEmbeddedFileStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncryptedEmbeddedFileStreamDictionary** out) { + if (!isEncryptedEmbeddedFileStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfEncryptedEmbeddedFileStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfJavascriptDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJavascriptDictionary** out) { + if (!isJavascriptDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfJavascriptDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFFieldDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFFieldDictionary** out) { + if (!isFDFFieldDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFFieldDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfIconFitDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfIconFitDictionary** out) { + if (!isIconFitDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfIconFitDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFPageDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFPageDictionary** out) { + if (!isFDFPageDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFPageDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFTemplateDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFTemplateDictionary** out) { + if (!isFDFTemplateDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFTemplateDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFNamedPageReferenceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFNamedPageReferenceDictionary** out) { + if (!isFDFNamedPageReferenceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFNamedPageReferenceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfFDFFileAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFFileAnnotationDictionary** out) { + if (!isFDFFileAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfFDFFileAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSoundObjectDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundObjectDictionary** out) { + if (!isSoundObjectDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSoundObjectDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMovieDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieDictionary** out) { + if (!isMovieDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMovieDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMovieActivationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieActivationDictionary** out) { + if (!isMovieActivationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMovieActivationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfDocumentInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDocumentInformationDictionary** out) { + if (!isDocumentInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfDocumentInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMetadataStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMetadataStreamDictionary** out) { + if (!isMetadataStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMetadataStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfComponentsWithMetadataDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfComponentsWithMetadataDictionary** out) { + if (!isComponentsWithMetadataDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfComponentsWithMetadataDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPagePieceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPagePieceDictionary** out) { + if (!isPagePieceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPagePieceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfApplicationDataDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfApplicationDataDictionary** out) { + if (!isApplicationDataDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfApplicationDataDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStructureTreeRootDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureTreeRootDictionary** out) { + if (!isStructureTreeRootDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStructureTreeRootDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStructureElementDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureElementDictionary** out) { + if (!isStructureElementDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStructureElementDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMarkedContentReferenceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkedContentReferenceDictionary** out) { + if (!isMarkedContentReferenceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMarkedContentReferenceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfObjectReferenceDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfObjectReferenceDictionary** out) { + if (!isObjectReferenceDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfObjectReferenceDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStructureElementAccessDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureElementAccessDictionary** out) { + if (!isStructureElementAccessDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStructureElementAccessDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfAttributeObjectDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAttributeObjectDictionary** out) { + if (!isAttributeObjectDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfAttributeObjectDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMarkInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkInformationDictionary** out) { + if (!isMarkInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMarkInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfArtifactsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfArtifactsDictionary** out) { + if (!isArtifactsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfArtifactsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfStandardStructureDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStandardStructureDictionary** out) { + if (!isStandardStructureDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfStandardStructureDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBlockLevelStructureElementsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBlockLevelStructureElementsDictionary** out) { + if (!isBlockLevelStructureElementsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBlockLevelStructureElementsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfInlineLevelStructureElementsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInlineLevelStructureElementsDictionary** out) { + if (!isInlineLevelStructureElementsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfInlineLevelStructureElementsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfListAttributeDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfListAttributeDictionary** out) { + if (!isListAttributeDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfListAttributeDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTableAttributesDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTableAttributesDictionary** out) { + if (!isTableAttributesDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTableAttributesDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCaptureInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureInformationDictionary** out) { + if (!isWebCaptureInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCaptureInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCaptureDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureDictionary** out) { + if (!isWebCaptureDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCaptureDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCapturePageSetDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCapturePageSetDictionary** out) { + if (!isWebCapturePageSetDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCapturePageSetDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCaptureImageSetDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureImageSetDictionary** out) { + if (!isWebCaptureImageSetDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCaptureImageSetDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSourceInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSourceInformationDictionary** out) { + if (!isSourceInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSourceInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfURLAliasDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURLAliasDictionary** out) { + if (!isURLAliasDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfURLAliasDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCaptureCommandDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureCommandDictionary** out) { + if (!isWebCaptureCommandDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCaptureCommandDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfWebCaptureCommandSettingsDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureCommandSettingsDictionary** out) { + if (!isWebCaptureCommandSettingsDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfWebCaptureCommandSettingsDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBoxColorInformationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoxColorInformationDictionary** out) { + if (!isBoxColorInformationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBoxColorInformationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfBoxStyleDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoxStyleDictionary** out) { + if (!isBoxStyleDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfBoxStyleDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPrinterMarkAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPrinterMarkAnnotationDictionary** out) { + if (!isPrinterMarkAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPrinterMarkAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPrinterMarkFormDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPrinterMarkFormDictionary** out) { + if (!isPrinterMarkFormDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPrinterMarkFormDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfSeparationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSeparationDictionary** out) { + if (!isSeparationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfSeparationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfPDF_XOutputIntentDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPDF_XOutputIntentDictionary** out) { + if (!isPDF_XOutputIntentDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfPDF_XOutputIntentDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTrapNetworkAnnotationDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrapNetworkAnnotationDictionary** out) { + if (!isTrapNetworkAnnotationDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTrapNetworkAnnotationDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfTrapNetworkAppearanceStreamDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrapNetworkAppearanceStreamDictionary** out) { + if (!isTrapNetworkAppearanceStreamDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfTrapNetworkAppearanceStreamDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfOpiVersionDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOpiVersionDictionary** out) { + if (!isOpiVersionDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfOpiVersionDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool map(const SkPdfObject& in, SkPdfMultiMasterFontDictionary** out) { + return map(*in.doc(), *in.podofo(), out); + } + + static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMultiMasterFontDictionary** out) { + if (!isMultiMasterFontDictionary(podofoDoc, podofoObj)) return false; + + + *out = new SkPdfMultiMasterFontDictionary(&podofoDoc, &podofoObj); + return true; + } + + static bool isObject(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isNull(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Null; + } + + static bool isBoolean(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Bool; + } + + static bool isInteger(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real; + } + + static bool isNumber(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real; + } + + static bool isName(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Name; + } + + static bool isReference(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Reference; + } + + static bool isArray(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Array; + } + + static bool isString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_String || podofoObj.GetDataType() == ePdfDataType_HexString; + } + + static bool isHexString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_HexString; + } + + static bool isDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return podofoObj.GetDataType() == ePdfDataType_Dictionary; + } + + static bool isStream(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isXObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "TrueType")) return false; + + return true; + } + + static bool isStreamCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCcittfaxdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isJbig2DecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isDctdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFileTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isEncryptionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isStandardSecurityHandlerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPageTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPageObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isNameDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isResourceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isNameTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isNumberTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFunctionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType0FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType2FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType3FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFileSpecificationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isEmbeddedFileParameterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMacOsFileInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isGraphicsStateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCalgrayColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCalrgbColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isLabColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isIccProfileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isDeviceNColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType1PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType2PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType1ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType2ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType3ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType4ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType5ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType6ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "Image")) return false; + + return true; + } + + static bool isAlternateImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "Form")) return false; + + return true; + } + + static bool isGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "MMType1") && (Subtype != "TrueType") && (Subtype != "Type3") && (Subtype != "Type1")) return false; + + return true; + } + + static bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "Type3")) return false; + + return true; + } + + static bool isEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "CIDFontType0") && (Subtype != "CIDFontType2")) return false; + + return true; + } + + static bool isCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "Type0")) return false; + + return true; + } + + static bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isEmbeddedFontStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType1HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType6HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType10HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType16HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isType5HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSoftMaskDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSoftMaskImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTransparencyGroupDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isViewerPreferencesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isOutlineDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isOutlineItemDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPageLabelDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isThreadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isBeadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTransitionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isBorderStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isAppearanceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isALinkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFreeTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isLineAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSquareOrCircleAnnotation(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMarkupAnnotationsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isRubberStampAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isInkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPopUpAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFileAttachmentAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSoundAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMovieAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWidgetAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isAnnotationActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPageObjectActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFormFieldActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isDocumentCatalogActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isRemoteGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWindowsLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isThreadActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isURIActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isURIDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSoundActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMovieActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isHideActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isNamedActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isInteractiveFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isVariableTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isAppearanceCharacteristicsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isCheckboxFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isRadioButtonFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isChoiceFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSignatureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSubmitFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isResetFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isImportDataActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isJavascriptActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isJavascriptDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isIconFitDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFPageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFTemplateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFNamedPageReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isFDFFileAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSoundObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMovieDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMovieActivationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isDocumentInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMetadataStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isComponentsWithMetadataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPagePieceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isApplicationDataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isStructureTreeRootDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isStructureElementDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMarkedContentReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isObjectReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isStructureElementAccessDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isAttributeObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMarkInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isArtifactsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isStandardStructureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isBlockLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isInlineLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isListAttributeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTableAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCaptureInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCaptureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCapturePageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCaptureImageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSourceInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isURLAliasDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCaptureCommandDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isWebCaptureCommandSettingsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isBoxColorInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isBoxStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPrinterMarkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPrinterMarkFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isSeparationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isPDF_XOutputIntentDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTrapNetworkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isTrapNetworkAppearanceStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + return true; + } + + static bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) { + std::string Subtype; + if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false; + if ((Subtype != "MMType1")) return false; + + return true; + } + +}; + +#endif // __DEFINED__SkPdfPodofoMapper diff --git a/experimental/PdfViewer/autogen/SkPdfPopUpAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPopUpAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..6c1e25f29b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPopUpAnnotationDictionary_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfPopUpAnnotationDictionary +#define __DEFINED__SkPdfPopUpAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a pop-up annotation +class SkPdfPopUpAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPopUpAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPopUpAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return this;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPopUpAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPopUpAnnotationDictionary(const SkPdfPopUpAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPopUpAnnotationDictionary& operator=(const SkPdfPopUpAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be + * Popup for a pop-up annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) An alternate representation of the annotation's contents + * in human-readable form, useful when extracting the document's contents in + * support of accessibility to disabled users or for other purposes (see Section + * 9.8.2, "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; must be an indirect reference) The parent annotation with which + * this pop-up annotation is associated. + * Note: If this entry is present, the parent annotation's Contents, M, C, and T + * entries (see Table 8.10 on page 490) override those of the pop-up annotation + * itself. +**/ + bool has_Parent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); + } + + SkPdfDictionary* Parent() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag specifying whether the pop-up annotation should initially + * be displayed open. Default value: false (closed). +**/ + bool has_Open() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", NULL)); + } + + bool Open() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfPopUpAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPrinterMarkAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPrinterMarkAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..07f7ff0c40 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPrinterMarkAnnotationDictionary_autogen.h @@ -0,0 +1,558 @@ +#ifndef __DEFINED__SkPdfPrinterMarkAnnotationDictionary +#define __DEFINED__SkPdfPrinterMarkAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a printer's mark annotation +class SkPdfPrinterMarkAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPrinterMarkAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPrinterMarkAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return this;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPrinterMarkAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPrinterMarkAnnotationDictionary(const SkPdfPrinterMarkAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPrinterMarkAnnotationDictionary& operator=(const SkPdfPrinterMarkAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Printer- + * Mark for a printer's mark annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An arbitrary name identifying the type of printer's mark, such as Color- + * Bar or RegistrationTarget. +**/ + bool has_MN() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MN", "", NULL)); + } + + std::string MN() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MN", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfPrinterMarkAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfPrinterMarkFormDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfPrinterMarkFormDictionary_autogen.h new file mode 100644 index 0000000000..1463783223 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfPrinterMarkFormDictionary_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfPrinterMarkFormDictionary +#define __DEFINED__SkPdfPrinterMarkFormDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a printer's mark form dictionary +class SkPdfPrinterMarkFormDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kPrinterMarkFormDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPrinterMarkFormDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return this;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfPrinterMarkFormDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfPrinterMarkFormDictionary(const SkPdfPrinterMarkFormDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfPrinterMarkFormDictionary& operator=(const SkPdfPrinterMarkFormDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.4) A text string representing the printer's mark in + * human-readable form, suitable for presentation to the user on the screen. +**/ + bool has_MarkStyle() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkStyle", "", NULL)); + } + + std::string MarkStyle() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkStyle", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) A dictionary identifying the individual colorants + * associated with a printer's mark such as a color bar. For each entry in this + * dictionary, the key is a colorant name and the value is an array defining a + * Separation color space for that colorant (see "Separation Color Spaces" + * on page 201). The key must match the colorant name given in that color + * space. +**/ + bool has_Colorants() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", NULL)); + } + + SkPdfDictionary* Colorants() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfPrinterMarkFormDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfRadioButtonFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfRadioButtonFieldDictionary_autogen.h new file mode 100644 index 0000000000..35851bdd8f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfRadioButtonFieldDictionary_autogen.h @@ -0,0 +1,547 @@ +#ifndef __DEFINED__SkPdfRadioButtonFieldDictionary +#define __DEFINED__SkPdfRadioButtonFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry specific to a radio button field +class SkPdfRadioButtonFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kRadioButtonFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kRadioButtonFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return this;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfRadioButtonFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfRadioButtonFieldDictionary(const SkPdfRadioButtonFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfRadioButtonFieldDictionary& operator=(const SkPdfRadioButtonFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; inheritable; PDF 1.4) An array of text strings to be used in + * place of the V entries for the values of the widget annotations repre- + * senting the individual radio buttons. Each element in the array repre- + * sents the export value of the corresponding widget annotation in the + * Kids array of the radio button field. +**/ + bool has_Opt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL)); + } + + SkPdfArray* Opt() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfRadioButtonFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfReferenceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfReferenceDictionary_autogen.h new file mode 100644 index 0000000000..dc4d6799fc --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfReferenceDictionary_autogen.h @@ -0,0 +1,595 @@ +#ifndef __DEFINED__SkPdfReferenceDictionary +#define __DEFINED__SkPdfReferenceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a reference dictionary +class SkPdfReferenceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kReferenceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kReferenceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return this;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfReferenceDictionary(const SkPdfReferenceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfReferenceDictionary& operator=(const SkPdfReferenceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The file containing the target document. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Required) A page index or page label (see Section 8.3.1, "Page Labels") + * identifying the page of the target document containing the content to be + * imported. Note that the reference is a weak one and can be inadvertently in- + * validated if the referenced page is changed or replaced in the target document + * after the reference is created. +**/ + bool has_Page() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", NULL)); + } + + bool isPageAInteger() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + long getPageAsInteger() const { + long ret = 0; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isPageAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getPageAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of two strings constituting a file identifier (see Section 9.3, + * "File Identifiers") for the file containing the target document. The use of this + * entry improves a viewer application's chances of finding the intended file and + * allows it to warn the user if the file has changed since the reference was created. +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + SkPdfArray* ID() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfReferenceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfReference_autogen.h b/experimental/PdfViewer/autogen/SkPdfReference_autogen.h new file mode 100644 index 0000000000..01d38c8478 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfReference_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfReference +#define __DEFINED__SkPdfReference + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfReference : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kReference_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kReference_SkPdfObjectType + 1);} +public: + virtual SkPdfReference* asReference() {return this;} + virtual const SkPdfReference* asReference() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: +private: +public: + SkPdfReference(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfReference(const SkPdfReference& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfReference& operator=(const SkPdfReference& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfReference diff --git a/experimental/PdfViewer/autogen/SkPdfRemoteGoToActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfRemoteGoToActionDictionary_autogen.h new file mode 100644 index 0000000000..eb42612fa9 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfRemoteGoToActionDictionary_autogen.h @@ -0,0 +1,623 @@ +#ifndef __DEFINED__SkPdfRemoteGoToActionDictionary +#define __DEFINED__SkPdfRemoteGoToActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a remote go-to action +class SkPdfRemoteGoToActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kRemoteGoToActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kRemoteGoToActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return this;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfRemoteGoToActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfRemoteGoToActionDictionary(const SkPdfRemoteGoToActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfRemoteGoToActionDictionary& operator=(const SkPdfRemoteGoToActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be GoToR + * for a remote go-to action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The file in which the destination is located. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Required) The destination to jump to (see Section 8.2.1, "Destinations"). If + * the value is an array defining an explicit destination (as described under + * "Explicit Destinations" on page 474), its first element must be a page number + * within the remote document rather than an indirect reference to a page ob- + * ject in the current document. The first page is numbered 0. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + bool isDAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getDAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A flag specifying whether to open the destination docu- + * ment in a new window. If this flag is false, the destination document will + * replace the current document in the same window. If this entry is absent, + * the viewer application should behave in accordance with the current user + * preference. +**/ + bool has_NewWindow() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NewWindow", "", NULL)); + } + + bool NewWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NewWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfRemoteGoToActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfResetFormActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfResetFormActionDictionary_autogen.h new file mode 100644 index 0000000000..b4efb999ad --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfResetFormActionDictionary_autogen.h @@ -0,0 +1,578 @@ +#ifndef __DEFINED__SkPdfResetFormActionDictionary +#define __DEFINED__SkPdfResetFormActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a reset-form action +class SkPdfResetFormActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kResetFormActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kResetFormActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return this;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfResetFormActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfResetFormActionDictionary(const SkPdfResetFormActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfResetFormActionDictionary& operator=(const SkPdfResetFormActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be + * ResetForm for a reset-form action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array identifying which fields to reset or which to exclude + * from resetting, depending on the setting of the Include/Exclude flag in + * the Flags entry (see Table 8.64). Each element of the array is either an in- + * direct reference to a field dictionary or (PDF 1.3) a string representing + * the fully qualified name of a field. Elements of both kinds may be mixed + * in the same array. + * If this entry is omitted, the Include/Exclude flag is ignored; all fields in + * the document's interactive form are reset. +**/ + bool has_Fields() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", NULL)); + } + + SkPdfArray* Fields() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) A set of flags specifying various characteristics of + * the action (see Table 8.64). Default value: 0. +**/ + bool has_Flags() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", NULL)); + } + + long Flags() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfResetFormActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfResourceDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfResourceDictionary_autogen.h new file mode 100644 index 0000000000..bd7079d0b7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfResourceDictionary_autogen.h @@ -0,0 +1,643 @@ +#ifndef __DEFINED__SkPdfResourceDictionary +#define __DEFINED__SkPdfResourceDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a resource dictionary +class SkPdfResourceDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kResourceDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kResourceDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfResourceDictionary* asResourceDictionary() {return this;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfResourceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfResourceDictionary(const SkPdfResourceDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfResourceDictionary& operator=(const SkPdfResourceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A dictionary mapping resource names to graphics state parameter + * dictionaries (see Section 4.3.4, "Graphics State Parameter Dictionaries"). +**/ + bool has_ExtGState() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGState", "", NULL)); + } + + SkPdfDictionary* ExtGState() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGState", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A dictionary mapping each resource name to either the name of a + * device-dependent color space or an array describing a color space (see Sec- + * tion 4.5, "Color Spaces"). +**/ + bool has_ColorSpace() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", NULL)); + } + + SkPdfDictionary* ColorSpace() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A dictionary mapping resource names to pattern objects (see Sec- + * tion 4.6, "Patterns"). +**/ + bool has_Pattern() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pattern", "", NULL)); + } + + SkPdfDictionary* Pattern() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pattern", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A dictionary mapping resource names to shading dic- + * tionaries (see "Shading Dictionaries" on page 233). +**/ + bool has_Shading() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", NULL)); + } + + SkPdfDictionary* Shading() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A dictionary mapping resource names to external objects (see Sec- + * tion 4.7, "External Objects"). +**/ + bool has_XObject() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XObject", "", NULL)); + } + + SkPdfDictionary* XObject() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XObject", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A dictionary mapping resource names to font dictionaries (see + * Chapter 5). +**/ + bool has_Font() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "", NULL)); + } + + SkPdfDictionary* Font() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Font", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of predefined procedure set names (see Section 9.1, + * "Procedure Sets"). +**/ + bool has_ProcSet() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ProcSet", "", NULL)); + } + + SkPdfArray* ProcSet() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ProcSet", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A dictionary mapping resource names to property list + * dictionaries for marked content (see Section 9.5.1, "Property Lists"). +**/ + bool has_Properties() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Properties", "", NULL)); + } + + SkPdfDictionary* Properties() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Properties", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfResourceDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfRubberStampAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfRubberStampAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..1d56702b9b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfRubberStampAnnotationDictionary_autogen.h @@ -0,0 +1,581 @@ +#ifndef __DEFINED__SkPdfRubberStampAnnotationDictionary +#define __DEFINED__SkPdfRubberStampAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a rubber stamp annotation +class SkPdfRubberStampAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kRubberStampAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kRubberStampAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return this;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfRubberStampAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfRubberStampAnnotationDictionary(const SkPdfRubberStampAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfRubberStampAnnotationDictionary& operator=(const SkPdfRubberStampAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Stamp + * for a rubber stamp annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annotation + * is opened. Carriage returns may be used to separate the text into paragraphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of an icon to be used in displaying the annotation. Viewer + * applications should provide predefined icon appearances for at least the follow- + * ing standard names: + * Approved Experimental NotApproved + * AsIs Expired NotForPublicRelease + * Confidential Final Sold + * Departmental ForComment TopSecret + * Draft ForPublicRelease + * Additional names may be supported as well. Default value: Draft. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * Name entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams." +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfRubberStampAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSeparationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSeparationDictionary_autogen.h new file mode 100644 index 0000000000..1c48abab0a --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSeparationDictionary_autogen.h @@ -0,0 +1,602 @@ +#ifndef __DEFINED__SkPdfSeparationDictionary +#define __DEFINED__SkPdfSeparationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a separation dictionary +class SkPdfSeparationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSeparationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSeparationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return this;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSeparationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSeparationDictionary(const SkPdfSeparationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSeparationDictionary& operator=(const SkPdfSeparationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of indirect references to page objects representing separa- + * tions of the same document page. One of the page objects in the array must be + * the one with which this separation dictionary is associated, and all of them must + * have separation dictionaries (SeparationInfo entries) containing Pages arrays + * identical to this one. +**/ + bool has_Pages() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", NULL)); + } + + SkPdfArray* Pages() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The name of the device colorant to be used in rendering this + * separation, such as Cyan or PANTONE 35 CV. +**/ + bool has_DeviceColorant() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DeviceColorant", "", NULL)); + } + + bool isDeviceColorantAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DeviceColorant", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getDeviceColorantAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DeviceColorant", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isDeviceColorantAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DeviceColorant", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDeviceColorantAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DeviceColorant", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array defining a Separation or DeviceN color space (see "Separa- + * tion Color Spaces" on page 201 and "DeviceN Color Spaces" on page 205). This + * provides additional information about the color specified by DeviceColorant- + * in particular, the alternate color space and tint transformation function that + * would be used to represent the colorant as a process color. This information + * enables a viewer application to preview the separation in a color that approxi- + * mates the device colorant. + * The value of DeviceColorant must match the space's colorant name (if it is a + * Separation space) or be one of the space's colorant names (if it is a DeviceN + * space). +**/ + bool has_ColorSpace() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", NULL)); + } + + SkPdfArray* ColorSpace() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfSeparationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfShadingDictionary_autogen.h new file mode 100644 index 0000000000..b859b466c2 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfShadingDictionary_autogen.h @@ -0,0 +1,626 @@ +#ifndef __DEFINED__SkPdfShadingDictionary +#define __DEFINED__SkPdfShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all shading dictionaries +class SkPdfShadingDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kShadingDictionary__End_SkPdfObjectType;} +public: + virtual SkPdfShadingDictionary* asShadingDictionary() {return this;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfShadingDictionary(const SkPdfShadingDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfShadingDictionary& operator=(const SkPdfShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The shading type: + * 1 Function-based shading + * 2 Axial shading + * 3 Radial shading + * 4 Free-form Gouraud-shaded triangle mesh + * 5 Lattice-form Gouraud-shaded triangle mesh + * 6 Coons patch mesh + * 7 Tensor-product patch mesh +**/ + bool has_ShadingType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ShadingType", "", NULL)); + } + + long ShadingType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ShadingType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The color space in which color values are expressed. This may be + * any device, CIE-based, or special color space except a Pattern space. See + * "Color Space: Special Considerations," below, for further information. +**/ + bool has_ColorSpace() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", NULL)); + } + + bool isColorSpaceAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getColorSpaceAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isColorSpaceAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getColorSpaceAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of color components appropriate to the color space, + * specifying a single background color value. If present, this color is used be- + * fore any painting operation involving the shading, to fill those portions of the + * area to be painted that lie outside the bounds of the shading object itself. In + * the opaque imaging model, the effect is as if the painting operation were + * performed twice: first with the background color and then again with the + * shading. + * Note: The background color is applied only when the shading is used as part of a + * shading pattern, not when it is painted directly with the sh operator. +**/ + bool has_Background() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Background", "", NULL)); + } + + SkPdfArray* Background() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Background", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of four numbers giving the left, bottom, right, and top + * coordinates, respectively, of the shading's bounding box. The coordinates are + * interpreted in the shading's target coordinate space. If present, this bounding + * box is applied as a temporary clipping boundary when the shading is painted, + * in addition to the current clipping path and any other clipping boundaries in + * effect at that time. +**/ + bool has_BBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL)); + } + + SkRect* BBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A flag indicating whether to filter the shading function to prevent + * aliasing artifacts. The shading operators sample shading functions at a rate + * determined by the resolution of the output device. Aliasing can occur if the + * function is not smooth-that is, if it has a high spatial frequency relative to + * the sampling rate. Anti-aliasing can be computationally expensive and is usu- + * ally unnecessary, since most shading functions are smooth enough, or are + * sampled at a high enough frequency, to avoid aliasing effects. Anti-aliasing + * may not be implemented on some output devices, in which case this flag is + * ignored. Default value: false. +**/ + bool has_AntiAlias() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AntiAlias", "", NULL)); + } + + bool AntiAlias() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AntiAlias", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSignatureDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSignatureDictionary_autogen.h new file mode 100644 index 0000000000..cdb249c114 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSignatureDictionary_autogen.h @@ -0,0 +1,655 @@ +#ifndef __DEFINED__SkPdfSignatureDictionary +#define __DEFINED__SkPdfSignatureDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a signature dictionary +class SkPdfSignatureDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSignatureDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSignatureDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return this;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSignatureDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSignatureDictionary(const SkPdfSignatureDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSignatureDictionary& operator=(const SkPdfSignatureDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Sig for a signature dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; inheritable) The name of the signature handler to be used for + * authenticating the field's contents, such as Adobe.PPKLite, Entrust.PPKEF, + * CICI.SignIt, or VeriSign.PPKVS. +**/ + bool has_Filter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", NULL)); + } + + std::string Filter() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of a specific submethod of the specified handler. +**/ + bool has_SubFilter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SubFilter", "", NULL)); + } + + std::string SubFilter() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SubFilter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of pairs of integers (starting byte offset, length in bytes) + * describing the exact byte range for the digest calculation. Multiple discontig- + * uous byte ranges may be used to describe a digest that does not include the + * signature token itself. +**/ + bool has_ByteRange() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ByteRange", "", NULL)); + } + + SkPdfArray* ByteRange() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ByteRange", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The encrypted signature token. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of the person or authority signing the document. +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The time of signing. Depending on the signature handler, this + * may be a normal unverified computer time or a time generated in a verifiable + * way from a secure time server. +**/ + bool has_M() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", NULL)); + } + + SkPdfDate M() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) The CPU host name or physical location of the signing. +**/ + bool has_Location() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Location", "", NULL)); + } + + std::string Location() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Location", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The reason for the signing, such as (I agree...). +**/ + bool has_Reason() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Reason", "", NULL)); + } + + std::string Reason() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Reason", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfSignatureDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSoftMaskDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSoftMaskDictionary_autogen.h new file mode 100644 index 0000000000..73295e08ea --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSoftMaskDictionary_autogen.h @@ -0,0 +1,638 @@ +#ifndef __DEFINED__SkPdfSoftMaskDictionary +#define __DEFINED__SkPdfSoftMaskDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a soft-mask dictionary +class SkPdfSoftMaskDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSoftMaskDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSoftMaskDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return this;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSoftMaskDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSoftMaskDictionary(const SkPdfSoftMaskDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSoftMaskDictionary& operator=(const SkPdfSoftMaskDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Mask for a soft-mask dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A subtype specifying the method to be used in deriving the mask + * values from the transparency group specified by the G entry: + * Alpha Use the group's computed alpha, disregarding its color (see + * Section 7.4.1, "Deriving a Soft Mask from Group Alpha"). + * Luminosity Convert the group's computed color to a single-component + * luminosity value (see Section 7.4.2, "Deriving a Soft Mask + * from Group Luminosity"). +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A transparency group XObject (see Section 7.5.5, "Transparency + * Group XObjects") to be used as the source of alpha or color values for deriv- + * ing the mask. If the subtype S is Luminosity, the group attributes dictionary + * must contain a CS entry defining the color space in which the compositing + * computation is to be performed. +**/ + bool has_G() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", NULL)); + } + + SkPdfStream* G() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of component values specifying the color to be used as + * the backdrop against which to composite the transparency group XObject G. + * This entry is consulted only if the subtype S is Luminosity. The array consists + * of n numbers, where n is the number of components in the color space speci- + * fied by the CS entry in the group attributes dictionary (see Section 7.5.5, + * "Transparency Group XObjects"). Default value: the color space's initial + * value, representing black. +**/ + bool has_BC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC", "", NULL)); + } + + SkPdfArray* BC() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A function object (see Section 3.9, "Functions") specifying the + * transfer function to be used in deriving the mask values. The function ac- + * cepts one input, the computed group alpha or luminosity (depending on the + * value of the subtype S), and returns one output, the resulting mask value. + * Both the input and output must be in the range 0.0 to 1.0; if the computed + * output falls outside this range, it is forced to the nearest valid value. The + * name Identity may be specified in place of a function object to designate the + * identity function. Default value: Identity. +**/ + bool has_TR() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", NULL)); + } + + bool isTRAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTRAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTRAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTRAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfSoftMaskDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSoftMaskImageDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSoftMaskImageDictionary_autogen.h new file mode 100644 index 0000000000..4ca39951f8 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSoftMaskImageDictionary_autogen.h @@ -0,0 +1,548 @@ +#ifndef __DEFINED__SkPdfSoftMaskImageDictionary +#define __DEFINED__SkPdfSoftMaskImageDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry in a soft-mask image dictionary +class SkPdfSoftMaskImageDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSoftMaskImageDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSoftMaskImageDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return this;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSoftMaskImageDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSoftMaskImageDictionary(const SkPdfSoftMaskImageDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSoftMaskImageDictionary& operator=(const SkPdfSoftMaskImageDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; PDF 1.4) An array of component values specifying the matte color with + * which the image data in the parent image has been preblended. The array consists of n + * numbers, where n is the number of components in the color space specified by the + * ColorSpace entry in the parent image's image dictionary; the numbers must be valid + * color components in that color space. If this entry is absent, the image data is not pre- + * blended. +**/ + bool has_Matte() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte", "", NULL)); + } + + SkPdfArray* Matte() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfSoftMaskImageDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSoundActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSoundActionDictionary_autogen.h new file mode 100644 index 0000000000..be04ec6b80 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSoundActionDictionary_autogen.h @@ -0,0 +1,619 @@ +#ifndef __DEFINED__SkPdfSoundActionDictionary +#define __DEFINED__SkPdfSoundActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a sound action +class SkPdfSoundActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSoundActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSoundActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return this;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSoundActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSoundActionDictionary(const SkPdfSoundActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSoundActionDictionary& operator=(const SkPdfSoundActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Sound + * for a sound action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A sound object defining the sound to be played (see Section 8.7, + * "Sounds"; see also implementation note 76 in Appendix H). +**/ + bool has_Sound() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", NULL)); + } + + SkPdfStream* Sound() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The volume at which to play the sound, in the range -1.0 to 1.0. + * Higher values denote greater volume; negative values mute the sound. + * Default value: 1.0. +**/ + bool has_Volume() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", NULL)); + } + + double Volume() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A flag specifying whether to play the sound synchronously or + * asynchronously. If this flag is true, the viewer application will retain control, + * allowing no further user interaction other than canceling the sound, until the + * sound has been completely played. Default value: false. +**/ + bool has_Synchronous() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", NULL)); + } + + bool Synchronous() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to repeat the sound indefinitely. If this + * entry is present, the Synchronous entry is ignored. Default value: false. +**/ + bool has_Repeat() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Repeat", "", NULL)); + } + + bool Repeat() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Repeat", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to mix this sound with any other sound + * already playing. If this flag is false, any previously playing sound will be + * stopped before starting this sound; this can be used to stop a repeating sound + * (see Repeat, above). Default value: false. +**/ + bool has_Mix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mix", "", NULL)); + } + + bool Mix() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfSoundActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSoundAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSoundAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..523ff1d689 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSoundAnnotationDictionary_autogen.h @@ -0,0 +1,592 @@ +#ifndef __DEFINED__SkPdfSoundAnnotationDictionary +#define __DEFINED__SkPdfSoundAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a sound annotation +class SkPdfSoundAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSoundAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSoundAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return this;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSoundAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSoundAnnotationDictionary(const SkPdfSoundAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSoundAnnotationDictionary& operator=(const SkPdfSoundAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Sound + * for a sound annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A sound object defining the sound to be played when the annotation + * is activated (see Section 8.7, "Sounds"). +**/ + bool has_Sound() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", NULL)); + } + + SkPdfStream* Sound() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) Text to be displayed in a pop-up window for the annotation in place + * of the sound, useful when extracting the document's contents in support of + * accessibility to disabled users or for other purposes (see Section 9.8.2, "Alternate + * Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The name of an icon to be used in displaying the annotation. Viewer + * applications should provide predefined icon appearances for at least the stan- + * dard names Speaker and Microphone; additional names may be supported as + * well. Default value: Speaker. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * Name entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams." +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfSoundAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSoundObjectDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSoundObjectDictionary_autogen.h new file mode 100644 index 0000000000..09ff7d097d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSoundObjectDictionary_autogen.h @@ -0,0 +1,634 @@ +#ifndef __DEFINED__SkPdfSoundObjectDictionary +#define __DEFINED__SkPdfSoundObjectDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a sound object +class SkPdfSoundObjectDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSoundObjectDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSoundObjectDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return this;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSoundObjectDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSoundObjectDictionary(const SkPdfSoundObjectDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSoundObjectDictionary& operator=(const SkPdfSoundObjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * Sound for a sound object. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The sampling rate, in samples per second. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + double R() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The number of sound channels. Default value: 1. (See implementation + * note 101 in Appendix H.) +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + long C() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The number of bits per sample value per channel. Default value: 8. +**/ + bool has_B() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", NULL)); + } + + long B() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The encoding format for the sample data: + * Raw Unspecified or unsigned values in the range 0 to 2B - 1 + * Signed Twos-complement values + * muLaw mu-law'encoded samples + * ALaw A-law'encoded samples + * Default value: Raw. +**/ + bool has_E() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", NULL)); + } + + std::string E() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The sound compression format used on the sample data. (Note that this is + * separate from any stream compression specified by the sound object's Filter entry; see + * Table 3.4 on page 38 and Section 3.3, "Filters.") If this entry is absent, then no sound + * compression has been used; the data contains sampled waveforms to be played at R + * samples per second per channel. +**/ + bool has_CO() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", NULL)); + } + + std::string CO() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) Optional parameters specific to the sound compression format used. + * Note: At the time of publication, no standard values have been defined for the CO and CP + * entries. +**/ + bool has_CP() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CP", "", NULL)); + } + + SkPdfObject* CP() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CP", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfSoundObjectDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSourceInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSourceInformationDictionary_autogen.h new file mode 100644 index 0000000000..27d01d50fc --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSourceInformationDictionary_autogen.h @@ -0,0 +1,626 @@ +#ifndef __DEFINED__SkPdfSourceInformationDictionary +#define __DEFINED__SkPdfSourceInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a source information dictionary +class SkPdfSourceInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSourceInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSourceInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return this;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSourceInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSourceInformationDictionary(const SkPdfSourceInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSourceInformationDictionary& operator=(const SkPdfSourceInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) A string or URL alias dictionary (see "URL Alias Dictionaries," below) + * identifying the URLs from which the source data was retrieved. +**/ + bool has_AU() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AU", "", NULL)); + } + + bool isAUAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AU", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getAUAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AU", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isAUADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AU", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getAUAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AU", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A time stamp giving the most recent date and time at which the content + * set's contents were known to be up to date with the source data. +**/ + bool has_TS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TS", "", NULL)); + } + + SkPdfDate TS() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) An expiration stamp giving the date and time at which the content set's + * contents should be considered out of date with the source data. +**/ + bool has_E() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", NULL)); + } + + SkPdfDate E() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Optional) A code indicating the type of form submission, if any, by which the source + * data was accessed (see "Submit-Form Actions" on page 550): + * 0 Not accessed via a form submission + * 1 Accessed via an HTTP GET request + * 2 Accessed via an HTTP POST request + * This entry should be present only in source information dictionaries associated with + * page sets. Default value: 0. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + long S() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; must be an indirect reference) A command dictionary (see "Command Dic- + * tionaries" on page 672) describing the command that caused the source data to be + * retrieved. This entry should be present only in source information dictionaries associ- + * ated with page sets. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfDictionary* C() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfSourceInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSquareOrCircleAnnotation_autogen.h b/experimental/PdfViewer/autogen/SkPdfSquareOrCircleAnnotation_autogen.h new file mode 100644 index 0000000000..1c746d6c25 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSquareOrCircleAnnotation_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfSquareOrCircleAnnotation +#define __DEFINED__SkPdfSquareOrCircleAnnotation + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a square or circle annotation +class SkPdfSquareOrCircleAnnotation : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSquareOrCircleAnnotation_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSquareOrCircleAnnotation_SkPdfObjectType + 1);} +public: + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return this;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSquareOrCircleAnnotation(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSquareOrCircleAnnotation(const SkPdfSquareOrCircleAnnotation& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSquareOrCircleAnnotation& operator=(const SkPdfSquareOrCircleAnnotation& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Square + * or Circle for a square or circle annotation, respectively. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annotation + * is opened. Carriage returns may be used to separate the text into paragraphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A border style dictionary (see Table 8.12 on page 495) specifying the + * line width and dash pattern to be used in drawing the rectangle or ellipse. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * Rect and BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance + * Streams." +**/ + bool has_BS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", NULL)); + } + + SkPdfDictionary* BS() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0 specifying + * the components, in the DeviceRGB color space, of the interior color with which to + * fill the annotation's rectangle or ellipse (see Table 8.19). If this entry is absent, + * the interior of the annotation is left transparent. +**/ + bool has_IC() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IC", "", NULL)); + } + + SkPdfArray* IC() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IC", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfSquareOrCircleAnnotation diff --git a/experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h new file mode 100644 index 0000000000..55ba3475ea --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h @@ -0,0 +1,593 @@ +#ifndef __DEFINED__SkPdfStandardSecurityHandlerDictionary +#define __DEFINED__SkPdfStandardSecurityHandlerDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional encryption dictionary entries for the standard security handler +class SkPdfStandardSecurityHandlerDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStandardSecurityHandlerDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStandardSecurityHandlerDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return this;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStandardSecurityHandlerDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStandardSecurityHandlerDictionary(const SkPdfStandardSecurityHandlerDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStandardSecurityHandlerDictionary& operator=(const SkPdfStandardSecurityHandlerDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) A number specifying which revision of the standard security handler should + * be used to interpret this dictionary. The revision number should be 2 if the document is + * encrypted with a V value less than 2 (see Table 3.13) and does not have any of the access + * permissions set (via the P entry, below) that are designated "Revision 3" in Table 3.15; + * otherwise (that is, if the document is encrypted with a V value greater than 2 or has any + * "Revision 3" access permissions set), this value should be 3. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + double R() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A 32-byte string, based on both the owner and user passwords, that is used in + * computing the encryption key and in determining whether a valid owner password was + * entered. For more information, see "Encryption Key Algorithm" on page 78 and "Pass- + * word Algorithms" on page 79. +**/ + bool has_O() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL)); + } + + std::string O() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A 32-byte string, based on the user password, that is used in determining + * whether to prompt the user for a password and, if so, whether a valid user or owner pass- + * word was entered. For more information, see "Password Algorithms" on page 79. +**/ + bool has_U() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", NULL)); + } + + std::string U() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A set of flags specifying which operations are permitted when the document is + * opened with user access (see Table 3.15). +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + long P() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfStandardSecurityHandlerDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfStandardStructureDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStandardStructureDictionary_autogen.h new file mode 100644 index 0000000000..4f08d5eee0 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStandardStructureDictionary_autogen.h @@ -0,0 +1,617 @@ +#ifndef __DEFINED__SkPdfStandardStructureDictionary +#define __DEFINED__SkPdfStandardStructureDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Standard layout attributes common to all standard structure types +class SkPdfStandardStructureDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStandardStructureDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStandardStructureDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return this;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStandardStructureDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStandardStructureDictionary(const SkPdfStandardStructureDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStandardStructureDictionary& operator=(const SkPdfStandardStructureDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The positioning of the element with respect to the enclosing refer- + * ence area and other content: + * Block Stacked in the block-progression direction within an enclos- + * ing reference area or parent BLSE. + * Inline Packed in the inline-progression direction within an enclos- + * ing BLSE. + * Before Placed so that the before edge of the element's allocation rec- + * tangle (see "Content and Allocation Rectangles" on page + * 648) coincides with that of the nearest enclosing reference + * area. The element may float, if necessary, to achieve the speci- + * fied placement (see note below). The element is treated as a + * block occupying the full extent of the enclosing reference + * area in the inline direction; other content is stacked so as to + * begin at the after edge of the element's allocation rectangle. + * Start Placed so that the start edge of the element's allocation rec- + * tangle (see "Content and Allocation Rectangles" on page + * 648) coincides with that of the nearest enclosing reference + * area. The element may float, if necessary, to achieve the speci- + * fied placement (see note below). Other content that would + * intrude into the element's allocation rectangle is laid out as a + * runaround. + * End Placed so that the end edge of the element's allocation rec- + * tangle (see "Content and Allocation Rectangles" on page + * 648) coincides with that of the nearest enclosing reference + * area. The element may float, if necessary, to achieve the speci- + * fied placement (see note below). Other content that would + * intrude into the element's allocation rectangle is laid out as a + * runaround. + * When applied to an ILSE, any value except Inline causes the element to be + * treated as a BLSE instead. Default value: Inline. + * Note: Elements with Placement values of Before, Start, or End are removed from + * the normal stacking or packing process and allowed to "float" to the specified + * edge of the enclosing reference area or parent BLSE. Multiple such floating ele- + * ments may be positioned adjacent to one another against the specified edge of the + * reference area, or placed serially against the edge, in the order encountered. + * Complex cases such as floating elements that interfere with each other or do not + * fit on the same page may be handled differently by different layout applications; + * Tagged PDF merely identifies the elements as floating and indicates their desired + * placement. +**/ + bool has_Placement() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Placement", "", NULL)); + } + + std::string Placement() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Placement", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The directions of layout progression for packing of ILSEs (inline + * progression) and stacking of BLSEs (block progression): + * LrTb Inline progression from left to right; block progression from + * top to bottom. This is the typical writing mode for Western + * writing systems. + * RlTb Inline progression from right to left; block progression from + * top to bottom. This is the typical writing mode for Arabic + * and Hebrew writing systems. + * TbRl Inline progression from top to bottom; block progression + * from right to left. This is the typical writing mode for Chi- + * nese and Japanese writing systems. + * The specified layout directions apply to the given structure element and all of + * its descendants to any level of nesting. Default value: LrTb. + * For elements that produce multiple columns, the writing mode defines the + * direction of column progression within the reference area: the inline direc- + * tion determines the stacking direction for columns and the default flow + * order of text from column to column. For tables, the writing mode controls + * the layout of rows and columns: table rows (structure type TR) are stacked + * in the block direction, cells within a row (structure type TD) in the inline + * direction. + * Note: The inline-progression direction specified by the writing mode is subject to + * local override within the text being laid out, as described in Unicode Standard + * Annex #9, The Bidirectional Algorithm, available from the Unicode Consor- + * tium (see the Bibliography). +**/ + bool has_WritingMode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WritingMode", "", NULL)); + } + + std::string WritingMode() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WritingMode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfStandardStructureDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfStreamCommonDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStreamCommonDictionary_autogen.h new file mode 100644 index 0000000000..b1f86c5625 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStreamCommonDictionary_autogen.h @@ -0,0 +1,712 @@ +#ifndef __DEFINED__SkPdfStreamCommonDictionary +#define __DEFINED__SkPdfStreamCommonDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all stream dictionaries +class SkPdfStreamCommonDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStreamCommonDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStreamCommonDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return this;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStreamCommonDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStreamCommonDictionary(const SkPdfStreamCommonDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStreamCommonDictionary& operator=(const SkPdfStreamCommonDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The number of bytes from the beginning of the line fol- + * lowing the keyword stream to the last byte just before the keyword + * endstream. (There may be an additional EOL marker, preceding + * endstream, that is not included in the count and is not logically part + * of the stream data.) See "Stream Extent," above, for further discus- + * sion. +**/ + bool has_Length() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", NULL)); + } + + long Length() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of a filter to be applied in processing the stream + * data found between the keywords stream and endstream, or an array + * of such names. Multiple filters should be specified in the order in + * which they are to be applied. +**/ + bool has_Filter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", NULL)); + } + + bool isFilterAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getFilterAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isFilterAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getFilterAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A parameter dictionary, or an array of such dictionaries, + * used by the filters specified by Filter. If there is only one filter and that + * filter has parameters, DecodeParms must be set to the filter's parame- + * ter dictionary unless all the filter's parameters have their default + * values, in which case the DecodeParms entry may be omitted. If there + * are multiple filters and any of the filters has parameters set to non- + * default values, DecodeParms must be an array with one entry for + * each filter: either the parameter dictionary for that filter, or the null + * object if that filter has no parameters (or if all of its parameters have + * their default values). If none of the filters have parameters, or if all + * their parameters have default values, the DecodeParms entry may be + * omitted. (See implementation note 7 in Appendix H.) +**/ + bool has_DecodeParms() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", NULL)); + } + + bool isDecodeParmsADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getDecodeParmsAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isDecodeParmsAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getDecodeParmsAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) The file containing the stream data. If this entry + * is present, the bytes between stream and endstream are ignored, the + * filters are specified by FFilter rather than Filter, and the filter parame- + * ters are specified by FDecodeParms rather than DecodeParms. How- + * ever, the Length entry should still specify the number of those bytes. + * (Usually there are no bytes and Length is 0.) +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Optional; PDF 1.2) The name of a filter to be applied in processing + * the data found in the stream's external file, or an array of such names. + * The same rules apply as for Filter. +**/ + bool has_FFilter() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", NULL)); + } + + bool isFFilterAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getFFilterAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isFFilterAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getFFilterAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A parameter dictionary, or an array of such dic- + * tionaries, used by the filters specified by FFilter. The same rules apply + * as for DecodeParms. +**/ + bool has_FDecodeParms() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", NULL)); + } + + bool isFDecodeParmsADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getFDecodeParmsAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isFDecodeParmsAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getFDecodeParmsAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfStreamCommonDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfStream_autogen.h b/experimental/PdfViewer/autogen/SkPdfStream_autogen.h new file mode 100644 index 0000000000..911db8ded2 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStream_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfStream +#define __DEFINED__SkPdfStream + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfStream : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kStream_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStream_SkPdfObjectType + 1);} +public: + virtual SkPdfStream* asStream() {return this;} + virtual const SkPdfStream* asStream() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfString* asString() {return NULL;} + virtual const SkPdfString* asString() const {return NULL;} + + virtual SkPdfHexString* asHexString() {return NULL;} + virtual const SkPdfHexString* asHexString() const {return NULL;} + +public: +private: +public: + SkPdfStream(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfStream(const SkPdfStream& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStream& operator=(const SkPdfStream& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfStream diff --git a/experimental/PdfViewer/autogen/SkPdfString_autogen.h b/experimental/PdfViewer/autogen/SkPdfString_autogen.h new file mode 100644 index 0000000000..e14199b232 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfString_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfString +#define __DEFINED__SkPdfString + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfObject_autogen.h" + +class SkPdfString : public SkPdfObject { +public: + virtual SkPdfObjectType getType() const { return kString_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kString__End_SkPdfObjectType;} +public: + virtual SkPdfString* asString() {return this;} + virtual const SkPdfString* asString() const {return this;} + +private: + virtual SkPdfArray* asArray() {return NULL;} + virtual const SkPdfArray* asArray() const {return NULL;} + + virtual SkPdfBoolean* asBoolean() {return NULL;} + virtual const SkPdfBoolean* asBoolean() const {return NULL;} + + virtual SkPdfDictionary* asDictionary() {return NULL;} + virtual const SkPdfDictionary* asDictionary() const {return NULL;} + + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + + virtual SkPdfInteger* asInteger() {return NULL;} + virtual const SkPdfInteger* asInteger() const {return NULL;} + + virtual SkPdfNumber* asNumber() {return NULL;} + virtual const SkPdfNumber* asNumber() const {return NULL;} + + virtual SkPdfName* asName() {return NULL;} + virtual const SkPdfName* asName() const {return NULL;} + + virtual SkPdfNull* asNull() {return NULL;} + virtual const SkPdfNull* asNull() const {return NULL;} + + virtual SkPdfReference* asReference() {return NULL;} + virtual const SkPdfReference* asReference() const {return NULL;} + + virtual SkPdfStream* asStream() {return NULL;} + virtual const SkPdfStream* asStream() const {return NULL;} + +public: + const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8();} +private: +public: + SkPdfString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} + + SkPdfString(const SkPdfString& from) : SkPdfObject(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfString& operator=(const SkPdfString& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfString diff --git a/experimental/PdfViewer/autogen/SkPdfStructureElementAccessDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStructureElementAccessDictionary_autogen.h new file mode 100644 index 0000000000..1dc8bb0540 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStructureElementAccessDictionary_autogen.h @@ -0,0 +1,562 @@ +#ifndef __DEFINED__SkPdfStructureElementAccessDictionary +#define __DEFINED__SkPdfStructureElementAccessDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional dictionary entries for structure element access +class SkPdfStructureElementAccessDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStructureElementAccessDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructureElementAccessDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return this;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStructureElementAccessDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStructureElementAccessDictionary(const SkPdfStructureElementAccessDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStructureElementAccessDictionary& operator=(const SkPdfStructureElementAccessDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required for all objects that are structural content items; PDF 1.3) The integer key + * of this object's entry in the structural parent tree. +**/ + bool has_StructParent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", NULL)); + } + + long StructParent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required for all content streams containing marked-content sequences that are + * structural content items; PDF 1.3) The integer key of this object's entry in the + * structural parent tree. + * Note: At most one of these two entries may be present in a given object. An object + * can be either a content item in its entirety or a container for marked-content + * sequences that are content items, but not both. +**/ + bool has_StructParents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", NULL)); + } + + long StructParents() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfStructureElementAccessDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h new file mode 100644 index 0000000000..b7b90da1e1 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h @@ -0,0 +1,767 @@ +#ifndef __DEFINED__SkPdfStructureElementDictionary +#define __DEFINED__SkPdfStructureElementDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a structure element dictionary +class SkPdfStructureElementDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStructureElementDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructureElementDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return this;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStructureElementDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStructureElementDictionary(const SkPdfStructureElementDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStructureElementDictionary& operator=(const SkPdfStructureElementDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be StructElem for a structure element. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The structure type, a name object identifying the nature of the + * structure element and its role within the document, such as a chapter, + * paragraph, or footnote (see Section 9.6.2, "Structure Types"). Names of + * structure types must conform to the guidelines described in Appendix E. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) The structure element that is the + * immediate parent of this one in the structure hierarchy. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + SkPdfDictionary* P() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The element identifier, a string designating this structure + * element. The string must be unique among all elements in the docu- + * ment's structure hierarchy. The IDTree entry in the structure tree root + * (see Table 9.9) defines the correspondence between element identifiers + * and the structure elements they denote. +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + std::string ID() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; must be an indirect reference) A page object representing a + * page on which some or all of the content items designated by the K entry + * are rendered. +**/ + bool has_Pg() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", NULL)); + } + + SkPdfDictionary* Pg() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The contents of this structure element, which may consist of + * one or more marked-content sequences, PDF objects, and other struc- + * ture elements. The value of this entry may be any of the following: + * * An integer marked-content identifier denoting a marked-content + * sequence + * * A marked-content reference dictionary denoting a marked-content + * sequence + * * An object reference dictionary denoting a PDF object + * * A structure element dictionary denoting another structure element + * * An array, each of whose elements is one of the objects listed above + * See Section 9.6.3, "Structure Content" for further discussion of each of + * these forms of representation. +**/ + bool has_K() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", NULL)); + } + + SkPdfObject* K() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The attribute object or objects, if any, associated with this + * structure element. Each attribute object is either a dictionary or a + * stream; the value of this entry may be either a single attribute object or + * an array of such objects together with their revision numbers (see + * Section 9.6.4, "Structure Attributes," and "Attribute Revision Numbers" + * on page 606). +**/ + bool has_A() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); + } + + SkPdfObject* A() const { + SkPdfObject* ret; + if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The attribute class or classes, if any, to which this structure + * element belongs. The value of this entry may be either a single class + * name or an array of class names together with their revision numbers + * (see "Attribute Classes" on page 605 and "Attribute Revision Numbers" + * on page 606). + * Note: If both the A and C entries are present and a given attribute is speci- + * fied by both, the one specified by the A entry takes precedence. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + bool isCAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getCAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isCAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getCAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The current revision number of this structure element (see + * "Attribute Revision Numbers" on page 606). The value must be a non- + * negative integer. Default value: 0. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + long R() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The title of the structure element, a text string representing it + * in human-readable form. The title should characterize the specific struc- + * ture element, such as Chapter 1, rather than merely a generic element + * type, such as Chapter. +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) A language identifier specifying the natural language + * for all text in the structure element except where overridden by language + * specifications for nested structure elements or marked content (see Sec- + * tion 9.8.1, "Natural Language Specification"). If this entry is absent, the + * language (if any) specified in the document catalog applies. +**/ + bool has_Lang() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", NULL)); + } + + std::string Lang() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An alternate description of the structure element and its + * children in human-readable form, useful when extracting the docu- + * ment's contents in support of accessibility to disabled users or for other + * purposes (see Section 9.8.2, "Alternate Descriptions"). +**/ + bool has_Alt() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alt", "", NULL)); + } + + std::string Alt() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alt", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) Text that is an exact replacement for the structure + * element and its children. This replacement text (which should apply to + * as small a piece of content as possible) is useful when extracting the doc- + * ument's contents in support of accessibility to disabled users or for other + * purposes (see Section 9.8.3, "Replacement Text"). +**/ + bool has_ActualText() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ActualText", "", NULL)); + } + + std::string ActualText() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ActualText", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfStructureElementDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfStructureTreeRootDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfStructureTreeRootDictionary_autogen.h new file mode 100644 index 0000000000..83f337ea0f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfStructureTreeRootDictionary_autogen.h @@ -0,0 +1,704 @@ +#ifndef __DEFINED__SkPdfStructureTreeRootDictionary +#define __DEFINED__SkPdfStructureTreeRootDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the structure tree root +class SkPdfStructureTreeRootDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kStructureTreeRootDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructureTreeRootDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return this;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfStructureTreeRootDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfStructureTreeRootDictionary(const SkPdfStructureTreeRootDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfStructureTreeRootDictionary& operator=(const SkPdfStructureTreeRootDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must + * be StructTreeRoot for a structure tree root. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The immediate child or children of the structure tree root in + * the structure hierarchy. The value may be either a dictionary represent- + * ing a single structure element or an array of such dictionaries. +**/ + bool has_K() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", NULL)); + } + + bool isKADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getKAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isKAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getKAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if any structure elements have element identifiers) A name tree + * that maps element identifiers (see Table 9.10) to the structure elements + * they denote. +**/ + bool has_IDTree() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "", NULL)); + } + + bool isIDTreeAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getIDTreeAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isIDTreeATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getIDTreeAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDTree", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if any structure element contains PDF objects or marked-content + * sequences as content items) A number tree (see Section 3.8.5, "Number + * Trees") used in finding the structure elements to which content items + * belong. Each integer key in the number tree corresponds to a single page + * of the document or to an individual object (such as an annotation or an + * XObject) that is a content item in its own right. The integer key is given + * as the value of the StructParent or StructParents entry in that object (see + * "Finding Structure Elements from Content Items" on page 600). The + * form of the associated value depends on the nature of the object: + * * For an object that is a content item in its own right, the value is an in- + * direct reference to the object's parent element (the structure element + * that contains it as a content item). + * * For a page object or content stream containing marked-content + * sequences that are content items, the value is an array of references to + * the parent elements of those marked-content sequences. + * See "Finding Structure Elements from Content Items" on page 600 for + * further discussion. +**/ + bool has_ParentTree() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTree", "", NULL)); + } + + bool isParentTreeANumber() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTree", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + double getParentTreeAsNumber() const { + double ret = 0; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTree", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isParentTreeATree() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTree", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfTree* getParentTreeAsTree() const { + SkPdfTree* ret = NULL; + if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTree", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An integer greater than any key in the parent tree, to be used + * as a key for the next entry added to the tree. +**/ + bool has_ParentTreeNextKey() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTreeNextKey", "", NULL)); + } + + long ParentTreeNextKey() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ParentTreeNextKey", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A dictionary mapping the names of structure types used in + * the document to their approximate equivalents in the set of standard + * structure types (see Section 9.7.4, "Standard Structure Types"). +**/ + bool has_RoleMap() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RoleMap", "", NULL)); + } + + SkPdfDictionary* RoleMap() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RoleMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A dictionary mapping name objects designating attribute + * classes to the corresponding attribute objects or arrays of attribute ob- + * jects (see "Attribute Classes" on page 605). +**/ + bool has_ClassMap() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClassMap", "", NULL)); + } + + SkPdfDictionary* ClassMap() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ClassMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfStructureTreeRootDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfSubmitFormActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfSubmitFormActionDictionary_autogen.h new file mode 100644 index 0000000000..178a223824 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfSubmitFormActionDictionary_autogen.h @@ -0,0 +1,597 @@ +#ifndef __DEFINED__SkPdfSubmitFormActionDictionary +#define __DEFINED__SkPdfSubmitFormActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a submit-form action +class SkPdfSubmitFormActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kSubmitFormActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kSubmitFormActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return this;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfSubmitFormActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfSubmitFormActionDictionary(const SkPdfSubmitFormActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfSubmitFormActionDictionary& operator=(const SkPdfSubmitFormActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must + * be SubmitForm for a submit-form action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A URL file specification (see Section 3.10.4, "URL Speci- + * fications") giving the uniform resource locator (URL) of the script + * at the Web server that will process the submission. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Optional) An array identifying which fields to include in the sub- + * mission or which to exclude, depending on the setting of the + * Include/Exclude flag in the Flags entry (see Table 8.62). Each ele- + * ment of the array is either an indirect reference to a field dictionary + * or (PDF 1.3) a string representing the fully qualified name of a field. + * Elements of both kinds may be mixed in the same array. + * If this entry is omitted, the Include/Exclude flag is ignored; all fields + * in the document's interactive form are submitted except those + * whose NoExport flag (see Table 8.50 on page 532) is set. (Fields + * with no values may also be excluded, depending on the setting of + * the IncludeNoValueFields flag; see Table 8.62.) See the text follow- + * ing Table 8.62 for further discussion. +**/ + bool has_Fields() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", NULL)); + } + + SkPdfArray* Fields() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; inheritable) A set of flags specifying various characteris- + * tics of the action (see Table 8.62). Default value: 0. +**/ + bool has_Flags() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", NULL)); + } + + long Flags() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfSubmitFormActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTableAttributesDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTableAttributesDictionary_autogen.h new file mode 100644 index 0000000000..2fd1fc0676 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTableAttributesDictionary_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfTableAttributesDictionary +#define __DEFINED__SkPdfTableAttributesDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Standard table attributes +class SkPdfTableAttributesDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTableAttributesDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTableAttributesDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return this;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTableAttributesDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTableAttributesDictionary(const SkPdfTableAttributesDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTableAttributesDictionary& operator=(const SkPdfTableAttributesDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The number of rows in the enclosing table that are spanned by the + * cell. The cell expands by adding rows in the block-progression direction speci- + * fied by the table's WritingMode attribute. Default value: 1. +**/ + bool has_RowSpan() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSpan", "", NULL)); + } + + long RowSpan() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "RowSpan", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The number of columns in the enclosing table that are spanned by + * the cell. The cell expands by adding columns in the inline-progression direction + * specified by the table's WritingMode attribute. Default value: 1. +**/ + bool has_ColSpan() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSpan", "", NULL)); + } + + long ColSpan() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColSpan", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfTableAttributesDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTextAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTextAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..a52d7bf115 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTextAnnotationDictionary_autogen.h @@ -0,0 +1,593 @@ +#ifndef __DEFINED__SkPdfTextAnnotationDictionary +#define __DEFINED__SkPdfTextAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a text annotation +class SkPdfTextAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTextAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTextAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return this;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTextAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTextAnnotationDictionary(const SkPdfTextAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTextAnnotationDictionary& operator=(const SkPdfTextAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Text + * for a text annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The text to be displayed in the pop-up window when the annotation + * is opened. Carriage returns may be used to separate the text into paragraphs. +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag specifying whether the annotation should initially be displayed + * open. Default value: false (closed). +**/ + bool has_Open() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", NULL)); + } + + bool Open() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) The name of an icon to be used in displaying the annotation. Viewer + * applications should provide predefined icon appearances for at least the follow- + * ing standard names: + * Comment Key Note + * Help NewParagraph Paragraph + * Insert + * Additional names may be supported as well. Default value: Note. + * Note: The annotation dictionary's AP entry, if present, takes precedence over the + * Name entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams." +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfTextAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTextFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTextFieldDictionary_autogen.h new file mode 100644 index 0000000000..56c6472301 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTextFieldDictionary_autogen.h @@ -0,0 +1,543 @@ +#ifndef __DEFINED__SkPdfTextFieldDictionary +#define __DEFINED__SkPdfTextFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entry specific to a text field +class SkPdfTextFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTextFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTextFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return this;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTextFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTextFieldDictionary(const SkPdfTextFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTextFieldDictionary& operator=(const SkPdfTextFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional; inheritable) The maximum length of the field's text, in characters. +**/ + bool has_MaxLen() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLen", "", NULL)); + } + + long MaxLen() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLen", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfTextFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfThreadActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfThreadActionDictionary_autogen.h new file mode 100644 index 0000000000..3158d856a5 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfThreadActionDictionary_autogen.h @@ -0,0 +1,649 @@ +#ifndef __DEFINED__SkPdfThreadActionDictionary +#define __DEFINED__SkPdfThreadActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a thread action +class SkPdfThreadActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kThreadActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kThreadActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return this;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfThreadActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfThreadActionDictionary(const SkPdfThreadActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfThreadActionDictionary& operator=(const SkPdfThreadActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be Thread + * for a thread action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The file containing the desired thread. If this entry is absent, the + * thread is in the current file. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfFileSpec F() const { + SkPdfFileSpec ret; + if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFileSpec(); + } + +/** (Required) The desired destination thread, specified in one of the following + * forms: + * * An indirect reference to a thread dictionary (see Section 8.3.2, "Articles"). + * In this case, the thread must be in the current file. + * * The index of the thread within the Threads array of its document's catalog + * (see Section 3.6.1, "Document Catalog"). The first thread in the array has + * index 0. + * * The title of the thread, as specified in its thread information dictionary (see + * Table 8.7 on page 484). If two or more threads have the same title, the one + * appearing first in the document catalog's Threads array will be used. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + bool isDADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getDAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isDAInteger() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + long getDAsInteger() const { + long ret = 0; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isDAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getDAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The desired bead in the destination thread, specified in one of the + * following forms: + * * An indirect reference to a bead dictionary (see Section 8.3.2, "Articles"). In + * this case, the thread must be in the current file. + * * The index of the bead within its thread. The first bead in a thread has + * index 0. +**/ + bool has_B() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", NULL)); + } + + bool isBADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getBAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isBAInteger() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + long getBAsInteger() const { + long ret = 0; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfThreadActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfThreadDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfThreadDictionary_autogen.h new file mode 100644 index 0000000000..98ccf376c7 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfThreadDictionary_autogen.h @@ -0,0 +1,573 @@ +#ifndef __DEFINED__SkPdfThreadDictionary +#define __DEFINED__SkPdfThreadDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a thread dictionary +class SkPdfThreadDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kThreadDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kThreadDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfThreadDictionary* asThreadDictionary() {return this;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfThreadDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfThreadDictionary(const SkPdfThreadDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfThreadDictionary& operator=(const SkPdfThreadDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * Thread for a thread dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required; must be an indirect reference) The first bead in the thread. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + SkPdfDictionary* F() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A thread information dictionary containing information about the + * thread, such as its title, author, and creation date. The contents of this dictionary are + * similar to those of the document information dictionary (see Section 9.2.1, "Docu- + * ment Information Dictionary"). +**/ + bool has_I() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL)); + } + + SkPdfDictionary* I() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfThreadDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTransitionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTransitionDictionary_autogen.h new file mode 100644 index 0000000000..64cbeb6d57 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTransitionDictionary_autogen.h @@ -0,0 +1,646 @@ +#ifndef __DEFINED__SkPdfTransitionDictionary +#define __DEFINED__SkPdfTransitionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a transition dictionary +class SkPdfTransitionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTransitionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTransitionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return this;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTransitionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTransitionDictionary(const SkPdfTransitionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTransitionDictionary& operator=(const SkPdfTransitionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * Trans for a transition dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The duration of the transition effect, in seconds. Default value: 1. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + double D() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The transition style to use when moving to this page from another during a + * presentation: + * Split Two lines sweep across the screen, revealing the new page. The lines may + * be either horizontal or vertical and may move inward from the edges of + * the page or outward from the center, as specified by the Dm and M + * entries, respectively. + * Blinds Multiple lines, evenly spaced across the screen, synchronously sweep in + * the same direction to reveal the new page. The lines may be either hori- + * zontal or vertical, as specified by the Dm entry. Horizontal lines move + * downward, vertical lines to the right. + * Box A rectangular box sweeps inward from the edges of the page or outward + * from the center, as specified by the M entry, revealing the new page. + * Wipe A single line sweeps across the screen from one edge to the other in the + * direction specified by the Di entry, revealing the new page. + * Dissolve The old page "dissolves" gradually to reveal the new one. + * Glitter Similar to Dissolve, except that the effect sweeps across the page in a + * wide band moving from one side of the screen to the other in the direc- + * tion specified by the Di entry. + * R The new page simply replaces the old one with no special transition ef- + * fect; the D entry is ignored. + * Default value: R. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; Split and Blinds transition styles only) The dimension in which the specified + * transition effect occurs: + * H Horizontal + * V Vertical + * Default value: H. +**/ + bool has_Dm() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dm", "", NULL)); + } + + std::string Dm() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dm", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; Split and Box transition styles only) The direction of motion for the specified + * transition effect: + * I Inward from the edges of the page + * O Outward from the center of the page + * Default value: I. +**/ + bool has_M() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", NULL)); + } + + std::string M() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; Wipe and Glitter transition styles only) The direction in which the specified + * transition effect moves, expressed in degrees counterclockwise starting from a left-to- + * right direction. (Note that this differs from the page object's Rotate entry, which is + * measured clockwise from the top.) Only the following values are valid: + * 0 Left to right + * 90 Bottom to top (Wipe only) + * 180 Right to left (Wipe only) + * 270 Top to bottom + * 315 Top-left to bottom-right (Glitter only) + * Default value: 0. +**/ + bool has_Di() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Di", "", NULL)); + } + + double Di() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Di", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfTransitionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTransparencyGroupDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTransparencyGroupDictionary_autogen.h new file mode 100644 index 0000000000..e8837676d4 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTransparencyGroupDictionary_autogen.h @@ -0,0 +1,606 @@ +#ifndef __DEFINED__SkPdfTransparencyGroupDictionary +#define __DEFINED__SkPdfTransparencyGroupDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a transparency group attributes dictionary +class SkPdfTransparencyGroupDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTransparencyGroupDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTransparencyGroupDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return this;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTransparencyGroupDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTransparencyGroupDictionary(const SkPdfTransparencyGroupDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTransparencyGroupDictionary& operator=(const SkPdfTransparencyGroupDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The group subtype, which identifies the type of group whose at- + * tributes this dictionary describes; must be Transparency for a transparency + * group. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Sometimes required, as discussed below) The group color space, which is used for + * the following purposes: + * * As the color space into which colors are converted when painted into the + * group + * * As the blending color space in which objects are composited within the group + * (see Section 7.2.3, "Blending Color Space") + * * As the color space of the group as a whole when it in turn is painted as an ob- + * ject onto its backdrop + * The group color space may be any device or CIE-based color space that treats its + * components as independent additive or subtractive values in the range 0.0 to + * 1.0, subject to the restrictions described in Section 7.2.3, "Blending Color + * Space." These restrictions exclude Lab and lightness-chromaticity ICCBased + * color spaces, as well as the special color spaces Pattern, Indexed, Separation, and + * DeviceN. Device color spaces are subject to remapping according to the Default- + * Gray, DefaultRGB, and DefaultCMYK entries in the ColorSpace subdictionary of + * the current resource dictionary (see "Default Color Spaces" on page 194). + * Ordinarily, the CS entry is allowed only for isolated transparency groups (those + * for which I, below, is true) and even then it is optional. However, this entry is re- + * quired in the group attributes dictionary for any transparency group XObject + * that has no parent group or page from which to inherit-in particular, one that + * is the value of the G entry in a soft-mask dictionary of subtype Luminosity (see + * "Soft-Mask Dictionaries" on page 445). + * In addition, it is always permissible to specify CS in the group attributes diction- + * ary associated with a page object, even if I is false or absent. In the normal case in + * which the page is imposed directly on the output medium, the page group is + * effectively isolated regardless of the I value, and the specified CS value is there- + * fore honored. But if the page is in turn used as an element of some other page + * and if the group is non-isolated, CS is ignored and the color space is inherited + * from the actual backdrop with which the page is composited (see Section 7.3.6, + * "Page Group"). +**/ + bool has_CS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CS", "", NULL)); + } + + bool isCSAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getCSAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isCSAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CS", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getCSAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfTransparencyGroupDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTrapNetworkAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTrapNetworkAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..6c7cf0ed4f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTrapNetworkAnnotationDictionary_autogen.h @@ -0,0 +1,634 @@ +#ifndef __DEFINED__SkPdfTrapNetworkAnnotationDictionary +#define __DEFINED__SkPdfTrapNetworkAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a trap network annotation +class SkPdfTrapNetworkAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTrapNetworkAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTrapNetworkAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return this;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTrapNetworkAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTrapNetworkAnnotationDictionary(const SkPdfTrapNetworkAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTrapNetworkAnnotationDictionary& operator=(const SkPdfTrapNetworkAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be + * TrapNet for a trap network annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) An alternate description of the annotation's contents in + * human-readable form, useful when extracting the document's contents in + * support of accessibility to disabled users or for other purposes (see Section + * 9.8.2, "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if Version and AnnotStates are absent; must be absent if Version and + * AnnotStates are present; PDF 1.4) The date and time (see Section 3.8.2, + * "Dates") when the trap network was most recently modified. +**/ + bool has_LastModified() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", NULL)); + } + + SkPdfDate LastModified() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Required if AnnotStates is present; must be absent if LastModified is present) + * An unordered array of all objects present in the page description at the time + * the trap networks were generated and that, if changed, could affect the + * appearance of the page. If present, the array must include the following + * objects: + * * All content streams identified in the page object's Contents entry (see + * "Page Objects" on page 87) + * * All resource objects (other than procedure sets) in the page's resource dic- + * tionary (see Section 3.7.2, "Resource Dictionaries") + * * All resource objects (other than procedure sets) in the resource diction- + * aries of any form XObjects on the page (see Section 4.9, "Form XObjects") + * * All OPI dictionaries associated with XObjects on the page (see Section + * 9.10.6, "Open Prepress Interface (OPI)") +**/ + bool has_Version() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", NULL)); + } + + SkPdfArray* Version() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if Version is present; must be absent if LastModified is present) An + * array of name objects representing the appearance states (value of the AS + * entry) for annotations associated with the page. The appearance states must + * be listed in the same order as the annotations in the page's Annots array (see + * "Page Objects" on page 87). For an annotation with no AS entry, the corre- + * sponding array element should be null. No appearance state should be + * included for the trap network annotation itself. +**/ + bool has_AnnotStates() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AnnotStates", "", NULL)); + } + + SkPdfArray* AnnotStates() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AnnotStates", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of font dictionaries representing fonts that were "fauxed" + * (replaced by substitute fonts) during the generation of trap networks for the + * page. +**/ + bool has_FontFauxing() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFauxing", "", NULL)); + } + + SkPdfArray* FontFauxing() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFauxing", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfTrapNetworkAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h new file mode 100644 index 0000000000..289058c3c9 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTrapNetworkAppearanceStreamDictionary_autogen.h @@ -0,0 +1,602 @@ +#ifndef __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary +#define __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a trap network appearance stream +class SkPdfTrapNetworkAppearanceStreamDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kTrapNetworkAppearanceStreamDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTrapNetworkAppearanceStreamDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return this;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTrapNetworkAppearanceStreamDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfTrapNetworkAppearanceStreamDictionary(const SkPdfTrapNetworkAppearanceStreamDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTrapNetworkAppearanceStreamDictionary& operator=(const SkPdfTrapNetworkAppearanceStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The name of the process color model that was assumed + * when this trap network was created; equivalent to the PostScript + * page device parameter ProcessColorModel (see Section 6.2.5 of the + * PostScript Language Reference, Third Edition). Valid values are + * DeviceGray, DeviceRGB, DeviceCMYK, DeviceCMY, DeviceRGBK, + * and DeviceN. +**/ + bool has_PCM() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PCM", "", NULL)); + } + + std::string PCM() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PCM", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of names identifying the colorants that were + * assumed when this network was created; equivalent to the Post- + * Script page device parameter of the same name (see Section 6.2.5 of + * the PostScript Language Reference, Third Edition). Colorants im- + * plied by the process color model PCM are available automatically + * and need not be explicitly declared. If this entry is absent, the + * colorants implied by PCM are assumed. +**/ + bool has_SeparationColorNames() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SeparationColorNames", "", NULL)); + } + + SkPdfArray* SeparationColorNames() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SeparationColorNames", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of indirect references to TrapRegion objects + * defining the page's trapping zones and the associated trapping + * parameters, as described in Adobe Technical Note #5620, Portable + * Job Ticket Format. These references are to objects comprising + * portions of a PJTF job ticket that is embedded in the PDF file. + * When the trapping zones and parameters are defined by an external + * job ticket (or by some other means, such as with JDF), this entry is + * absent. +**/ + bool has_TrapRegions() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapRegions", "", NULL)); + } + + SkPdfArray* TrapRegions() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapRegions", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A human-readable text string that applications can use + * to describe this trap network to the user (for example, to allow + * switching between trap networks). +**/ + bool has_TrapStyles() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapStyles", "", NULL)); + } + + std::string TrapStyles() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrapStyles", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfTrapNetworkAppearanceStreamDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfTrueTypeFontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfTrueTypeFontDictionary_autogen.h new file mode 100644 index 0000000000..8c2297fc8f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfTrueTypeFontDictionary_autogen.h @@ -0,0 +1,48 @@ +#ifndef __DEFINED__SkPdfTrueTypeFontDictionary +#define __DEFINED__SkPdfTrueTypeFontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfType1FontDictionary_autogen.h" + +class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary { +public: + virtual SkPdfObjectType getType() const { return kTrueTypeFontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kTrueTypeFontDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return this;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return this;} + +private: + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfTrueTypeFontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} + + SkPdfTrueTypeFontDictionary(const SkPdfTrueTypeFontDictionary& from) : SkPdfType1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfTrueTypeFontDictionary& operator=(const SkPdfTrueTypeFontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfTrueTypeFontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.h new file mode 100644 index 0000000000..c556575763 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.h @@ -0,0 +1,163 @@ +#ifndef __DEFINED__SkPdfType0FontDictionary +#define __DEFINED__SkPdfType0FontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfFontDictionary_autogen.h" + +// Entries in a Type 0 font dictionary +class SkPdfType0FontDictionary : public SkPdfFontDictionary { +public: + virtual SkPdfObjectType getType() const { return kType0FontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType0FontDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return this;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return this;} + +private: + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType0FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} + + SkPdfType0FontDictionary(const SkPdfType0FontDictionary& from) : SkPdfFontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType0FontDictionary& operator=(const SkPdfType0FontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * Font for a font dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of font; must be Type0 for a Type 0 font. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The PostScript name of the font. In principle, this is an arbitrary + * name, since there is no font program associated directly with a Type 0 font + * dictionary. The conventions described here ensure maximum compatibility + * with existing Acrobat products. + * If the descendant is a Type 0 CIDFont, this name should be the concatenation + * of the CIDFont's BaseFont name, a hyphen, and the CMap name given in the + * Encoding entry (or the CMapName entry in the CMap program itself). If the + * descendant is a Type 2 CIDFont, this name should be the same as the + * CIDFont's BaseFont name. +**/ + bool has_BaseFont() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", NULL)); + } + + std::string BaseFont() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The name of a predefined CMap, or a stream containing a CMap + * program, that maps character codes to font numbers and CIDs. If the descen- + * dant is a Type 2 CIDFont whose associated TrueType font program is not em- + * bedded in the PDF file, the Encoding entry must be a predefined CMap name + * (see "Glyph Selection in CIDFonts" on page 339). +**/ + bool has_Encoding() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", NULL)); + } + + bool isEncodingAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getEncodingAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isEncodingAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getEncodingAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An array specifying one or more fonts or CIDFonts that are + * descendants of this composite font. This array is indexed by the font number + * that is obtained by mapping a character code through the CMap specified in + * the Encoding entry. + * Note: In all PDF versions up to and including PDF 1.4, DescendantFonts must + * be a one-element array containing a CIDFont dictionary. +**/ + bool has_DescendantFonts() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DescendantFonts", "", NULL)); + } + + SkPdfArray* DescendantFonts() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DescendantFonts", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A stream containing a CMap file that maps character codes to + * Unicode values (see Section 5.9, "ToUnicode CMaps"). +**/ + bool has_ToUnicode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", NULL)); + } + + SkPdfStream* ToUnicode() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType0FontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType0FunctionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType0FunctionDictionary_autogen.h new file mode 100644 index 0000000000..a414a474a2 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType0FunctionDictionary_autogen.h @@ -0,0 +1,604 @@ +#ifndef __DEFINED__SkPdfType0FunctionDictionary +#define __DEFINED__SkPdfType0FunctionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 0 function dictionary +class SkPdfType0FunctionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType0FunctionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType0FunctionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return this;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType0FunctionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType0FunctionDictionary(const SkPdfType0FunctionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType0FunctionDictionary& operator=(const SkPdfType0FunctionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of m positive integers specifying the number of samples + * in each input dimension of the sample table. +**/ + bool has_Size() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", NULL)); + } + + SkPdfArray* Size() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The number of bits used to represent each sample. (If the function + * has multiple output values, each one occupies BitsPerSample bits.) Valid + * values are 1, 2, 4, 8, 12, 16, 24, and 32. +**/ + bool has_BitsPerSample() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerSample", "", NULL)); + } + + long BitsPerSample() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerSample", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The order of interpolation between samples. Valid values are 1 + * and 3, specifying linear and cubic spline interpolation, respectively. (See im- + * plementation note 26 in Appendix H.) Default value: 1. +**/ + bool has_Order() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Order", "", NULL)); + } + + long Order() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Order", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) An array of 2 x m numbers specifying the linear mapping of input + * values into the domain of the function's sample table. Default value: + * [0 (Size0 - 1) 0 (Size1 - 1) ...]. +**/ + bool has_Encode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", "", NULL)); + } + + SkPdfArray* Encode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of 2 x n numbers specifying the linear mapping of sam- + * ple values into the range appropriate for the function's output values. Default + * value: same as the value of Range. +**/ + bool has_Decode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); + } + + SkPdfArray* Decode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType0FunctionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType10HalftoneDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType10HalftoneDictionary_autogen.h new file mode 100644 index 0000000000..30e62153dd --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType10HalftoneDictionary_autogen.h @@ -0,0 +1,635 @@ +#ifndef __DEFINED__SkPdfType10HalftoneDictionary +#define __DEFINED__SkPdfType10HalftoneDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 10 halftone dictionary +class SkPdfType10HalftoneDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType10HalftoneDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType10HalftoneDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return this;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType10HalftoneDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType10HalftoneDictionary(const SkPdfType10HalftoneDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType10HalftoneDictionary& operator=(const SkPdfType10HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be Halftone for a halftone dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the halftone type that this dictionary + * describes; must be 10 for this type of halftone. +**/ + bool has_HalftoneType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); + } + + long HalftoneType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of the halftone dictionary. +**/ + bool has_HalftoneName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); + } + + std::string HalftoneName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The side of square X, in device pixels; see below. +**/ + bool has_Xsquare() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Xsquare", "", NULL)); + } + + long Xsquare() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Xsquare", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The side of square Y, in device pixels; see below. +**/ + bool has_Ysquare() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ysquare", "", NULL)); + } + + long Ysquare() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ysquare", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A transfer function, which overrides the current transfer + * function in the graphics state for the same component. This entry is + * required if the dictionary is a component of a type 5 halftone (see + * "Type 5 Halftones" on page 400) and represents either a nonprimary + * or nonstandard primary color component (see Section 6.3, "Transfer + * Functions"). The name Identity may be used to specify the identity + * function. +**/ + bool has_TransferFunction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", NULL)); + } + + bool isTransferFunctionAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTransferFunctionAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTransferFunctionAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTransferFunctionAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfType10HalftoneDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType16HalftoneDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType16HalftoneDictionary_autogen.h new file mode 100644 index 0000000000..4eacd844aa --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType16HalftoneDictionary_autogen.h @@ -0,0 +1,667 @@ +#ifndef __DEFINED__SkPdfType16HalftoneDictionary +#define __DEFINED__SkPdfType16HalftoneDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 16 halftone dictionary +class SkPdfType16HalftoneDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType16HalftoneDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType16HalftoneDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return this;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType16HalftoneDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType16HalftoneDictionary(const SkPdfType16HalftoneDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType16HalftoneDictionary& operator=(const SkPdfType16HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be Halftone for a halftone dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the halftone type that this dictionary + * describes; must be 16 for this type of halftone. +**/ + bool has_HalftoneType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); + } + + long HalftoneType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of the halftone dictionary. +**/ + bool has_HalftoneName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); + } + + std::string HalftoneName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The width of the first (or only) rectangle in the threshold + * array, in device pixels. +**/ + bool has_Width() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL)); + } + + long Width() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The height of the first (or only) rectangle in the threshold + * array, in device pixels. +**/ + bool has_Height() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL)); + } + + long Height() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The width of the optional second rectangle in the threshold + * array, in device pixels. If this entry is present, the Height2 entry must + * be present as well; if this entry is absent, the Height2 entry must also be + * absent and the threshold array has only one rectangle. +**/ + bool has_Width2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width2", "", NULL)); + } + + long Width2() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The height of the optional second rectangle in the threshold + * array, in device pixels. +**/ + bool has_Height2() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height2", "", NULL)); + } + + long Height2() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height2", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A transfer function, which overrides the current transfer + * function in the graphics state for the same component. This entry is + * required if the dictionary is a component of a type 5 halftone (see + * "Type 5 Halftones," below) and represents either a nonprimary or + * nonstandard primary color component (see Section 6.3, "Transfer + * Functions"). The name Identity may be used to specify the identity + * function. +**/ + bool has_TransferFunction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", NULL)); + } + + bool isTransferFunctionAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTransferFunctionAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTransferFunctionAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTransferFunctionAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfType16HalftoneDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType1FontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType1FontDictionary_autogen.h new file mode 100644 index 0000000000..bb5382b9f3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType1FontDictionary_autogen.h @@ -0,0 +1,219 @@ +#ifndef __DEFINED__SkPdfType1FontDictionary +#define __DEFINED__SkPdfType1FontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfFontDictionary_autogen.h" + +// Entries in a Type 1 font dictionary +class SkPdfType1FontDictionary : public SkPdfFontDictionary { +public: + virtual SkPdfObjectType getType() const { return kType1FontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kType1FontDictionary__End_SkPdfObjectType;} +public: + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return this;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return this;} + +private: + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType1FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} + + SkPdfType1FontDictionary(const SkPdfType1FontDictionary& from) : SkPdfFontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType1FontDictionary& operator=(const SkPdfType1FontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * Font for a font dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of font; must be Type1 for a Type 1 font. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required in PDF 1.0; optional otherwise) The name by which this font is ref- + * erenced in the Font subdictionary of the current resource dictionary. + * Note: This entry is obsolescent and its use is no longer recommended. (See + * implementation note 42 in Appendix H.) +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The PostScript name of the font. For Type 1 fonts, this is usually + * the value of the FontName entry in the font program; for more information, + * see Section 5.2 of the PostScript Language Reference, Third Edition. The Post- + * Script name of the font can be used to find the font's definition in the viewer + * application or its environment. It is also the name that will be used when + * printing to a PostScript output device. +**/ + bool has_BaseFont() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", NULL)); + } + + std::string BaseFont() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required except for the standard 14 fonts) The first character code defined in + * the font's Widths array. +**/ + bool has_FirstChar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FirstChar", "", NULL)); + } + + long FirstChar() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FirstChar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required except for the standard 14 fonts) The last character code defined in + * the font's Widths array. +**/ + bool has_LastChar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastChar", "", NULL)); + } + + long LastChar() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastChar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required except for the standard 14 fonts; indirect reference preferred) An array + * of (LastChar - FirstChar + 1) widths, each element being the glyph width for + * the character whose code is FirstChar plus the array index. For character + * codes outside the range FirstChar to LastChar, the value of MissingWidth from + * the FontDescriptor entry for this font is used. The glyph widths are measured + * in units in which 1000 units corresponds to 1 unit in text space. These widths + * must be consistent with the actual widths given in the font program itself. + * (See implementation note 43 in Appendix H.) For more information on + * glyph widths and other glyph metrics, see Section 5.1.3, "Glyph Positioning + * and Metrics." +**/ + bool has_Widths() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Widths", "", NULL)); + } + + SkPdfArray* Widths() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Widths", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required except for the standard 14 fonts; must be an indirect reference) A font + * descriptor describing the font's metrics other than its glyph widths (see Sec- + * tion 5.7, "Font Descriptors"). + * Note: For the standard 14 fonts, the entries FirstChar, LastChar, Widths, and + * FontDescriptor must either all be present or all absent. Ordinarily, they are ab- + * sent; specifying them enables a standard font to be overridden (see "Standard + * Type 1 Fonts," below). +**/ + bool has_FontDescriptor() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", NULL)); + } + + SkPdfDictionary* FontDescriptor() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A specification of the font's character encoding, if different from + * its built-in encoding. The value of Encoding may be either the name of a pre- + * defined encoding (MacRomanEncoding, MacExpertEncoding, or WinAnsi- + * Encoding, as described in Appendix D) or an encoding dictionary that + * specifies differences from the font's built-in encoding or from a specified pre- + * defined encoding (see Section 5.5.5, "Character Encoding"). +**/ + bool has_Encoding() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", NULL)); + } + + bool isEncodingAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getEncodingAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isEncodingADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getEncodingAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A stream containing a CMap file that maps character + * codes to Unicode values (see Section 5.9, "ToUnicode CMaps"). +**/ + bool has_ToUnicode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", NULL)); + } + + SkPdfStream* ToUnicode() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType1FontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType1FormDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType1FormDictionary_autogen.h new file mode 100644 index 0000000000..e9756498a6 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType1FormDictionary_autogen.h @@ -0,0 +1,282 @@ +#ifndef __DEFINED__SkPdfType1FormDictionary +#define __DEFINED__SkPdfType1FormDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfXObjectDictionary_autogen.h" + +// Additional entries specific to a type 1 form dictionary +class SkPdfType1FormDictionary : public SkPdfXObjectDictionary { +public: + virtual SkPdfObjectType getType() const { return kType1FormDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1FormDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return this;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return this;} + +private: + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType1FormDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfXObjectDictionary(podofoDoc, podofoObj) {} + + SkPdfType1FormDictionary(const SkPdfType1FormDictionary& from) : SkPdfXObjectDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType1FormDictionary& operator=(const SkPdfType1FormDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be XObject for a form XObject. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of XObject that this dictionary describes; must be Form + * for a form XObject. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A code identifying the type of form XObject that this dictionary + * describes. The only valid value defined at the time of publication is 1. Default + * value: 1. +**/ + bool has_FormType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FormType", "", NULL)); + } + + long FormType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FormType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required in PDF 1.0; optional otherwise) The name by which this form + * XObject is referenced in the XObject subdictionary of the current resource + * dictionary (see Section 3.7.2, "Resource Dictionaries"). + * Note: This entry is obsolescent and its use is no longer recommended. (See + * implementation note 38 in Appendix H.) +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required if PieceInfo is present; optional otherwise; PDF 1.3) The date and + * time (see Section 3.8.2, "Dates") when the form XObject's contents were + * most recently modified. If a page-piece dictionary (PieceInfo) is present, the + * modification date is used to ascertain which of the application data diction- + * aries it contains correspond to the current content of the form (see Section + * 9.4, "Page-Piece Dictionaries"). +**/ + bool has_LastModified() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", NULL)); + } + + SkPdfDate LastModified() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModified", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +/** (Required) An array of four numbers in the form coordinate system (see + * below), giving the coordinates of the left, bottom, right, and top edges, + * respectively, of the form XObject's bounding box. These boundaries are used + * to clip the form XObject and to determine its size for caching. +**/ + bool has_BBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL)); + } + + SkRect* BBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of six numbers specifying the form matrix, which maps + * form space into user space (see Section 4.2.3, "Transformation Matrices"). + * Default value: the identity matrix [1 0 0 1 0 0]. +**/ + bool has_Matrix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", NULL)); + } + + SkMatrix* Matrix() const { + SkMatrix* ret; + if (SkMatrixFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional but strongly recommended; PDF 1.2) A dictionary specifying any + * resources (such as fonts and images) required by the form XObject (see Sec- + * tion 3.7, "Content Streams and Resources"). + * In PDF 1.1 and earlier, all named resources used in the form XObject must be + * included in the resource dictionary of each page object on which the form + * XObject appears, whether or not they also appear in the resource dictionary + * of the form XObject itself. It can be useful to specify these resources in the + * form XObject's own resource dictionary as well, in order to determine which + * resources are used inside the form XObject. If a resource is included in both + * dictionaries, it should have the same name in both locations. + * In PDF 1.2 and later versions, form XObjects can be independent of the + * content streams in which they appear, and this is strongly recommended + * although not required. In an independent form XObject, the resource dic- + * tionary of the form XObject is required and contains all named resources + * used by the form XObject. These resources are not "promoted" to the outer + * content stream's resource dictionary, although that stream's resource diction- + * ary will refer to the form XObject itself. +**/ + bool has_Resources() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", NULL)); + } + + SkPdfResourceDictionary* Resources() const { + SkPdfResourceDictionary* ret; + if (DictionaryFromDictionary2(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A group attributes dictionary indicating that the contents + * of the form XObject are to be treated as a group and specifying the attributes + * of that group (see Section 4.9.2, "Group XObjects"). + * Note: If a Ref entry (see below) is present, the group attributes also apply to the + * external page imported by that entry. This allows such an imported page to be + * treated as a group without further modification. +**/ + bool has_Group() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Group", "", NULL)); + } + + SkPdfDictionary* Group() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Group", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A reference dictionary identifying a page to be imported + * from another PDF file, and for which the form XObject serves as a proxy (see + * Section 4.9.3, "Reference XObjects"). +**/ + bool has_Ref() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ref", "", NULL)); + } + + SkPdfDictionary* Ref() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ref", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.4) A metadata stream containing metadata for the form + * XObject (see Section 9.2.2, "Metadata Streams"). +**/ + bool has_Metadata() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL)); + } + + SkPdfStream* Metadata() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.3) A page-piece dictionary associated with the form + * XObject (see Section 9.4, "Page-Piece Dictionaries"). +**/ + bool has_PieceInfo() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PieceInfo", "", NULL)); + } + + SkPdfDictionary* PieceInfo() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PieceInfo", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required if the form XObject is a structural content item; PDF 1.3) The integer + * key of the form XObject's entry in the structural parent tree (see "Finding + * Structure Elements from Content Items" on page 600). +**/ + bool has_StructParent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", NULL)); + } + + long StructParent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required if the form XObject contains marked-content sequences that are struc- + * tural content items; PDF 1.3) The integer key of the form XObject's entry in + * the structural parent tree (see "Finding Structure Elements from Content + * Items" on page 600). + * Note: At most one of the entries StructParent or StructParents may be present. A + * form XObject can be either a content item in its entirety or a container for + * marked-content sequences that are content items, but not both. +**/ + bool has_StructParents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", NULL)); + } + + long StructParents() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional; PDF 1.2) An OPI version dictionary for the form XObject (see + * Section 9.10.6, "Open Prepress Interface (OPI)"). +**/ + bool has_OPI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", NULL)); + } + + SkPdfDictionary* OPI() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType1FormDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType1HalftoneDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType1HalftoneDictionary_autogen.h new file mode 100644 index 0000000000..0f229d908b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType1HalftoneDictionary_autogen.h @@ -0,0 +1,689 @@ +#ifndef __DEFINED__SkPdfType1HalftoneDictionary +#define __DEFINED__SkPdfType1HalftoneDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a type 1 halftone dictionary +class SkPdfType1HalftoneDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType1HalftoneDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1HalftoneDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return this;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType1HalftoneDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType1HalftoneDictionary(const SkPdfType1HalftoneDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType1HalftoneDictionary& operator=(const SkPdfType1HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be Halftone for a halftone dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the halftone type that this dictionary + * describes; must be 1 for this type of halftone. +**/ + bool has_HalftoneType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); + } + + long HalftoneType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of the halftone dictionary. +**/ + bool has_HalftoneName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); + } + + std::string HalftoneName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The screen frequency, measured in halftone cells per inch in + * device space. +**/ + bool has_Frequency() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Frequency", "", NULL)); + } + + double Frequency() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Frequency", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The screen angle, in degrees of rotation counterclockwise + * with respect to the device coordinate system. (Note that most output + * devices have left-handed device spaces; on such devices, a counter- + * clockwise angle in device space will correspond to a clockwise angle in + * default user space and on the physical medium.) +**/ + bool has_Angle() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Angle", "", NULL)); + } + + double Angle() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Angle", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A function object defining the order in which device pixels + * within a screen cell are adjusted for different gray levels, or the name of + * one of the predefined spot functions (see Table 6.1 on page 385). +**/ + bool has_SpotFunction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction", "", NULL)); + } + + bool isSpotFunctionAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getSpotFunctionAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isSpotFunctionAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getSpotFunctionAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag specifying whether to invoke a special halftone al- + * gorithm that is extremely precise, but computationally expensive; see + * below for further discussion. Default value: false. +**/ + bool has_AccurateScreens() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AccurateScreens", "", NULL)); + } + + bool AccurateScreens() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AccurateScreens", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A transfer function, which overrides the current transfer + * function in the graphics state for the same component. This entry is + * required if the dictionary is a component of a type 5 halftone (see + * "Type 5 Halftones" on page 400) and represents either a nonprimary + * or nonstandard primary color component (see Section 6.3, "Transfer + * Functions"). The name Identity may be used to specify the identity + * function. +**/ + bool has_TransferFunction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", NULL)); + } + + bool isTransferFunctionAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTransferFunctionAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTransferFunctionAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTransferFunctionAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfType1HalftoneDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType1PatternDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType1PatternDictionary_autogen.h new file mode 100644 index 0000000000..d191df0db2 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType1PatternDictionary_autogen.h @@ -0,0 +1,581 @@ +#ifndef __DEFINED__SkPdfType1PatternDictionary +#define __DEFINED__SkPdfType1PatternDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 1 pattern dictionary +class SkPdfType1PatternDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType1PatternDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1PatternDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return this;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType1PatternDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType1PatternDictionary(const SkPdfType1PatternDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType1PatternDictionary& operator=(const SkPdfType1PatternDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Pattern for a pattern dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the type of pattern that this dictionary de- + * scribes; must be 1 for a tiling pattern. +**/ + bool has_PatternType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType", "", NULL)); + } + + long PatternType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A code that determines how the color of the pattern cell is to be + * specified: + * 1 Colored tiling pattern. The pattern's content stream itself specifies the + * colors used to paint the pattern cell. When the content stream begins + * execution, the current color is the one that was initially in effect in the + * pattern's parent content stream. (This is similar to the definition of the + * pattern matrix; see Section 4.6.1, "General Properties of Patterns.") + * 2 Uncolored tiling pattern. The pattern's content stream does not speci- + * fy any color information. Instead, the entire pattern cell is painted + * with a separately specified color each time the pattern is used. Essen- + * tially, the content stream describes a stencil through which the cur- +**/ + bool has_PaintType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PaintType", "", NULL)); + } + + long PaintType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PaintType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfType1PatternDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType1ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType1ShadingDictionary_autogen.h new file mode 100644 index 0000000000..6d2b740936 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType1ShadingDictionary_autogen.h @@ -0,0 +1,97 @@ +#ifndef __DEFINED__SkPdfType1ShadingDictionary +#define __DEFINED__SkPdfType1ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 1 shading dictionary +class SkPdfType1ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType1ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return this;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return this;} + +private: + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType1ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType1ShadingDictionary(const SkPdfType1ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType1ShadingDictionary& operator=(const SkPdfType1ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) An array of four numbers [ xmin xmax ymin ymax ] specifying the rec- + * tangular domain of coordinates over which the color function(s) are defined. + * Default value: [0.0 1.0 0.0 1.0]. +**/ + bool has_Domain() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL)); + } + + SkPdfArray* Domain() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of six numbers specifying a transformation matrix mapping + * the coordinate space specified by the Domain entry into the shading's target co- + * ordinate space. For example, to map the domain rectangle [0.0 1.0 0.0 1.0] to a + * 1-inch square with lower-left corner at coordinates (100, 100) in default user + * space, the Matrix value would be [72 0 0 72 100 100]. Default value: the iden- + * tity matrix [1 0 0 1 0 0]. +**/ + bool has_Matrix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", NULL)); + } + + SkPdfArray* Matrix() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A 2-in, n-out function or an array of n 2-in, 1-out functions (where n + * is the number of color components in the shading dictionary's color space). + * Each function's domain must be a superset of that of the shading dictionary. If + * the value returned by the function for a given color component is out of range, it + * will be adjusted to the nearest valid value. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +}; + +#endif // __DEFINED__SkPdfType1ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType2FunctionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType2FunctionDictionary_autogen.h new file mode 100644 index 0000000000..accbfd17b9 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType2FunctionDictionary_autogen.h @@ -0,0 +1,572 @@ +#ifndef __DEFINED__SkPdfType2FunctionDictionary +#define __DEFINED__SkPdfType2FunctionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 2 function dictionary +class SkPdfType2FunctionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType2FunctionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType2FunctionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return this;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType2FunctionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType2FunctionDictionary(const SkPdfType2FunctionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType2FunctionDictionary& operator=(const SkPdfType2FunctionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) An array of n numbers defining the function result when x = 0.0 (hence the "0" + * in the name). Default value: [0.0]. +**/ + bool has_C0() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C0", "", NULL)); + } + + SkPdfArray* C0() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C0", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of n numbers defining the function result when x = 1.0 (hence the "1" + * in the name). Default value: [1.0]. +**/ + bool has_C1() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C1", "", NULL)); + } + + SkPdfArray* C1() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C1", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The interpolation exponent. Each input value x will return n values, given by + * yj = C0j + xN x (C1j - C0j ), for 0 <= j < n. +**/ + bool has_N() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL)); + } + + double N() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfType2FunctionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType2PatternDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType2PatternDictionary_autogen.h new file mode 100644 index 0000000000..d88fa8a733 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType2PatternDictionary_autogen.h @@ -0,0 +1,625 @@ +#ifndef __DEFINED__SkPdfType2PatternDictionary +#define __DEFINED__SkPdfType2PatternDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a type 2 pattern dictionary +class SkPdfType2PatternDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType2PatternDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType2PatternDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return this;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType2PatternDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType2PatternDictionary(const SkPdfType2PatternDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType2PatternDictionary& operator=(const SkPdfType2PatternDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Pattern for a pattern dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + long Type() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A code identifying the type of pattern that this dictionary de- + * scribes; must be 2 for a shading pattern. +**/ + bool has_PatternType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType", "", NULL)); + } + + long PatternType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) A shading object (see below) defining the shading pattern's gradient + * fill. The contents of the dictionary consist of the entries in Table 4.25 on page + * 234, plus those in one of Tables 4.26 to 4.31 on pages 237 to 253. +**/ + bool has_Shading() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", NULL)); + } + + bool isShadingADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getShadingAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isShadingAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getShadingAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of six numbers specifying the pattern matrix (see Section + * 4.6.1, "General Properties of Patterns"). Default value: the identity matrix + * [1 0 0 1 0 0]. +**/ + bool has_Matrix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", NULL)); + } + + SkPdfArray* Matrix() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A graphics state parameter dictionary (see Section 4.3.4, "Graph- + * ics State Parameter Dictionaries") containing graphics state parameters to be + * put into effect temporarily while the shading pattern is painted. Any parame- + * ters that are not so specified are inherited from the graphics state that was in + * effect at the beginning of the content stream in which the pattern is defined + * as a resource. +**/ + bool has_ExtGState() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGState", "", NULL)); + } + + SkPdfDictionary* ExtGState() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGState", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType2PatternDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType2ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType2ShadingDictionary_autogen.h new file mode 100644 index 0000000000..8b5667fefa --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType2ShadingDictionary_autogen.h @@ -0,0 +1,112 @@ +#ifndef __DEFINED__SkPdfType2ShadingDictionary +#define __DEFINED__SkPdfType2ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 2 shading dictionary +class SkPdfType2ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType2ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType2ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return this;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return this;} + +private: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType2ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType2ShadingDictionary(const SkPdfType2ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType2ShadingDictionary& operator=(const SkPdfType2ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of four numbers [ x0 y0 x1 y1 ] specifying the starting and + * ending coordinates of the axis, expressed in the shading's target coordinate + * space. +**/ + bool has_Coords() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", NULL)); + } + + SkPdfArray* Coords() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a + * parametric variable t. The variable is considered to vary linearly between these + * two values as the color gradient varies between the starting and ending points of + * the axis. The variable t becomes the input argument to the color function(s). + * Default value: [0.0 1.0]. +**/ + bool has_Domain() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL)); + } + + SkPdfArray* Domain() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n + * is the number of color components in the shading dictionary's color space). The + * function(s) are called with values of the parametric variable t in the domain de- + * fined by the Domain entry. Each function's domain must be a superset of that of + * the shading dictionary. If the value returned by the function for a given color + * component is out of range, it will be adjusted to the nearest valid value. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +/** (Optional) An array of two boolean values specifying whether to extend the + * shading beyond the starting and ending points of the axis, respectively. Default + * value: [false false]. +**/ + bool has_Extend() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", NULL)); + } + + SkPdfArray* Extend() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType2ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType3FontDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType3FontDictionary_autogen.h new file mode 100644 index 0000000000..079930e0e9 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType3FontDictionary_autogen.h @@ -0,0 +1,246 @@ +#ifndef __DEFINED__SkPdfType3FontDictionary +#define __DEFINED__SkPdfType3FontDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfType1FontDictionary_autogen.h" + +// Entries in a Type 3 font dictionary +class SkPdfType3FontDictionary : public SkPdfType1FontDictionary { +public: + virtual SkPdfObjectType getType() const { return kType3FontDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3FontDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return this;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return this;} + +private: + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType3FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} + + SkPdfType3FontDictionary(const SkPdfType3FontDictionary& from) : SkPdfType1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType3FontDictionary& operator=(const SkPdfType3FontDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of PDF object that this dictionary describes; must be + * Font for a font dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The type of font; must be Type3 for a Type 3 font. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required in PDF 1.0; optional otherwise) See Table 5.8 on page 317. +**/ + bool has_Name() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL)); + } + + std::string Name() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the + * glyph coordinate system, specifying the font bounding box. This is the small- + * est rectangle enclosing the shape that would result if all of the glyphs of the + * font were placed with their origins coincident and then filled. + * If all four elements of the rectangle are zero, no assumptions are made based + * on the font bounding box. If any element is nonzero, it is essential that the + * font bounding box be accurate; if any glyph's marks fall outside this bound- + * ing box, incorrect behavior may result. +**/ + bool has_FontBBox() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", NULL)); + } + + SkRect* FontBBox() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An array of six numbers specifying the font matrix, mapping + * glyph space to text space (see Section 5.1.3, "Glyph Positioning and + * Metrics"). A common practice is to define glyphs in terms of a 1000-unit + * glyph coordinate system, in which case the font matrix is + * [0.001 0 0 0.001 0 0]. +**/ + bool has_FontMatrix() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix", "", NULL)); + } + + SkMatrix* FontMatrix() const { + SkMatrix* ret; + if (SkMatrixFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A dictionary in which each key is a character name and the value + * associated with that key is a content stream that constructs and paints the + * glyph for that character. The stream must include as its first operator either + * d0 or d1. This is followed by operators describing one or more graphics + * objects, which may include path, text, or image objects. See below for more + * details about Type 3 glyph descriptions. +**/ + bool has_CharProcs() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharProcs", "", NULL)); + } + + SkPdfDictionary* CharProcs() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharProcs", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An encoding dictionary whose Differences array specifies the + * complete character encoding for this font (see Section 5.5.5, "Character + * Encoding"; also see implementation note 46 in Appendix H). +**/ + bool has_Encoding() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", NULL)); + } + + bool isEncodingAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getEncodingAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isEncodingAEncodingdictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfEncodingDictionary* getEncodingAsEncodingdictionary() const { + SkPdfEncodingDictionary* ret = NULL; + if (DictionaryFromDictionary2(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) The first character code defined in the font's Widths array. +**/ + bool has_FirstChar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FirstChar", "", NULL)); + } + + long FirstChar() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FirstChar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The last character code defined in the font's Widths array. +**/ + bool has_LastChar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastChar", "", NULL)); + } + + long LastChar() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastChar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required; indirect reference preferred) An array of (LastChar - FirstChar + 1) + * widths, each element being the glyph width for the character whose code is + * FirstChar plus the array index. For character codes outside the range FirstChar + * to LastChar, the width is 0. These widths are interpreted in glyph space as + * specified by FontMatrix (unlike the widths of a Type 1 font, which are in + * thousandths of a unit of text space). + * Note: If FontMatrix specifies a rotation, only the horizontal component of the + * transformed width is used. That is, the resulting displacement is always horizon- + * tal in text space, as is the case for all simple fonts. +**/ + bool has_Widths() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Widths", "", NULL)); + } + + SkPdfArray* Widths() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Widths", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional but strongly recommended; PDF 1.2) A list of the named resources, + * such as fonts and images, required by the glyph descriptions in this font (see + * Section 3.7.2, "Resource Dictionaries"). If any glyph descriptions refer to + * named resources but this dictionary is absent, the names are looked up in the + * resource dictionary of the page on which the font is used. (See implementa- + * tion note 47 in Appendix H.) +**/ + bool has_Resources() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", NULL)); + } + + SkPdfDictionary* Resources() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resources", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional; PDF 1.2) A stream containing a CMap file that maps character + * codes to Unicode values (see Section 5.9, "ToUnicode CMaps"). +**/ + bool has_ToUnicode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", NULL)); + } + + SkPdfStream* ToUnicode() const { + SkPdfStream* ret; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType3FontDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType3FunctionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType3FunctionDictionary_autogen.h new file mode 100644 index 0000000000..b09b9fa8bd --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType3FunctionDictionary_autogen.h @@ -0,0 +1,576 @@ +#ifndef __DEFINED__SkPdfType3FunctionDictionary +#define __DEFINED__SkPdfType3FunctionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 3 function dictionary +class SkPdfType3FunctionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType3FunctionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3FunctionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return this;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType3FunctionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType3FunctionDictionary(const SkPdfType3FunctionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType3FunctionDictionary& operator=(const SkPdfType3FunctionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of k 1-input functions making up the stitching function. The out- + * put dimensionality of all functions must be the same, and compatible with the value of + * Range if Range is present. +**/ + bool has_Functions() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Functions", "", NULL)); + } + + SkPdfArray* Functions() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Functions", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An array of k - 1 numbers that, in combination with Domain, define the + * intervals to which each function from the Functions array applies. Bounds elements + * must be in order of increasing value, and each value must be within the domain + * defined by Domain. +**/ + bool has_Bounds() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bounds", "", NULL)); + } + + SkPdfArray* Bounds() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bounds", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) An array of 2 x k numbers that, taken in pairs, map each subset of the do- + * main defined by Domain and the Bounds array to the domain of the corresponding + * function. +**/ + bool has_Encode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", "", NULL)); + } + + SkPdfArray* Encode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType3FunctionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h new file mode 100644 index 0000000000..cff6013b76 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h @@ -0,0 +1,115 @@ +#ifndef __DEFINED__SkPdfType3ShadingDictionary +#define __DEFINED__SkPdfType3ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 3 shading dictionary +class SkPdfType3ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType3ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return this;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return this;} + +private: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType3ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType3ShadingDictionary(const SkPdfType3ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType3ShadingDictionary& operator=(const SkPdfType3ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) An array of six numbers [ x0 y0 r0 x1 y1 r1 ] specifying the centers and + * radii of the starting and ending circles, expressed in the shading's target coor- + * dinate space. The radii r0 and r1 must both be greater than or equal to 0. If one + * radius is 0, the corresponding circle is treated as a point; if both are 0, nothing is + * painted. +**/ + bool has_Coords() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", NULL)); + } + + SkPdfArray* Coords() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a + * parametric variable t. The variable is considered to vary linearly between these + * two values as the color gradient varies between the starting and ending circles. + * The variable t becomes the input argument to the color function(s). Default + * value: [0.0 1.0]. +**/ + bool has_Domain() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL)); + } + + SkPdfArray* Domain() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n + * is the number of color components in the shading dictionary's color space). The + * function(s) are called with values of the parametric variable t in the domain de- + * fined by the shading dictionary's Domain entry. Each function's domain must be + * a superset of that of the shading dictionary. If the value returned by the function + * for a given color component is out of range, it will be adjusted to the nearest + * valid value. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +/** (Optional) An array of two boolean values specifying whether to extend the + * shading beyond the starting and ending circles, respectively. Default value: + * [false false]. +**/ + bool has_Extend() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", NULL)); + } + + SkPdfArray* Extend() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType3ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h new file mode 100644 index 0000000000..eeb531d0db --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h @@ -0,0 +1,134 @@ +#ifndef __DEFINED__SkPdfType4ShadingDictionary +#define __DEFINED__SkPdfType4ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 4 shading dictionary +class SkPdfType4ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType4ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType4ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return this;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return this;} + +private: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType4ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType4ShadingDictionary(const SkPdfType4ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType4ShadingDictionary& operator=(const SkPdfType4ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The number of bits used to represent each vertex coordinate. + * Valid values are 1, 2, 4, 8, 12, 16, 24, and 32. +**/ + bool has_BitsPerCoordinate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", NULL)); + } + + long BitsPerCoordinate() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of bits used to represent each color component. + * Valid values are 1, 2, 4, 8, 12, and 16. +**/ + bool has_BitsPerComponent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); + } + + long BitsPerComponent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of bits used to represent the edge flag for each ver- + * tex (see below). Valid values of BitsPerFlag are 2, 4, and 8, but only the + * least significant 2 bits in each flag value are used. Valid values for the edge + * flag itself are 0, 1, and 2. +**/ + bool has_BitsPerFlag() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", NULL)); + } + + long BitsPerFlag() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) An array of numbers specifying how to map vertex coordinates + * and color components into the appropriate ranges of values. The de- + * coding method is similar to that used in image dictionaries (see "Decode + * Arrays" on page 271). The ranges are specified as follows: + * [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ] + * Note that only one pair of c values should be specified if a Function entry + * is present. +**/ + bool has_Decode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); + } + + SkRect* Decode() const { + SkRect* ret; + if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions + * (where n is the number of color components in the shading dictionary's + * color space). If this entry is present, the color data for each vertex must be + * specified by a single parametric variable rather than by n separate color + * components; the designated function(s) will be called with each interpo- + * lated value of the parametric variable to determine the actual color at each + * point. Each input value will be forced into the range interval specified for + * the corresponding color component in the shading dictionary's Decode + * array. Each function's domain must be a superset of that interval. If the + * value returned by the function for a given color component is out of + * range, it will be adjusted to the nearest valid value. + * This entry may not be used with an Indexed color space. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +}; + +#endif // __DEFINED__SkPdfType4ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType5HalftoneDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType5HalftoneDictionary_autogen.h new file mode 100644 index 0000000000..d3b3e779b3 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType5HalftoneDictionary_autogen.h @@ -0,0 +1,643 @@ +#ifndef __DEFINED__SkPdfType5HalftoneDictionary +#define __DEFINED__SkPdfType5HalftoneDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a type 5 halftone dictionary +class SkPdfType5HalftoneDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType5HalftoneDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType5HalftoneDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return this;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType5HalftoneDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType5HalftoneDictionary(const SkPdfType5HalftoneDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType5HalftoneDictionary& operator=(const SkPdfType5HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, + * must be Halftone for a halftone dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the halftone type that this dictionary describes; + * must be 5 for this type of halftone. +**/ + bool has_HalftoneType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); + } + + double HalftoneType() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of the halftone dictionary. +**/ + bool has_HalftoneName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); + } + + std::string HalftoneName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required, one per colorant) The halftone corresponding to the colorant or + * color component named by the key. The halftone may be of any type other + * than 5. Note that the key must be a name object; strings are not permitted, as + * they are in type 5 PostScript halftone dictionaries. +**/ +/* + bool has_[any_colorant_name]() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colorant_name]", "", NULL)); + } + + bool is[any_colorant_name]ADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colorant_name]", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* get[any_colorant_name]AsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colorant_name]", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool is[any_colorant_name]AStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colorant_name]", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* get[any_colorant_name]AsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colorant_name]", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +*/ +/** (Required) A halftone to be used for any colorant or color component that + * does not have an entry of its own. The value may not be a type 5 halftone. If + * there are any nonprimary colorants, the default halftone must have a transfer + * function. +**/ + bool has_Default() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "", NULL)); + } + + bool isDefaultADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getDefaultAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isDefaultAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getDefaultAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfType5HalftoneDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType5ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType5ShadingDictionary_autogen.h new file mode 100644 index 0000000000..bfed8fb5e1 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType5ShadingDictionary_autogen.h @@ -0,0 +1,133 @@ +#ifndef __DEFINED__SkPdfType5ShadingDictionary +#define __DEFINED__SkPdfType5ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 5 shading dictionary +class SkPdfType5ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType5ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType5ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return this;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return this;} + +private: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType5ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType5ShadingDictionary(const SkPdfType5ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType5ShadingDictionary& operator=(const SkPdfType5ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The number of bits used to represent each vertex coordinate. + * Valid values are 1, 2, 4, 8, 12, 16, 24, and 32. +**/ + bool has_BitsPerCoordinate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", NULL)); + } + + long BitsPerCoordinate() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of bits used to represent each color component. + * Valid values are 1, 2, 4, 8, 12, and 16. +**/ + bool has_BitsPerComponent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); + } + + long BitsPerComponent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of vertices in each row of the lattice; the value + * must be greater than or equal to 2. The number of rows need not be + * specified. +**/ + bool has_VerticesPerRow() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "VerticesPerRow", "", NULL)); + } + + long VerticesPerRow() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "VerticesPerRow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) An array of numbers specifying how to map vertex coordinates + * and color components into the appropriate ranges of values. The de- + * coding method is similar to that used in image dictionaries (see "Decode + * Arrays" on page 271). The ranges are specified as follows: + * [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ] + * Note that only one pair of c values should be specified if a Function entry + * is present. +**/ + bool has_Decode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); + } + + SkPdfArray* Decode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions + * (where n is the number of color components in the shading dictionary's + * color space). If this entry is present, the color data for each vertex must be + * specified by a single parametric variable rather than by n separate color + * components; the designated function(s) will be called with each interpo- + * lated value of the parametric variable to determine the actual color at each + * point. Each input value will be forced into the range interval specified for + * the corresponding color component in the shading dictionary's Decode + * array. Each function's domain must be a superset of that interval. If the + * value returned by the function for a given color component is out of + * range, it will be adjusted to the nearest valid value. + * This entry may not be used with an Indexed color space. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +}; + +#endif // __DEFINED__SkPdfType5ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType6HalftoneDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType6HalftoneDictionary_autogen.h new file mode 100644 index 0000000000..74dac95499 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType6HalftoneDictionary_autogen.h @@ -0,0 +1,635 @@ +#ifndef __DEFINED__SkPdfType6HalftoneDictionary +#define __DEFINED__SkPdfType6HalftoneDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a type 6 halftone dictionary +class SkPdfType6HalftoneDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kType6HalftoneDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType6HalftoneDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return this;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType6HalftoneDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfType6HalftoneDictionary(const SkPdfType6HalftoneDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType6HalftoneDictionary& operator=(const SkPdfType6HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if + * present, must be Halftone for a halftone dictionary. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) A code identifying the halftone type that this dictionary + * describes; must be 6 for this type of halftone. +**/ + bool has_HalftoneType() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); + } + + long HalftoneType() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) The name of the halftone dictionary. +**/ + bool has_HalftoneName() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); + } + + std::string HalftoneName() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The width of the threshold array, in device pixels. +**/ + bool has_Width() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL)); + } + + long Width() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The height of the threshold array, in device pixels. +**/ + bool has_Height() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL)); + } + + long Height() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A transfer function, which overrides the current transfer + * function in the graphics state for the same component. This entry is + * required if the dictionary is a component of a type 5 halftone (see + * "Type 5 Halftones" on page 400) and represents either a nonprimary + * or nonstandard primary color component (see Section 6.3, "Transfer + * Functions"). The name Identity may be used to specify the identity + * function. +**/ + bool has_TransferFunction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", NULL)); + } + + bool isTransferFunctionAFunction() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Reference; + } + + SkPdfFunction getTransferFunctionAsFunction() const { + SkPdfFunction ret = SkPdfFunction(); + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + + bool isTransferFunctionAName() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Name; + } + + std::string getTransferFunctionAsName() const { + std::string ret = ""; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfType6HalftoneDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfType6ShadingDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfType6ShadingDictionary_autogen.h new file mode 100644 index 0000000000..dfb9fd452d --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfType6ShadingDictionary_autogen.h @@ -0,0 +1,134 @@ +#ifndef __DEFINED__SkPdfType6ShadingDictionary +#define __DEFINED__SkPdfType6ShadingDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 6 shading dictionary +class SkPdfType6ShadingDictionary : public SkPdfShadingDictionary { +public: + virtual SkPdfObjectType getType() const { return kType6ShadingDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType6ShadingDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return this;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return this;} + +private: + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + +public: +private: +public: + SkPdfType6ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {} + + SkPdfType6ShadingDictionary(const SkPdfType6ShadingDictionary& from) : SkPdfShadingDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfType6ShadingDictionary& operator=(const SkPdfType6ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The number of bits used to represent each geometric coordi- + * nate. Valid values are 1, 2, 4, 8, 12, 16, 24, and 32. +**/ + bool has_BitsPerCoordinate() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", NULL)); + } + + long BitsPerCoordinate() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of bits used to represent each color component. + * Valid values are 1, 2, 4, 8, 12, and 16. +**/ + bool has_BitsPerComponent() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); + } + + long BitsPerComponent() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) The number of bits used to represent the edge flag for each + * patch (see below). Valid values of BitsPerFlag are 2, 4, and 8, but only the + * least significant 2 bits in each flag value are used. Valid values for the edge + * flag itself are 0, 1, 2, and 3. +**/ + bool has_BitsPerFlag() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", NULL)); + } + + long BitsPerFlag() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Required) An array of numbers specifying how to map coordinates and + * color components into the appropriate ranges of values. The decoding + * method is similar to that used in image dictionaries (see "Decode Arrays" + * on page 271). The ranges are specified as follows: + * [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ] + * Note that only one pair of c values should be specified if a Function entry + * is present. +**/ + bool has_Decode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); + } + + SkPdfArray* Decode() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions + * (where n is the number of color components in the shading dictionary's + * color space). If this entry is present, the color data for each vertex must be + * specified by a single parametric variable rather than by n separate color + * components; the designated function(s) will be called with each interpo- + * lated value of the parametric variable to determine the actual color at each + * point. Each input value will be forced into the range interval specified for + * the corresponding color component in the shading dictionary's Decode + * array. Each function's domain must be a superset of that interval. If the + * value returned by the function for a given color component is out of + * range, it will be adjusted to the nearest valid value. + * This entry may not be used with an Indexed color space. +**/ + bool has_Function() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); + } + + SkPdfFunction Function() const { + SkPdfFunction ret; + if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfFunction(); + } + +}; + +#endif // __DEFINED__SkPdfType6ShadingDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfURIActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfURIActionDictionary_autogen.h new file mode 100644 index 0000000000..8b21a6190e --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfURIActionDictionary_autogen.h @@ -0,0 +1,574 @@ +#ifndef __DEFINED__SkPdfURIActionDictionary +#define __DEFINED__SkPdfURIActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a URI action +class SkPdfURIActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kURIActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kURIActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return this;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfURIActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfURIActionDictionary(const SkPdfURIActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfURIActionDictionary& operator=(const SkPdfURIActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of action that this dictionary describes; must be URI for a URI + * action. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The uniform resource identifier to resolve, encoded in 7-bit ASCII. +**/ + bool has_URI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", NULL)); + } + + std::string URI() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A flag specifying whether to track the mouse position when the URI is re- + * solved (see below). Default value: false. + * This entry applies only to actions triggered by the user's clicking an annotation; it is + * ignored for actions associated with outline items or with a document's OpenAction + * entry. +**/ + bool has_IsMap() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap", "", NULL)); + } + + bool IsMap() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +}; + +#endif // __DEFINED__SkPdfURIActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfURIDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfURIDictionary_autogen.h new file mode 100644 index 0000000000..a35b94e2bf --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfURIDictionary_autogen.h @@ -0,0 +1,548 @@ +#ifndef __DEFINED__SkPdfURIDictionary +#define __DEFINED__SkPdfURIDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entry in a URI dictionary +class SkPdfURIDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kURIDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kURIDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfURIDictionary* asURIDictionary() {return this;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfURIDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfURIDictionary(const SkPdfURIDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfURIDictionary& operator=(const SkPdfURIDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The base URI to be used in resolving relative URI references. URI actions + * within the document may specify URIs in partial form, to be interpreted relative to + * this base address. If no base URI is specified, such partial URIs will be interpreted rel- + * ative to the location of the document itself. The use of this entry is parallel to that of + * the body element , as described in section 2.7.2 of Internet RFC 1866, Hyper- + * text Markup Language 2.0 Proposed Standard (see the Bibliography). +**/ + bool has_Base() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Base", "", NULL)); + } + + std::string Base() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Base", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfURIDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfURLAliasDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfURLAliasDictionary_autogen.h new file mode 100644 index 0000000000..1360788dd5 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfURLAliasDictionary_autogen.h @@ -0,0 +1,557 @@ +#ifndef __DEFINED__SkPdfURLAliasDictionary +#define __DEFINED__SkPdfURLAliasDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a URL alias dictionary +class SkPdfURLAliasDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kURLAliasDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kURLAliasDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return this;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfURLAliasDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfURLAliasDictionary(const SkPdfURLAliasDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfURLAliasDictionary& operator=(const SkPdfURLAliasDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The destination URL to which all of the chains specified by the C entry lead. +**/ + bool has_U() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", NULL)); + } + + std::string U() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An array of one or more arrays of strings, each representing a chain of URLs + * leading to the common destination specified by U. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfArray* C() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfURLAliasDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfVariableTextFieldDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfVariableTextFieldDictionary_autogen.h new file mode 100644 index 0000000000..5543ca8670 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfVariableTextFieldDictionary_autogen.h @@ -0,0 +1,580 @@ +#ifndef __DEFINED__SkPdfVariableTextFieldDictionary +#define __DEFINED__SkPdfVariableTextFieldDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries common to all fields containing variable text +class SkPdfVariableTextFieldDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kVariableTextFieldDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kVariableTextFieldDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return this;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfVariableTextFieldDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfVariableTextFieldDictionary(const SkPdfVariableTextFieldDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfVariableTextFieldDictionary& operator=(const SkPdfVariableTextFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required; inheritable) A resource dictionary (see Section 3.7.2, "Resource Diction- + * aries") containing default resources (such as fonts, patterns, or color spaces) to be used + * by the appearance stream. At a minimum, this dictionary must contain a Font entry + * specifying the resource name and font dictionary of the default font for displaying the + * field's text. (See implementation note 84 in Appendix H.) +**/ + bool has_DR() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DR", "", NULL)); + } + + SkPdfDictionary* DR() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DR", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required; inheritable) The default appearance string, containing a sequence of valid + * page-content graphics or text state operators defining such properties as the field's text + * size and color. +**/ + bool has_DA() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", NULL)); + } + + std::string DA() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DA", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; inheritable) A code specifying the form of quadding (justification) to be + * used in displaying the text: + * 0 Left-justified + * 1 Centered + * 2 Right-justified + * Default value: 0 (left-justified). +**/ + bool has_Q() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", NULL)); + } + + long Q() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Q", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +}; + +#endif // __DEFINED__SkPdfVariableTextFieldDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.h new file mode 100644 index 0000000000..b604916cee --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.h @@ -0,0 +1,744 @@ +#ifndef __DEFINED__SkPdfViewerPreferencesDictionary +#define __DEFINED__SkPdfViewerPreferencesDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a viewer preferences dictionary +class SkPdfViewerPreferencesDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kViewerPreferencesDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kViewerPreferencesDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return this;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfViewerPreferencesDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfViewerPreferencesDictionary(const SkPdfViewerPreferencesDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfViewerPreferencesDictionary& operator=(const SkPdfViewerPreferencesDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A flag specifying whether to hide the viewer application's tool + * bars when the document is active. Default value: false. +**/ + bool has_HideToolbar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar", "", NULL)); + } + + bool HideToolbar() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to hide the viewer application's + * menu bar when the document is active. Default value: false. +**/ + bool has_HideMenubar() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideMenubar", "", NULL)); + } + + bool HideMenubar() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideMenubar", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to hide user interface elements in + * the document's window (such as scroll bars and navigation controls), + * leaving only the document's contents displayed. Default value: false. +**/ + bool has_HideWindowUI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideWindowUI", "", NULL)); + } + + bool HideWindowUI() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideWindowUI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to resize the document's window to + * fit the size of the first displayed page. Default value: false. +**/ + bool has_FitWindow() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FitWindow", "", NULL)); + } + + bool FitWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FitWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) A flag specifying whether to position the document's window + * in the center of the screen. Default value: false. +**/ + bool has_CenterWindow() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CenterWindow", "", NULL)); + } + + bool CenterWindow() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CenterWindow", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional; PDF 1.4) A flag specifying whether the window's title bar + * should display the document title taken from the Title entry of the docu- + * ment information dictionary (see Section 9.2.1, "Document Informa- + * tion Dictionary"). If false, the title bar should instead display the name + * of the PDF file containing the document. Default value: false. +**/ + bool has_DisplayDocTitle() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DisplayDocTitle", "", NULL)); + } + + bool DisplayDocTitle() const { + bool ret; + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DisplayDocTitle", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return false; + } + +/** (Optional) The document's page mode, specifying how to display the + * document on exiting full-screen mode: + * UseNone Neither document outline nor thumbnail images + * visible + * UseOutlines Document outline visible + * UseThumbs Thumbnail images visible + * This entry is meaningful only if the value of the PageMode entry in the + * catalog dictionary (see Section 3.6.1, "Document Catalog") is FullScreen; + * it is ignored otherwise. Default value: UseNone. +**/ + bool has_NonFullScreenPageMode() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NonFullScreenPageMode", "", NULL)); + } + + std::string NonFullScreenPageMode() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NonFullScreenPageMode", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.3) The predominant reading order for text: + * L2R Left to right + * R2L Right to left (including vertical writing systems + * such as Chinese, Japanese, and Korean) + * This entry has no direct effect on the document's contents or page num- + * bering, but can be used to determine the relative positioning of pages + * when displayed side by side or printed n-up. Default value: L2R. +**/ + bool has_Direction() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Direction", "", NULL)); + } + + std::string Direction() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Direction", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The name of the page boundary representing the + * area of a page to be displayed when viewing the document on the screen. + * The value is the key designating the relevant page boundary in the page + * object (see "Page Objects" on page 87 and Section 9.10.1, "Page Bound- + * aries"). If the specified page boundary is not defined in the page object, + * its default value will be used, as specified in Table 3.18 on page 88. + * Default value: CropBox. + * Note: This entry is intended primarily for use by prepress applications that + * interpret or manipulate the page boundaries as described in Section 9.10.1, + * "Page Boundaries." Most PDF consumer applications will disregard it. +**/ + bool has_ViewArea() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewArea", "", NULL)); + } + + std::string ViewArea() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewArea", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The name of the page boundary to which the con- + * tents of a page are to be clipped when viewing the document on the + * screen. The value is the key designating the relevant page boundary in + * the page object (see "Page Objects" on page 87 and Section 9.10.1, "Page + * Boundaries"). If the specified page boundary is not defined in the page + * object, its default value will be used, as specified in Table 3.18 on page + * 88. Default value: CropBox. + * Note: This entry is intended primarily for use by prepress applications that + * interpret or manipulate the page boundaries as described in Section 9.10.1, + * "Page Boundaries." Most PDF consumer applications will disregard it. +**/ + bool has_ViewClip() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewClip", "", NULL)); + } + + std::string ViewClip() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewClip", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The name of the page boundary representing the + * area of a page to be rendered when printing the document. The value is + * the key designating the relevant page boundary in the page object (see + * "Page Objects" on page 87 and Section 9.10.1, "Page Boundaries"). If the + * specified page boundary is not defined in the page object, its default value + * will be used, as specified in Table 3.18 on page 88. Default value: CropBox. + * Note: This entry is intended primarily for use by prepress applications that + * interpret or manipulate the page boundaries as described in Section 9.10.1, + * "Page Boundaries." Most PDF consumer applications will disregard it. +**/ + bool has_PrintArea() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintArea", "", NULL)); + } + + std::string PrintArea() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintArea", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) The name of the page boundary to which the con- + * tents of a page are to be clipped when printing the document. The value + * is the key designating the relevant page boundary in the page object (see + * "Page Objects" on page 87 and Section 9.10.1, "Page Boundaries"). If the + * specified page boundary is not defined in the page object, its default value + * will be used, as specified in Table 3.18 on page 88. Default value: CropBox. + * Note: This entry is intended primarily for use by prepress applications that + * interpret or manipulate the page boundaries as described in Section 9.10.1, + * "Page Boundaries." Most PDF consumer applications will disregard it. +**/ + bool has_PrintClip() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", "", NULL)); + } + + std::string PrintClip() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfViewerPreferencesDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandDictionary_autogen.h new file mode 100644 index 0000000000..4627361575 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandDictionary_autogen.h @@ -0,0 +1,644 @@ +#ifndef __DEFINED__SkPdfWebCaptureCommandDictionary +#define __DEFINED__SkPdfWebCaptureCommandDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a Web Capture command dictionary +class SkPdfWebCaptureCommandDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCaptureCommandDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCaptureCommandDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return this;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCaptureCommandDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCaptureCommandDictionary(const SkPdfWebCaptureCommandDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCaptureCommandDictionary& operator=(const SkPdfWebCaptureCommandDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The initial URL from which source data was requested. +**/ + bool has_URL() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URL", "", NULL)); + } + + std::string URL() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URL", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The number of levels of pages retrieved from the initial URL. Default + * value: 1. +**/ + bool has_L() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "", NULL)); + } + + long L() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) A set of flags specifying various characteristics of the command (see + * Table 9.39). Default value: 0. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + long F() const { + long ret; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) Data that was posted to the URL. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + bool isPAString() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()->GetDataType() == ePdfDataType_HexString; + } + + std::string getPAsString() const { + std::string ret = ""; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + + bool isPAStream() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return false; + return ret->podofo()->HasStream(); + } + + SkPdfStream* getPAsStream() const { + SkPdfStream* ret = NULL; + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) A content type describing the data posted to the URL. Default value: + * application/x-www-form-urlencoded. +**/ + bool has_CT() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", "", NULL)); + } + + std::string CT() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) Additional HTTP request headers sent to the URL. +**/ + bool has_H() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", NULL)); + } + + std::string H() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A command settings dictionary containing settings used in the con- + * version process (see "Command Settings" on page 674). +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + SkPdfDictionary* S() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfWebCaptureCommandDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandSettingsDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandSettingsDictionary_autogen.h new file mode 100644 index 0000000000..d471d1404f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCaptureCommandSettingsDictionary_autogen.h @@ -0,0 +1,560 @@ +#ifndef __DEFINED__SkPdfWebCaptureCommandSettingsDictionary +#define __DEFINED__SkPdfWebCaptureCommandSettingsDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a Web Capture command settings dictionary +class SkPdfWebCaptureCommandSettingsDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCaptureCommandSettingsDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCaptureCommandSettingsDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return this;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCaptureCommandSettingsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCaptureCommandSettingsDictionary(const SkPdfWebCaptureCommandSettingsDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCaptureCommandSettingsDictionary& operator=(const SkPdfWebCaptureCommandSettingsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) A dictionary containing global conversion engine settings relevant to all con- + * version engines. If this key is absent, default settings will be used. +**/ + bool has_G() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", NULL)); + } + + SkPdfDictionary* G() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) Settings for specific conversion engines. Each key in this dictionary is the + * internal name of a conversion engine (see below). The associated value is a dictionary + * containing the settings associated with that conversion engine. If the settings for a par- + * ticular conversion engine are not found in the dictionary, default settings will be used. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfDictionary* C() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfWebCaptureCommandSettingsDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCaptureDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCaptureDictionary_autogen.h new file mode 100644 index 0000000000..2460a7a88b --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCaptureDictionary_autogen.h @@ -0,0 +1,654 @@ +#ifndef __DEFINED__SkPdfWebCaptureDictionary +#define __DEFINED__SkPdfWebCaptureDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries common to all Web Capture content sets +class SkPdfWebCaptureDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCaptureDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCaptureDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return this;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCaptureDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCaptureDictionary(const SkPdfWebCaptureDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCaptureDictionary& operator=(const SkPdfWebCaptureDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Optional) The type of PDF object that this dictionary describes; if present, must be + * SpiderContentSet for a Web Capture content set. +**/ + bool has_Type() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); + } + + std::string Type() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The subtype of content set that this dictionary describes: + * SPS ("Spider page set") A page set + * SIS ("Spider image set") An image set +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The digital identifier of the content set (see "Digital Identifiers" on page + * 664). If the content set has been located via the URLS name tree, this allows its related + * entry in the IDS name tree to be found. +**/ + bool has_ID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); + } + + std::string ID() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) An array of indirect references to the objects belonging to the content set. + * The order of objects in the array is undefined in general, but may be restricted by spe- + * cific content set subtypes. +**/ + bool has_O() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL)); + } + + SkPdfArray* O() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Required) A source information dictionary (see Section 9.9.4, "Source Information"), + * or an array of such dictionaries, describing the sources from which the objects belong- + * ing to the content set were created. +**/ + bool has_SI() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SI", "", NULL)); + } + + bool isSIADictionary() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SI", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Dictionary; + } + + SkPdfDictionary* getSIAsDictionary() const { + SkPdfDictionary* ret = NULL; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + + bool isSIAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SI", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getSIAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SI", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +/** (Optional) The content type, a string characterizing the source from which the objects + * belonging to the content set were created. The string should conform to the content + * type specification described in Internet RFC 2045, Multipurpose Internet Mail Exten- + * sions (MIME) Part One: Format of Internet Message Bodies (see the Bibliography). For + * example, for a page set consisting of a group of PDF pages created from an HTML file, + * the content type would be text/html. +**/ + bool has_CT() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", "", NULL)); + } + + std::string CT() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A time stamp giving the date and time at which the content set was created. +**/ + bool has_TS() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TS", "", NULL)); + } + + SkPdfDate TS() const { + SkPdfDate ret; + if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TS", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return SkPdfDate(); + } + +}; + +#endif // __DEFINED__SkPdfWebCaptureDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCaptureImageSetDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCaptureImageSetDictionary_autogen.h new file mode 100644 index 0000000000..287def7922 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCaptureImageSetDictionary_autogen.h @@ -0,0 +1,581 @@ +#ifndef __DEFINED__SkPdfWebCaptureImageSetDictionary +#define __DEFINED__SkPdfWebCaptureImageSetDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a Web Capture image set +class SkPdfWebCaptureImageSetDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCaptureImageSetDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCaptureImageSetDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return this;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCaptureImageSetDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCaptureImageSetDictionary(const SkPdfWebCaptureImageSetDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCaptureImageSetDictionary& operator=(const SkPdfWebCaptureImageSetDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The subtype of content set that this dictionary describes; must be SIS ("Spider + * image set") for an image set. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Required) The reference counts (see below) for the image XObjects belonging to the + * image set. For an image set containing a single XObject, the value is simply the integer + * reference count for that XObject. If the image set contains multiple XObjects, the value is + * an array of reference counts parallel to the O array (see Table 9.33 on page 668); that is, + * each element in the R array holds the reference count for the image XObject at the corre- + * sponding position in the O array. +**/ + bool has_R() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); + } + + bool isRAInteger() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Number; + } + + long getRAsInteger() const { + long ret = 0; + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + + bool isRAArray() const { + SkPdfObject* ret = NULL; + if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return false; + return ret->podofo()->GetDataType() == ePdfDataType_Array; + } + + SkPdfArray* getRAsArray() const { + SkPdfArray* ret = NULL; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfWebCaptureImageSetDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCaptureInformationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCaptureInformationDictionary_autogen.h new file mode 100644 index 0000000000..d8593a0a3f --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCaptureInformationDictionary_autogen.h @@ -0,0 +1,561 @@ +#ifndef __DEFINED__SkPdfWebCaptureInformationDictionary +#define __DEFINED__SkPdfWebCaptureInformationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in the Web Capture information dictionary +class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCaptureInformationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCaptureInformationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return this;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCaptureInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCaptureInformationDictionary(const SkPdfWebCaptureInformationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The Web Capture version number. For PDF 1.3, the version number is 1.0. + * Note: This value is a single real number, not a major and minor version number. Thus, for + * example, a version number of 1.2 would be considered greater than 1.15. +**/ + bool has_V() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", NULL)); + } + + double V() const { + double ret; + if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return 0; + } + +/** (Optional) An array of indirect references to Web Capture command dictionaries (see + * "Command Dictionaries" on page 672) describing commands that were used in building + * the PDF file. The commands appear in the array in the order in which they were executed + * in building the file. +**/ + bool has_C() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL)); + } + + SkPdfArray* C() const { + SkPdfArray* ret; + if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfWebCaptureInformationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWebCapturePageSetDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWebCapturePageSetDictionary_autogen.h new file mode 100644 index 0000000000..41c46d6db1 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWebCapturePageSetDictionary_autogen.h @@ -0,0 +1,572 @@ +#ifndef __DEFINED__SkPdfWebCapturePageSetDictionary +#define __DEFINED__SkPdfWebCapturePageSetDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a Web Capture page set +class SkPdfWebCapturePageSetDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWebCapturePageSetDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapturePageSetDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return this;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWebCapturePageSetDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWebCapturePageSetDictionary(const SkPdfWebCapturePageSetDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWebCapturePageSetDictionary& operator=(const SkPdfWebCapturePageSetDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The subtype of content set that this dictionary describes; must be SPS + * ("Spider page set") for a page set. +**/ + bool has_S() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); + } + + std::string S() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The title of the page set, a text string representing it in human-readable + * form. +**/ + bool has_T() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); + } + + std::string T() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A text identifier generated from the text of the page set, as described in + * "Digital Identifiers" on page 664. +**/ + bool has_TID() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "", NULL)); + } + + std::string TID() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfWebCapturePageSetDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.h new file mode 100644 index 0000000000..ebe48fc7eb --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.h @@ -0,0 +1,601 @@ +#ifndef __DEFINED__SkPdfWidgetAnnotationDictionary +#define __DEFINED__SkPdfWidgetAnnotationDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Additional entries specific to a widget annotation +class SkPdfWidgetAnnotationDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWidgetAnnotationDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWidgetAnnotationDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return this;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWidgetAnnotationDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWidgetAnnotationDictionary(const SkPdfWidgetAnnotationDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWidgetAnnotationDictionary& operator=(const SkPdfWidgetAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The type of annotation that this dictionary describes; must be Widget + * for a widget annotation. +**/ + bool has_Subtype() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL)); + } + + std::string Subtype() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional; PDF 1.4) An alternate representation of the annotation's contents in + * human-readable form, useful when extracting the document's contents in sup- + * port of accessibility to disabled users or for other purposes (see Section 9.8.2, + * "Alternate Descriptions"). +**/ + bool has_Contents() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL)); + } + + std::string Contents() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) The annotation's highlighting mode, the visual effect to be used when + * the mouse button is pressed or held down inside its active area: + * N (None) No highlighting. + * I (Invert) Invert the contents of the annotation rectangle. + * O (Outline) Invert the annotation's border. + * P (Push) Display the annotation's down appearance, if any (see Section + * 8.4.4, "Appearance Streams"). If no down appearance is defined, offset + * the contents of the annotation rectangle to appear as if it were being + * "pushed" below the surface of the page. + * T (Toggle) Same as P (which is preferred). + * A highlighting mode other than P overrides any down appearance defined for + * the annotation. Default value: I. +**/ + bool has_H() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", NULL)); + } + + std::string H() const { + std::string ret; + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) An appearance characteristics dictionary to be used in constructing a + * dynamic appearance stream specifying the annotation's visual presentation on + * the page; see "Variable Text" on page 533 for further discussion. + * Note: The name MK for this entry is of historical significance only and has no direct + * meaning. +**/ + bool has_MK() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MK", "", NULL)); + } + + SkPdfDictionary* MK() const { + SkPdfDictionary* ret; + if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MK", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return NULL; + } + +}; + +#endif // __DEFINED__SkPdfWidgetAnnotationDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfWindowsLaunchActionDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfWindowsLaunchActionDictionary_autogen.h new file mode 100644 index 0000000000..c1bce3e368 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfWindowsLaunchActionDictionary_autogen.h @@ -0,0 +1,591 @@ +#ifndef __DEFINED__SkPdfWindowsLaunchActionDictionary +#define __DEFINED__SkPdfWindowsLaunchActionDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +// Entries in a Windows launch parameter dictionary +class SkPdfWindowsLaunchActionDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kWindowsLaunchActionDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWindowsLaunchActionDictionary_SkPdfObjectType + 1);} +public: + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return this;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL;} + + virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} + virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} + + virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} + virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} + +public: +private: +public: + SkPdfWindowsLaunchActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfWindowsLaunchActionDictionary(const SkPdfWindowsLaunchActionDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfWindowsLaunchActionDictionary& operator=(const SkPdfWindowsLaunchActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +/** (Required) The file name of the application to be launched or the document + * to be opened or printed, in standard Windows pathname format. If the name + * string includes a backslash character (\), the backslash must itself be preceded + * by a backslash. + * Note: This value must be a simple string; it is not a file specification. +**/ + bool has_F() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL)); + } + + std::string F() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A string specifying the default directory in standard DOS syntax. +**/ + bool has_D() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL)); + } + + std::string D() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A string specifying the operation to perform: + * open Open a document. + * print Print a document. + * If the F entry designates an application instead of a document, this entry is ig- + * nored and the application is launched. Default value: open. +**/ + bool has_O() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL)); + } + + std::string O() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +/** (Optional) A parameter string to be passed to the application designated by + * the F entry. This entry should be omitted if F designates a document. +**/ + bool has_P() const { + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); + } + + std::string P() const { + std::string ret; + if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; + // TODO(edisonn): warn about missing required field, assert for known good pdfs + return ""; + } + +}; + +#endif // __DEFINED__SkPdfWindowsLaunchActionDictionary diff --git a/experimental/PdfViewer/autogen/SkPdfXObjectDictionary_autogen.h b/experimental/PdfViewer/autogen/SkPdfXObjectDictionary_autogen.h new file mode 100644 index 0000000000..888bee5b89 --- /dev/null +++ b/experimental/PdfViewer/autogen/SkPdfXObjectDictionary_autogen.h @@ -0,0 +1,523 @@ +#ifndef __DEFINED__SkPdfXObjectDictionary +#define __DEFINED__SkPdfXObjectDictionary + +#include "SkPdfUtils.h" +#include "SkPdfEnums_autogen.h" +#include "SkPdfArray_autogen.h" +#include "SkPdfDictionary_autogen.h" + +class SkPdfXObjectDictionary : public SkPdfDictionary { +public: + virtual SkPdfObjectType getType() const { return kXObjectDictionary_SkPdfObjectType;} + virtual SkPdfObjectType getTypeEnd() const { return kXObjectDictionary__End_SkPdfObjectType;} +public: + virtual SkPdfXObjectDictionary* asXObjectDictionary() {return this;} + virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return this;} + +private: + virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} + virtual const SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() const {return NULL;} + + virtual SkPdfActionDictionary* asActionDictionary() {return NULL;} + virtual const SkPdfActionDictionary* asActionDictionary() const {return NULL;} + + virtual SkPdfAlternateImageDictionary* asAlternateImageDictionary() {return NULL;} + virtual const SkPdfAlternateImageDictionary* asAlternateImageDictionary() const {return NULL;} + + virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {return NULL;} + virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() const {return NULL;} + + virtual SkPdfAnnotationDictionary* asAnnotationDictionary() {return NULL;} + virtual const SkPdfAnnotationDictionary* asAnnotationDictionary() const {return NULL;} + + virtual SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() {return NULL;} + virtual const SkPdfAppearanceCharacteristicsDictionary* asAppearanceCharacteristicsDictionary() const {return NULL;} + + virtual SkPdfAppearanceDictionary* asAppearanceDictionary() {return NULL;} + virtual const SkPdfAppearanceDictionary* asAppearanceDictionary() const {return NULL;} + + virtual SkPdfApplicationDataDictionary* asApplicationDataDictionary() {return NULL;} + virtual const SkPdfApplicationDataDictionary* asApplicationDataDictionary() const {return NULL;} + + virtual SkPdfArtifactsDictionary* asArtifactsDictionary() {return NULL;} + virtual const SkPdfArtifactsDictionary* asArtifactsDictionary() const {return NULL;} + + virtual SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() {return NULL;} + virtual const SkPdfAttributeObjectDictionary* asAttributeObjectDictionary() const {return NULL;} + + virtual SkPdfBeadDictionary* asBeadDictionary() {return NULL;} + virtual const SkPdfBeadDictionary* asBeadDictionary() const {return NULL;} + + virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return NULL;} + virtual const SkPdfBorderStyleDictionary* asBorderStyleDictionary() const {return NULL;} + + virtual SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() {return NULL;} + virtual const SkPdfBoxColorInformationDictionary* asBoxColorInformationDictionary() const {return NULL;} + + virtual SkPdfBoxStyleDictionary* asBoxStyleDictionary() {return NULL;} + virtual const SkPdfBoxStyleDictionary* asBoxStyleDictionary() const {return NULL;} + + virtual SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() {return NULL;} + virtual const SkPdfCIDFontDescriptorDictionary* asCIDFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return NULL;} + virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const {return NULL;} + + virtual SkPdfCMapDictionary* asCMapDictionary() {return NULL;} + virtual const SkPdfCMapDictionary* asCMapDictionary() const {return NULL;} + + virtual SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalgrayColorSpaceDictionary* asCalgrayColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() {return NULL;} + virtual const SkPdfCalrgbColorSpaceDictionary* asCalrgbColorSpaceDictionary() const {return NULL;} + + virtual SkPdfCatalogDictionary* asCatalogDictionary() {return NULL;} + virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return NULL;} + + virtual SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() {return NULL;} + virtual const SkPdfCcittfaxdecodeFilterDictionary* asCcittfaxdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() {return NULL;} + virtual const SkPdfCheckboxFieldDictionary* asCheckboxFieldDictionary() const {return NULL;} + + virtual SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() {return NULL;} + virtual const SkPdfChoiceFieldDictionary* asChoiceFieldDictionary() const {return NULL;} + + virtual SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() {return NULL;} + virtual const SkPdfComponentsWithMetadataDictionary* asComponentsWithMetadataDictionary() const {return NULL;} + + virtual SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() {return NULL;} + virtual const SkPdfDctdecodeFilterDictionary* asDctdecodeFilterDictionary() const {return NULL;} + + virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {return NULL;} + virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() const {return NULL;} + + virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() {return NULL;} + virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDictionary() const {return NULL;} + + virtual SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() {return NULL;} + virtual const SkPdfDocumentInformationDictionary* asDocumentInformationDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() {return NULL;} + virtual const SkPdfEmbeddedFontStreamDictionary* asEmbeddedFontStreamDictionary() const {return NULL;} + + virtual SkPdfEncodingDictionary* asEncodingDictionary() {return NULL;} + virtual const SkPdfEncodingDictionary* asEncodingDictionary() const {return NULL;} + + virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() {return NULL;} + virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStreamDictionary() const {return NULL;} + + virtual SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() {return NULL;} + virtual const SkPdfEncryptionCommonDictionary* asEncryptionCommonDictionary() const {return NULL;} + + virtual SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() {return NULL;} + virtual const SkPdfFDFCatalogDictionary* asFDFCatalogDictionary() const {return NULL;} + + virtual SkPdfFDFDictionary* asFDFDictionary() {return NULL;} + virtual const SkPdfFDFDictionary* asFDFDictionary() const {return NULL;} + + virtual SkPdfFDFFieldDictionary* asFDFFieldDictionary() {return NULL;} + virtual const SkPdfFDFFieldDictionary* asFDFFieldDictionary() const {return NULL;} + + virtual SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() {return NULL;} + virtual const SkPdfFDFFileAnnotationDictionary* asFDFFileAnnotationDictionary() const {return NULL;} + + virtual SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() {return NULL;} + virtual const SkPdfFDFNamedPageReferenceDictionary* asFDFNamedPageReferenceDictionary() const {return NULL;} + + virtual SkPdfFDFPageDictionary* asFDFPageDictionary() {return NULL;} + virtual const SkPdfFDFPageDictionary* asFDFPageDictionary() const {return NULL;} + + virtual SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() {return NULL;} + virtual const SkPdfFDFTemplateDictionary* asFDFTemplateDictionary() const {return NULL;} + + virtual SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() {return NULL;} + virtual const SkPdfFDFTrailerDictionary* asFDFTrailerDictionary() const {return NULL;} + + virtual SkPdfFieldDictionary* asFieldDictionary() {return NULL;} + virtual const SkPdfFieldDictionary* asFieldDictionary() const {return NULL;} + + virtual SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() {return NULL;} + virtual const SkPdfFileAttachmentAnnotationDictionary* asFileAttachmentAnnotationDictionary() const {return NULL;} + + virtual SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() {return NULL;} + virtual const SkPdfFileSpecificationDictionary* asFileSpecificationDictionary() const {return NULL;} + + virtual SkPdfFileTrailerDictionary* asFileTrailerDictionary() {return NULL;} + virtual const SkPdfFileTrailerDictionary* asFileTrailerDictionary() const {return NULL;} + + virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NULL;} + virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() const {return NULL;} + + virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} + virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} + + virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} + virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;} + + virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} + virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} + + virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} + virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} + + virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} + virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;} + + virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} + virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;} + + virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} + virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} + + virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {return NULL;} + virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} + + virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {return NULL;} + virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NULL;} + virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() const {return NULL;} + + virtual SkPdfGoToActionDictionary* asGoToActionDictionary() {return NULL;} + virtual const SkPdfGoToActionDictionary* asGoToActionDictionary() const {return NULL;} + + virtual SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() {return NULL;} + virtual const SkPdfGraphicsStateDictionary* asGraphicsStateDictionary() const {return NULL;} + + virtual SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() {return NULL;} + virtual const SkPdfGroupAttributesDictionary* asGroupAttributesDictionary() const {return NULL;} + + virtual SkPdfHideActionDictionary* asHideActionDictionary() {return NULL;} + virtual const SkPdfHideActionDictionary* asHideActionDictionary() const {return NULL;} + + virtual SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() {return NULL;} + virtual const SkPdfIccProfileStreamDictionary* asIccProfileStreamDictionary() const {return NULL;} + + virtual SkPdfIconFitDictionary* asIconFitDictionary() {return NULL;} + virtual const SkPdfIconFitDictionary* asIconFitDictionary() const {return NULL;} + + virtual SkPdfImportDataActionDictionary* asImportDataActionDictionary() {return NULL;} + virtual const SkPdfImportDataActionDictionary* asImportDataActionDictionary() const {return NULL;} + + virtual SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() {return NULL;} + virtual const SkPdfInkAnnotationDictionary* asInkAnnotationDictionary() const {return NULL;} + + virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return NULL;} + virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return NULL;} + + virtual SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() {return NULL;} + virtual const SkPdfInteractiveFormDictionary* asInteractiveFormDictionary() const {return NULL;} + + virtual SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() {return NULL;} + virtual const SkPdfJavascriptActionDictionary* asJavascriptActionDictionary() const {return NULL;} + + virtual SkPdfJavascriptDictionary* asJavascriptDictionary() {return NULL;} + virtual const SkPdfJavascriptDictionary* asJavascriptDictionary() const {return NULL;} + + virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {return NULL;} + virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() const {return NULL;} + + virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return NULL;} + virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const {return NULL;} + + virtual SkPdfLaunchActionDictionary* asLaunchActionDictionary() {return NULL;} + virtual const SkPdfLaunchActionDictionary* asLaunchActionDictionary() const {return NULL;} + + virtual SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() {return NULL;} + virtual const SkPdfLineAnnotationDictionary* asLineAnnotationDictionary() const {return NULL;} + + virtual SkPdfListAttributeDictionary* asListAttributeDictionary() {return NULL;} + virtual const SkPdfListAttributeDictionary* asListAttributeDictionary() const {return NULL;} + + virtual SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() {return NULL;} + virtual const SkPdfLzwdecodeAndFlatedecodeFiltersDictionary* asLzwdecodeAndFlatedecodeFiltersDictionary() const {return NULL;} + + virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() {return NULL;} + virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary() const {return NULL;} + + virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return NULL;} + virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() const {return NULL;} + + virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() {return NULL;} + virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDictionary() const {return NULL;} + + virtual SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() {return NULL;} + virtual const SkPdfMarkupAnnotationsDictionary* asMarkupAnnotationsDictionary() const {return NULL;} + + virtual SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() {return NULL;} + virtual const SkPdfMetadataStreamDictionary* asMetadataStreamDictionary() const {return NULL;} + + virtual SkPdfMovieActionDictionary* asMovieActionDictionary() {return NULL;} + virtual const SkPdfMovieActionDictionary* asMovieActionDictionary() const {return NULL;} + + virtual SkPdfMovieActivationDictionary* asMovieActivationDictionary() {return NULL;} + virtual const SkPdfMovieActivationDictionary* asMovieActivationDictionary() const {return NULL;} + + virtual SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() {return NULL;} + virtual const SkPdfMovieAnnotationDictionary* asMovieAnnotationDictionary() const {return NULL;} + + virtual SkPdfMovieDictionary* asMovieDictionary() {return NULL;} + virtual const SkPdfMovieDictionary* asMovieDictionary() const {return NULL;} + + virtual SkPdfNameDictionary* asNameDictionary() {return NULL;} + virtual const SkPdfNameDictionary* asNameDictionary() const {return NULL;} + + virtual SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() {return NULL;} + virtual const SkPdfNameTreeNodeDictionary* asNameTreeNodeDictionary() const {return NULL;} + + virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return NULL;} + virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {return NULL;} + + virtual SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() {return NULL;} + virtual const SkPdfNumberTreeNodeDictionary* asNumberTreeNodeDictionary() const {return NULL;} + + virtual SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() {return NULL;} + virtual const SkPdfObjectReferenceDictionary* asObjectReferenceDictionary() const {return NULL;} + + virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return NULL;} + virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {return NULL;} + + virtual SkPdfOutlineDictionary* asOutlineDictionary() {return NULL;} + virtual const SkPdfOutlineDictionary* asOutlineDictionary() const {return NULL;} + + virtual SkPdfOutlineItemDictionary* asOutlineItemDictionary() {return NULL;} + virtual const SkPdfOutlineItemDictionary* asOutlineItemDictionary() const {return NULL;} + + virtual SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() {return NULL;} + virtual const SkPdfPDF_XOutputIntentDictionary* asPDF_XOutputIntentDictionary() const {return NULL;} + + virtual SkPdfPSXobjectDictionary* asPSXobjectDictionary() {return NULL;} + virtual const SkPdfPSXobjectDictionary* asPSXobjectDictionary() const {return NULL;} + + virtual SkPdfPageLabelDictionary* asPageLabelDictionary() {return NULL;} + virtual const SkPdfPageLabelDictionary* asPageLabelDictionary() const {return NULL;} + + virtual SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() {return NULL;} + virtual const SkPdfPageObjectActionsDictionary* asPageObjectActionsDictionary() const {return NULL;} + + virtual SkPdfPageObjectDictionary* asPageObjectDictionary() {return NULL;} + virtual const SkPdfPageObjectDictionary* asPageObjectDictionary() const {return NULL;} + + virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return NULL;} + virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return NULL;} + + virtual SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() {return NULL;} + virtual const SkPdfPageTreeNodeDictionary* asPageTreeNodeDictionary() const {return NULL;} + + virtual SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() {return NULL;} + virtual const SkPdfPopUpAnnotationDictionary* asPopUpAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() {return NULL;} + virtual const SkPdfPrinterMarkAnnotationDictionary* asPrinterMarkAnnotationDictionary() const {return NULL;} + + virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return NULL;} + virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() const {return NULL;} + + virtual SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() {return NULL;} + virtual const SkPdfRadioButtonFieldDictionary* asRadioButtonFieldDictionary() const {return NULL;} + + virtual SkPdfReferenceDictionary* asReferenceDictionary() {return NULL;} + virtual const SkPdfReferenceDictionary* asReferenceDictionary() const {return NULL;} + + virtual SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() {return NULL;} + virtual const SkPdfRemoteGoToActionDictionary* asRemoteGoToActionDictionary() const {return NULL;} + + virtual SkPdfResetFormActionDictionary* asResetFormActionDictionary() {return NULL;} + virtual const SkPdfResetFormActionDictionary* asResetFormActionDictionary() const {return NULL;} + + virtual SkPdfResourceDictionary* asResourceDictionary() {return NULL;} + virtual const SkPdfResourceDictionary* asResourceDictionary() const {return NULL;} + + virtual SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() {return NULL;} + virtual const SkPdfRubberStampAnnotationDictionary* asRubberStampAnnotationDictionary() const {return NULL;} + + virtual SkPdfSeparationDictionary* asSeparationDictionary() {return NULL;} + virtual const SkPdfSeparationDictionary* asSeparationDictionary() const {return NULL;} + + virtual SkPdfShadingDictionary* asShadingDictionary() {return NULL;} + virtual const SkPdfShadingDictionary* asShadingDictionary() const {return NULL;} + + virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;} + virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return NULL;} + + virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return NULL;} + virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return NULL;} + + virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;} + virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return NULL;} + + virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;} + virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return NULL;} + + virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;} + virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return NULL;} + + virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;} + virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return NULL;} + + virtual SkPdfSignatureDictionary* asSignatureDictionary() {return NULL;} + virtual const SkPdfSignatureDictionary* asSignatureDictionary() const {return NULL;} + + virtual SkPdfSoftMaskDictionary* asSoftMaskDictionary() {return NULL;} + virtual const SkPdfSoftMaskDictionary* asSoftMaskDictionary() const {return NULL;} + + virtual SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() {return NULL;} + virtual const SkPdfSoftMaskImageDictionary* asSoftMaskImageDictionary() const {return NULL;} + + virtual SkPdfSoundActionDictionary* asSoundActionDictionary() {return NULL;} + virtual const SkPdfSoundActionDictionary* asSoundActionDictionary() const {return NULL;} + + virtual SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() {return NULL;} + virtual const SkPdfSoundAnnotationDictionary* asSoundAnnotationDictionary() const {return NULL;} + + virtual SkPdfSoundObjectDictionary* asSoundObjectDictionary() {return NULL;} + virtual const SkPdfSoundObjectDictionary* asSoundObjectDictionary() const {return NULL;} + + virtual SkPdfSourceInformationDictionary* asSourceInformationDictionary() {return NULL;} + virtual const SkPdfSourceInformationDictionary* asSourceInformationDictionary() const {return NULL;} + + virtual SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() {return NULL;} + virtual const SkPdfSquareOrCircleAnnotation* asSquareOrCircleAnnotation() const {return NULL;} + + virtual SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() {return NULL;} + virtual const SkPdfStandardSecurityHandlerDictionary* asStandardSecurityHandlerDictionary() const {return NULL;} + + virtual SkPdfStandardStructureDictionary* asStandardStructureDictionary() {return NULL;} + virtual const SkPdfStandardStructureDictionary* asStandardStructureDictionary() const {return NULL;} + + virtual SkPdfStreamCommonDictionary* asStreamCommonDictionary() {return NULL;} + virtual const SkPdfStreamCommonDictionary* asStreamCommonDictionary() const {return NULL;} + + virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() {return NULL;} + virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessDictionary() const {return NULL;} + + virtual SkPdfStructureElementDictionary* asStructureElementDictionary() {return NULL;} + virtual const SkPdfStructureElementDictionary* asStructureElementDictionary() const {return NULL;} + + virtual SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() {return NULL;} + virtual const SkPdfStructureTreeRootDictionary* asStructureTreeRootDictionary() const {return NULL;} + + virtual SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() {return NULL;} + virtual const SkPdfSubmitFormActionDictionary* asSubmitFormActionDictionary() const {return NULL;} + + virtual SkPdfTableAttributesDictionary* asTableAttributesDictionary() {return NULL;} + virtual const SkPdfTableAttributesDictionary* asTableAttributesDictionary() const {return NULL;} + + virtual SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() {return NULL;} + virtual const SkPdfTextAnnotationDictionary* asTextAnnotationDictionary() const {return NULL;} + + virtual SkPdfTextFieldDictionary* asTextFieldDictionary() {return NULL;} + virtual const SkPdfTextFieldDictionary* asTextFieldDictionary() const {return NULL;} + + virtual SkPdfThreadActionDictionary* asThreadActionDictionary() {return NULL;} + virtual const SkPdfThreadActionDictionary* asThreadActionDictionary() const {return NULL;} + + virtual SkPdfThreadDictionary* asThreadDictionary() {return NULL;} + virtual const SkPdfThreadDictionary* asThreadDictionary() const {return NULL;} + + virtual SkPdfTransitionDictionary* asTransitionDictionary() {return NULL;} + virtual const SkPdfTransitionDictionary* asTransitionDictionary() const {return NULL;} + + virtual SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() {return NULL;} + virtual const SkPdfTransparencyGroupDictionary* asTransparencyGroupDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAnnotationDictionary* asTrapNetworkAnnotationDictionary() const {return NULL;} + + virtual SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() {return NULL;} + virtual const SkPdfTrapNetworkAppearanceStreamDictionary* asTrapNetworkAppearanceStreamDictionary() const {return NULL;} + + virtual SkPdfType0FunctionDictionary* asType0FunctionDictionary() {return NULL;} + virtual const SkPdfType0FunctionDictionary* asType0FunctionDictionary() const {return NULL;} + + virtual SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() {return NULL;} + virtual const SkPdfType10HalftoneDictionary* asType10HalftoneDictionary() const {return NULL;} + + virtual SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() {return NULL;} + virtual const SkPdfType16HalftoneDictionary* asType16HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() {return NULL;} + virtual const SkPdfType1HalftoneDictionary* asType1HalftoneDictionary() const {return NULL;} + + virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return NULL;} + virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {return NULL;} + + virtual SkPdfType2FunctionDictionary* asType2FunctionDictionary() {return NULL;} + virtual const SkPdfType2FunctionDictionary* asType2FunctionDictionary() const {return NULL;} + + virtual SkPdfType2PatternDictionary* asType2PatternDictionary() {return NULL;} + virtual const SkPdfType2PatternDictionary* asType2PatternDictionary() const {return NULL;} + + virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return NULL;} + virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return NULL;} + + virtual SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() {return NULL;} + virtual const SkPdfType5HalftoneDictionary* asType5HalftoneDictionary() const {return NULL;} + + virtual SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() {return NULL;} + virtual const SkPdfType6HalftoneDictionary* asType6HalftoneDictionary() const {return NULL;} + + virtual SkPdfURIActionDictionary* asURIActionDictionary() {return NULL;} + virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return NULL;} + + virtual SkPdfURIDictionary* asURIDictionary() {return NULL;} + virtual const SkPdfURIDictionary* asURIDictionary() const {return NULL;} + + virtual SkPdfURLAliasDictionary* asURLAliasDictionary() {return NULL;} + virtual const SkPdfURLAliasDictionary* asURLAliasDictionary() const {return NULL;} + + virtual SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() {return NULL;} + virtual const SkPdfVariableTextFieldDictionary* asVariableTextFieldDictionary() const {return NULL;} + + virtual SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() {return NULL;} + virtual const SkPdfViewerPreferencesDictionary* asViewerPreferencesDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandDictionary* asWebCaptureCommandDictionary() const {return NULL;} + + virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() {return NULL;} + virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsDictionary() const {return NULL;} + + virtual SkPdfWebCaptureDictionary* asWebCaptureDictionary() {return NULL;} + virtual const SkPdfWebCaptureDictionary* asWebCaptureDictionary() const {return NULL;} + + virtual SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() {return NULL;} + virtual const SkPdfWebCaptureImageSetDictionary* asWebCaptureImageSetDictionary() const {return NULL;} + + virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() {return NULL;} + virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionary() const {return NULL;} + + virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {return NULL;} + virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() const {return NULL;} + + virtual SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() {return NULL;} + virtual const SkPdfWidgetAnnotationDictionary* asWidgetAnnotationDictionary() const {return NULL;} + + virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return NULL;} + virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() const {return NULL;} + +public: +private: +public: + SkPdfXObjectDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} + + SkPdfXObjectDictionary(const SkPdfXObjectDictionary& from) : SkPdfDictionary(from.fPodofoDoc, from.fPodofoObj) {} + + virtual bool valid() const {return true;} + + SkPdfXObjectDictionary& operator=(const SkPdfXObjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} + +}; + +#endif // __DEFINED__SkPdfXObjectDictionary diff --git a/experimental/PdfViewer/autogen/__init__.py b/experimental/PdfViewer/autogen/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/experimental/PdfViewer/autogen/pdfspec_autogen.py b/experimental/PdfViewer/autogen/pdfspec_autogen.py new file mode 100644 index 0000000000..9e1dbd9ce8 --- /dev/null +++ b/experimental/PdfViewer/autogen/pdfspec_autogen.py @@ -0,0 +1,5579 @@ +import datatypes + +def buildPdfSpec(pdfspec): + pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to all stream dictionaries')\ + .required('NULL')\ + .field('Length')\ + .name('Length')\ + .type('integer')\ + .comment('(Required) The number of bytes from the beginning of the line fol-\nlowing the keyword stream to the last byte just before the keyword\nendstream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stream Extent," above, for further discus-\nsion.')\ + .done().done()\ + .optional()\ + .field('Filter')\ + .name('Filter')\ + .type('name or array')\ + .comment('(Optional) The name of a filter to be applied in processing the stream\ndata found between the keywords stream and endstream, or an array\nof such names. Multiple filters should be specified in the order in\nwhich they are to be applied.')\ + .done().done()\ + .optional()\ + .field('DecodeParms')\ + .name('DecodeParms')\ + .type('dictionary or array')\ + .comment('(Optional) A parameter dictionary, or an array of such dictionaries,\nused by the filters specified by Filter. If there is only one filter and that\nfilter has parameters, DecodeParms must be set to the filter\'s parame-\nter dictionary unless all the filter\'s parameters have their default\nvalues, in which case the DecodeParms entry may be omitted. If there\nare multiple filters and any of the filters has parameters set to non-\ndefault values, DecodeParms must be an array with one entry for\neach filter: either the parameter dictionary for that filter, or the null\nobject if that filter has no parameters (or if all of its parameters have\ntheir default values). If none of the filters have parameters, or if all\ntheir parameters have default values, the DecodeParms entry may be\nomitted. (See implementation note 7 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Optional; PDF 1.2) The file containing the stream data. If this entry\nis present, the bytes between stream and endstream are ignored, the\nfilters are specified by FFilter rather than Filter, and the filter parame-\nters are specified by FDecodeParms rather than DecodeParms. How-\never, the Length entry should still specify the number of those bytes.\n(Usually there are no bytes and Length is 0.)')\ + .done().done()\ + .optional()\ + .field('FFilter')\ + .name('FFilter')\ + .type('name or array')\ + .comment('(Optional; PDF 1.2) The name of a filter to be applied in processing\nthe data found in the stream\'s external file, or an array of such names.\nThe same rules apply as for Filter.')\ + .done().done()\ + .optional()\ + .field('FDecodeParms')\ + .name('FDecodeParms')\ + .type('dictionary or array')\ + .comment('(Optional; PDF 1.2) A parameter dictionary, or an array of such dic-\ntionaries, used by the filters specified by FFilter. The same rules apply\nas for DecodeParms.')\ + .done().done()\ + .done() + + pdfspec.addClass('LzwdecodeAndFlatedecodeFiltersDictionary', 'Dictionary', 'Optional parameters for LZWDecode and FlateDecode filters')\ + .optional()\ + .field('Predictor')\ + .name('Predictor')\ + .type('integer')\ + .comment('()A code that selects the predictor algorithm, if any. If the value of this entry\nis 1, the filter assumes that the normal algorithm was used to encode the data,\nwithout prediction. If the value is greater than 1, the filter assumes that the\ndata was differenced before being encoded, and Predictor selects the predic-\ntor algorithm. For more information regarding Predictor values greater\nthan 1, see "LZW and Flate Predictor Functions," below. Default value: 1.')\ + .done().done()\ + .optional()\ + .field('Colors')\ + .name('Colors')\ + .type('integer')\ + .comment('(Used only if Predictor is greater than 1) The number of interleaved color com-\nponents per sample. Valid values are 1 to 4 in PDF 1.2 or earlier, and 1 or\ngreater in PDF 1.3 or later. Default value: 1.')\ + .done().done()\ + .optional()\ + .field('BitsPerComponent')\ + .name('BitsPerComponent')\ + .type('integer')\ + .comment('(Used only if Predictor is greater than 1) The number of bits used to represent\neach color component in a sample. Valid values are 1, 2, 4, and 8. Default\nvalue: 8.')\ + .done().done()\ + .optional()\ + .field('Columns')\ + .name('Columns')\ + .type('integer')\ + .comment('(Used only if Predictor is greater than 1) The number of samples in each row.\nDefault value: 1.')\ + .done().done()\ + .optional()\ + .field('EarlyChange')\ + .name('EarlyChange')\ + .type('integer')\ + .comment('(LZWDecode only) An indication of when to increase the code length. If the\nvalue of this entry is 0, code length increases are postponed as long as pos-\nsible. If it is 1, they occur one code early. This parameter is included because\nLZW sample code distributed by some vendors increases the code length one\ncode earlier than necessary. Default value: 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('CcittfaxdecodeFilterDictionary', 'Dictionary', 'Optional parameters for the CCITTFaxDecode filter')\ + .optional()\ + .field('K')\ + .name('K')\ + .type('integer')\ + .comment('()A code identifying the encoding scheme used:\n <0 Pure two-dimensional encoding (Group 4)\n 0 Pure one-dimensional encoding (Group 3, 1-D)\n >0 Mixed one- and two-dimensional encoding (Group 3,\n 2-D), in which a line encoded one-dimensionally can be\n followed by at most K - 1 lines encoded two-dimensionally\nThe filter distinguishes among negative, zero, and positive values of\nK to determine how to interpret the encoded data; however, it does\nnot distinguish between different positive K values. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('EndOfLine')\ + .name('EndOfLine')\ + .type('boolean')\ + .comment('()A flag indicating whether end-of-line bit patterns are required to be\npresent in the encoding. The CCITTFaxDecode filter always accepts\nend-of-line bit patterns, but requires them only if EndOfLine is true.\nDefault value: false.')\ + .done().done()\ + .optional()\ + .field('EncodedByteAlign')\ + .name('EncodedByteAlign')\ + .type('boolean')\ + .comment('()A flag indicating whether the filter expects extra 0 bits before each\nencoded line so that the line begins on a byte boundary. If true, the\nfilter skips over encoded bits to begin decoding each line at a byte\nboundary. If false, the filter does not expect extra bits in the encod-\ned representation. Default value: false.')\ + .done().done()\ + .optional()\ + .field('Columns')\ + .name('Columns')\ + .type('integer')\ + .comment('()The width of the image in pixels. If the value is not a multiple of 8,\nthe filter adjusts the width of the unencoded image to the next mul-\ntiple of 8, so that each line starts on a byte boundary. Default value:\n1728.')\ + .done().done()\ + .optional()\ + .field('Rows')\ + .name('Rows')\ + .type('integer')\ + .comment('()The height of the image in scan lines. If the value is 0 or absent, the\nimage\'s height is not predetermined, and the encoded data must be\nterminated by an end-of-block bit pattern or by the end of the fil-\nter\'s data. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('EndOfBlock')\ + .name('EndOfBlock')\ + .type('boolean')\ + .comment('()A flag indicating whether the filter expects the encoded data to be\nterminated by an end-of-block pattern, overriding the Rows pa-\nrameter. If false, the filter stops when it has decoded the number of\nlines indicated by Rows or when its data has been exhausted, which-\never occurs first. The end-of-block pattern is the CCITT end-of-\nfacsimile-block (EOFB) or return-to-control (RTC) appropriate for\nthe K parameter. Default value: true.')\ + .done().done()\ + .optional()\ + .field('BlackIs1')\ + .name('BlackIs1')\ + .type('boolean')\ + .comment('()A flag indicating whether 1 bits are to be interpreted as black pixels\nand 0 bits as white pixels, the reverse of the normal PDF convention\nfor image data. Default value: false.')\ + .done().done()\ + .optional()\ + .field('DamagedRowsBeforeError')\ + .name('DamagedRowsBeforeError')\ + .type('integer')\ + .comment('()The number of damaged rows of data to be tolerated before an\nerror occurs. This entry applies only if EndOfLine is true and K is\nnonnegative. Tolerating a damaged row means locating its end in\nthe encoded data by searching for an EndOfLine pattern and then\nsubstituting decoded data from the previous row if the previous\nrow was not damaged, or a white scan line if the previous row was\nalso damaged. Default value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('Jbig2DecodeFilterDictionary', 'Dictionary', 'Optional parameter for the JBIG2Decode filter')\ + .optional()\ + .field('JBIG2Globals')\ + .name('JBIG2Globals')\ + .type('stream')\ + .comment('()A stream containing the JBIG2 global (page 0) segments. Global segments\nmust be placed in this stream even if only a single JBIG2 image XObject refers\nto it.')\ + .done().done()\ + .done() + + pdfspec.addClass('DctdecodeFilterDictionary', 'Dictionary', 'Optional parameter for the DCTDecode filter')\ + .optional()\ + .field('ColorTransform')\ + .name('ColorTransform')\ + .type('integer')\ + .comment('()A code specifying the transformation to be performed on the sample values:\n 0 No transformation.\n 1 If the image has three color components, transform RGB values to\n YUV before encoding and from YUV to RGB after decoding. If the\n image has four components, transform CMYK values to YUVK be-\n fore encoding and from YUVK to CMYK after decoding. This option\n is ignored if the image has one or two color components.\nNote: The RGB and YUV used here have nothing to do with the color spaces de-\nfined as part of the Adobe imaging model. The purpose of converting from RGB\nto YUV is to separate luminance and chrominance information (see below).\nThe default value of ColorTransform is 1 if the image has three components\nand 0 otherwise. In other words, conversion between RGB and YUV is per-\nformed for all three-component images unless explicitly disabled by setting\nColorTransform to 0. Additionally, the encoding algorithm inserts an Adobe-\ndefined marker code in the encoded data indicating the ColorTransform value\nused. If present, this marker code overrides the ColorTransform value given to\nDCTDecode. Thus it is necessary to specify ColorTransform only when decod-\ning data that does not contain the Adobe-defined marker code.')\ + .done().done()\ + .done() + + pdfspec.addClass('FileTrailerDictionary', 'Dictionary', 'Entries in the file trailer dictionary')\ + .required('NULL')\ + .field('Size')\ + .name('Size')\ + .type('integer')\ + .comment('(Required) The total number of entries in the file\'s cross-reference table, as defined\nby the combination of the original section and all update sections. Equivalently, this\nvalue is 1 greater than the highest object number used in the file.')\ + .done().done()\ + .optional()\ + .field('Prev')\ + .name('Prev')\ + .type('integer')\ + .comment('(Present only if the file has more than one cross-reference section) The byte offset from\nthe beginning of the file to the beginning of the previous cross-reference section.')\ + .done().done()\ + .optional()\ + .field('Root')\ + .name('Root')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The catalog dictionary for the PDF docu-\nment contained in the file (see Section 3.6.1, "Document Catalog").')\ + .done().done()\ + .optional()\ + .field('Encrypt')\ + .name('Encrypt')\ + .type('dictionary')\ + .comment('(Required if document is encrypted; PDF 1.1) The document\'s encryption dictionary\n(see Section 3.5, "Encryption").')\ + .done().done()\ + .optional()\ + .field('Info')\ + .name('Info')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) The document\'s information dictionary\n(see Section 9.2.1, "Document Information Dictionary").')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('array')\ + .comment('(Optional; PDF 1.1) An array of two strings constituting a file identifier (see Section\n9.3, "File Identifiers") for the file.')\ + .done().done()\ + .done() + + pdfspec.addClass('EncryptionCommonDictionary', 'Dictionary', 'Entries common to all encryption dictionaries')\ + .required('NULL')\ + .field('Filter')\ + .name('Filter')\ + .type('name')\ + .comment('(Required) The name of the security handler for this document; see below. Default value:\nStandard, for the built-in security handler. (Names for other security handlers can be\nregistered using the procedure described in Appendix E.)')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('number')\ + .comment('(Optional but strongly recommended) A code specifying the algorithm to be used in en-\ncrypting and decrypting the document:\n 0 An algorithm that is undocumented and no longer supported, and whose use is\n strongly discouraged.\n 1 Algorithm 3.1 on page 73, with an encryption key length of 40 bits; see below.\n 2 (PDF 1.4) Algorithm 3.1 on page 73, but allowing encryption key lengths greater\n than 40 bits.\n 3 (PDF 1.4) An unpublished algorithm allowing encryption key lengths ranging\n from 40 to 128 bits. (This algorithm is unpublished as an export requirement of\n the U.S. Department of Commerce.)\nThe default value if this entry is omitted is 0, but a value of 1 or greater is strongly rec-\nommended. (See implementation note 15 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('Length')\ + .name('Length')\ + .type('integer')\ + .comment('(Optional; PDF 1.4; only if V is 2 or 3) The length of the encryption key, in bits. The value\nmust be a multiple of 8, in the range 40 to 128. Default value: 40.')\ + .done().done()\ + .done() + + pdfspec.addClass('StandardSecurityHandlerDictionary', 'Dictionary', 'Additional encryption dictionary entries for the standard security handler')\ + .required('NULL')\ + .field('R')\ + .name('R')\ + .type('number')\ + .comment('(Required) A number specifying which revision of the standard security handler should\nbe used to interpret this dictionary. The revision number should be 2 if the document is\nencrypted with a V value less than 2 (see Table 3.13) and does not have any of the access\npermissions set (via the P entry, below) that are designated "Revision 3" in Table 3.15;\notherwise (that is, if the document is encrypted with a V value greater than 2 or has any\n"Revision 3" access permissions set), this value should be 3.')\ + .done().done()\ + .required('NULL')\ + .field('O')\ + .name('O')\ + .type('string')\ + .comment('(Required) A 32-byte string, based on both the owner and user passwords, that is used in\ncomputing the encryption key and in determining whether a valid owner password was\nentered. For more information, see "Encryption Key Algorithm" on page 78 and "Pass-\nword Algorithms" on page 79.')\ + .done().done()\ + .required('NULL')\ + .field('U')\ + .name('U')\ + .type('string')\ + .comment('(Required) A 32-byte string, based on the user password, that is used in determining\nwhether to prompt the user for a password and, if so, whether a valid user or owner pass-\nword was entered. For more information, see "Password Algorithms" on page 79.')\ + .done().done()\ + .required('NULL')\ + .field('P')\ + .name('P')\ + .type('integer')\ + .comment('(Required) A set of flags specifying which operations are permitted when the document is\nopened with user access (see Table 3.15).')\ + .done().done()\ + .done() + + pdfspec.addClass('CatalogDictionary', 'Dictionary', 'Entries in the catalog dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must\nbe Catalog for the catalog dictionary.')\ + .done().done()\ + .optional()\ + .field('Version')\ + .name('Version')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The version of the PDF specification to which the\ndocument conforms (for example, 1.4), if later than the version specified\nin the file\'s header (see Section 3.4.1, "File Header"). If the header speci-\nfies a later version, or if this entry is absent, the document conforms to\nthe version specified in the header. This entry enables a PDF producer\napplication to update the version using an incremental update; see Sec-\ntion 3.4.5, "Incremental Updates." (See implementation note 18 in Ap-\npendix H.)\nNote: The value of this entry is a name object, not a number, and so must\nbe preceded by a slash character (/) when written in the PDF file (for ex-\nample, /1.4).')\ + .done().done()\ + .optional()\ + .field('Pages')\ + .name('Pages')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The page tree node that is the\nroot of the document\'s page tree (see Section 3.6.2, "Page Tree").')\ + .done().done()\ + .optional()\ + .field('PageLabels')\ + .name('PageLabels')\ + .type('number tree')\ + .comment('(Optional; PDF 1.3) A number tree (see Section 3.8.5, "Number Trees")\ndefining the page labeling for the document. The keys in this tree are\npage indices; the corresponding values are page label dictionaries (see\nSection 8.3.1, "Page Labels"). Each page index denotes the first page in a\nlabeling range to which the specified page label dictionary applies. The\ntree must include a value for page index 0.')\ + .done().done()\ + .optional()\ + .field('Names')\ + .name('Names')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) The document\'s name dictionary (see Section 3.6.3,\n"Name Dictionary").')\ + .done().done()\ + .optional()\ + .field('Dests')\ + .name('Dests')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.1; must be an indirect reference) A dictionary of names\nand corresponding destinations (see "Named Destinations" on page\n476).')\ + .done().done()\ + .optional()\ + .field('ViewerPreferences')\ + .name('ViewerPreferences')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) A viewer preferences dictionary (see Section 8.1,\n"Viewer Preferences") specifying the way the document is to be dis-\nplayed on the screen. If this entry is absent, viewer applications should\nuse their own current user preference settings.')\ + .done().done()\ + .optional()\ + .field('PageLayout')\ + .name('PageLayout')\ + .type('name')\ + .comment('(Optional) A name object specifying the page layout to be used when the\ndocument is opened:\n SinglePage Display one page at a time.\n OneColumn Display the pages in one column.\n TwoColumnLeft Display the pages in two columns, with odd-\n numbered pages on the left.\n TwoColumnRight Display the pages in two columns, with odd-\n numbered pages on the right.\n(See implementation note 19 in Appendix H.) Default value: SinglePage.')\ + .done().done()\ + .optional()\ + .field('PageMode')\ + .name('PageMode')\ + .type('name')\ + .comment('(Optional) A name object specifying how the document should be dis-\nplayed when opened:\n UseNone Neither document outline nor thumbnail im-\n ages visible\n UseOutlines Document outline visible\n UseThumbs Thumbnail images visible\n FullScreen Full-screen mode, with no menu bar, window\n controls, or any other window visible\nDefault value: UseNone.')\ + .done().done()\ + .optional()\ + .field('Outlines')\ + .name('Outlines')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) The outline dictionary that is the\nroot of the document\'s outline hierarchy (see Section 8.2.2, "Document\nOutline").')\ + .done().done()\ + .optional()\ + .field('Threads')\ + .name('Threads')\ + .type('array')\ + .comment('(Optional; PDF 1.1; must be an indirect reference) An array of thread\ndictionaries representing the document\'s article threads (see Section\n8.3.2, "Articles").')\ + .done().done()\ + .optional()\ + .field('OpenAction')\ + .name('OpenAction')\ + .type('array or dictionary')\ + .comment('(Optional; PDF 1.1) A value specifying a destination to be displayed or\nan action to be performed when the document is opened. The value is\neither an array defining a destination (see Section 8.2.1, "Destinations")\nor an action dictionary representing an action (Section 8.5, "Actions"). If\nthis entry is absent, the document should be opened to the top of the\nfirst page at the default magnification factor.')\ + .done().done()\ + .optional()\ + .field('AA')\ + .name('AA')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) An additional-actions dictionary defining the actions\nto be taken in response to various trigger events affecting the document\nas a whole (see "Trigger Events" on page 514). (See also implementation\nnote 20 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('URI')\ + .name('URI')\ + .type('dictionary')\ + .comment('(Optional) A URI dictionary containing document-level information for\nURI (uniform resource identifier) actions (see "URI Actions" on page\n523).')\ + .done().done()\ + .optional()\ + .field('AcroForm')\ + .name('AcroForm')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) The document\'s interactive form (AcroForm) dic-\ntionary (see Section 8.6.1, "Interactive Form Dictionary").')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4; must be an indirect reference) A metadata stream\ncontaining metadata for the document (see Section 9.2.2, "Metadata\nStreams").')\ + .done().done()\ + .optional()\ + .field('StructTreeRoot')\ + .name('StructTreeRoot')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) The document\'s structure tree root dictionary (see\nSection 9.6.1, "Structure Hierarchy").')\ + .done().done()\ + .optional()\ + .field('MarkInfo')\ + .name('MarkInfo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A mark information dictionary containing informa-\ntion about the document\'s usage of Tagged PDF conventions (see Sec-\ntion 9.7.1, "Mark Information Dictionary").')\ + .done().done()\ + .optional()\ + .field('Lang')\ + .name('Lang')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) A language identifier specifying the natural language\nfor all text in the document except where overridden by language speci-\nfications for structure elements or marked content (see Section 9.8.1,\n"Natural Language Specification"). If this entry is absent, the language is\nconsidered unknown.')\ + .done().done()\ + .optional()\ + .field('SpiderInfo')\ + .name('SpiderInfo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A Web Capture information dictionary containing\nstate information used by the Acrobat Web Capture (AcroSpider) plug-\nin extension (see Section 9.9.1, "Web Capture Information Dictionary").')\ + .done().done()\ + .optional()\ + .field('OutputIntents')\ + .name('OutputIntents')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of output intent dictionaries describing the\ncolor characteristics of output devices on which the document might be\nrendered (see "Output Intents" on page 684).')\ + .done().done()\ + .done() + + pdfspec.addClass('PageTreeNodeDictionary', 'Dictionary', 'Required entries in a page tree node')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be Pages for\na page tree node.')\ + .done().done()\ + .optional()\ + .field('Parent')\ + .name('Parent')\ + .type('dictionary')\ + .comment('(Required except in root node; must be an indirect reference) The page tree node that\nis the immediate parent of this one.')\ + .done().done()\ + .required('NULL')\ + .field('Kids')\ + .name('Kids')\ + .type('array')\ + .comment('(Required) An array of indirect references to the immediate children of this node.\nThe children may be page objects or other page tree nodes.')\ + .done().done()\ + .required('NULL')\ + .field('Count')\ + .name('Count')\ + .type('integer')\ + .comment('(Required) The number of leaf nodes (page objects) that are descendants of this\nnode within the page tree.')\ + .done().done()\ + .done() + + pdfspec.addClass('PageObjectDictionary', 'Dictionary', 'Entries in a page object')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nPage for a page object.')\ + .done().done()\ + .optional()\ + .field('Parent')\ + .name('Parent')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The page tree node that is the im-\nmediate parent of this page object.')\ + .done().done()\ + .optional()\ + .field('LastModified')\ + .name('LastModified')\ + .type('date')\ + .comment('(Required if PieceInfo is present; optional otherwise; PDF 1.3) The date and\ntime (see Section 3.8.2, "Dates") when the page\'s contents were most re-\ncently modified. If a page-piece dictionary (PieceInfo) is present, the\nmodification date is used to ascertain which of the application data dic-\ntionaries that it contains correspond to the current content of the page\n(see Section 9.4, "Page-Piece Dictionaries").')\ + .done().done()\ + .required('NULL')\ + .field('Resources')\ + .name('Resources')\ + .type('dictionary')\ + .comment('(Required; inheritable) A dictionary containing any resources required by\nthe page (see Section 3.7.2, "Resource Dictionaries"). If the page requires\nno resources, the value of this entry should be an empty dictionary; omit-\nting the entry entirely indicates that the resources are to be inherited from\nan ancestor node in the page tree.')\ + .done().done()\ + .required('NULL')\ + .field('MediaBox')\ + .name('MediaBox')\ + .type('rectangle')\ + .comment('(Required; inheritable) A rectangle (see Section 3.8.3, "Rectangles"), ex-\npressed in default user space units, defining the boundaries of the physical\nmedium on which the page is intended to be displayed or printed (see\nSection 9.10.1, "Page Boundaries").')\ + .done().done()\ + .optional()\ + .field('CropBox')\ + .name('CropBox')\ + .type('rectangle')\ + .comment('(Optional; inheritable) A rectangle, expressed in default user space units,\ndefining the visible region of default user space. When the page is dis-\nplayed or printed, its contents are to be clipped (cropped) to this rectangle\nand then imposed on the output medium in some implementation-\ndefined manner (see Section 9.10.1, "Page Boundaries"). Default value:\nthe value of MediaBox.')\ + .done().done()\ + .optional()\ + .field('BleedBox')\ + .name('BleedBox')\ + .type('rectangle')\ + .comment('(Optional; PDF 1.3) A rectangle, expressed in default user space units, de-\nfining the region to which the contents of the page should be clipped\nwhen output in a production environment (see Section 9.10.1, "Page\nBoundaries"). Default value: the value of CropBox.')\ + .done().done()\ + .optional()\ + .field('TrimBox')\ + .name('TrimBox')\ + .type('rectangle')\ + .comment('(Optional; PDF 1.3) A rectangle, expressed in default user space units, de-\nfining the intended dimensions of the finished page after trimming (see\nSection 9.10.1, "Page Boundaries"). Default value: the value of CropBox.')\ + .done().done()\ + .optional()\ + .field('ArtBox')\ + .name('ArtBox')\ + .type('rectangle')\ + .comment('(Optional; PDF 1.3) A rectangle, expressed in default user space units, de-\nfining the extent of the page\'s meaningful content (including potential\nwhite space) as intended by the page\'s creator (see Section 9.10.1, "Page\nBoundaries"). Default value: the value of CropBox.')\ + .done().done()\ + .optional()\ + .field('BoxColorInfo')\ + .name('BoxColorInfo')\ + .type('dictionary')\ + .comment('(Optional) A box color information dictionary specifying the colors and\nother visual characteristics to be used in displaying guidelines on the\nscreen for the various page boundaries (see "Display of Page Boundaries"\non page 679). If this entry is absent, the viewer application should use its\nown current default settings.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('stream or array')\ + .comment('(Optional) A content stream (see Section 3.7.1, "Content Streams") de-\nscribing the contents of this page. If this entry is absent, the page is empty.\nThe value may be either a single stream or an array of streams. If it is an\narray, the effect is as if all of the streams in the array were concatenated, in\norder, to form a single stream. This allows a program generating a PDF\nfile to create image objects and other resources as they occur, even though\nthey interrupt the content stream. The division between streams may\noccur only at the boundaries between lexical tokens (see Section 3.1, "Lex-\nical Conventions"), but is unrelated to the page\'s logical content or orga-\nnization. Applications that consume or produce PDF files are not required\nto preserve the existing structure of the Contents array. (See implementa-\ntion note 22 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('Rotate')\ + .name('Rotate')\ + .type('integer')\ + .comment('(Optional; inheritable) The number of degrees by which the page should\nbe rotated clockwise when displayed or printed. The value must be a mul-\ntiple of 90. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('Group')\ + .name('Group')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A group attributes dictionary specifying the attributes\nof the page\'s page group for use in the transparent imaging model (see\nSections 7.3.6, "Page Group," and 7.5.5, "Transparency Group XObjects").')\ + .done().done()\ + .optional()\ + .field('Thumb')\ + .name('Thumb')\ + .type('stream')\ + .comment('(Optional) A stream object defining the page\'s thumbnail image (see Sec-\ntion 8.2.3, "Thumbnail Images").')\ + .done().done()\ + .optional()\ + .field('B')\ + .name('B')\ + .type('array')\ + .comment('(Optional; PDF 1.1; recommended if the page contains article beads) An ar-\nray of indirect references to article beads appearing on the page (see Sec-\ntion 8.3.2, "Articles"; see also implementation note 23 in Appendix H).\nThe beads are listed in the array in natural reading order.')\ + .done().done()\ + .optional()\ + .field('Dur')\ + .name('Dur')\ + .type('number')\ + .comment('(Optional; PDF 1.1) The page\'s display duration (also called its advance\ntiming): the maximum length of time, in seconds, that the page will be\ndisplayed during presentations before the viewer application automati-\ncally advances to the next page (see Section 8.3.3, "Presentations"). By\ndefault, the viewer does not advance automatically.')\ + .done().done()\ + .optional()\ + .field('Trans')\ + .name('Trans')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.1) A transition dictionary describing the transition effect\nto be used when displaying the page during presentations (see Section\n8.3.3, "Presentations").')\ + .done().done()\ + .optional()\ + .field('Annots')\ + .name('Annots')\ + .type('array')\ + .comment('(Optional) An array of annotation dictionaries representing annotations\nassociated with the page (see Section 8.4, "Annotations").')\ + .done().done()\ + .optional()\ + .field('AA')\ + .name('AA')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An additional-actions dictionary defining actions to\nbe performed when the page is opened or closed (see Section 8.5.2, "Trig-\nger Events"; see also implementation note 24 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the page\n(see Section 9.2.2, "Metadata Streams").')\ + .done().done()\ + .optional()\ + .field('PieceInfo')\ + .name('PieceInfo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A page-piece dictionary associated with the page (see\nSection 9.4, "Page-Piece Dictionaries").')\ + .done().done()\ + .optional()\ + .field('StructParents')\ + .name('StructParents')\ + .type('integer')\ + .comment('(Required if the page contains structural content items; PDF 1.3) The inte-\nger key of the page\'s entry in the structural parent tree (see "Finding Struc-\nture Elements from Content Items" on page 600).')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('string')\ + .comment('(Optional; PDF 1.3; indirect reference preferred) The digital identifier of the\npage\'s parent Web Capture content set (see Section 9.9.5, "Object At-\ntributes Related to Web Capture").')\ + .done().done()\ + .optional()\ + .field('PZ')\ + .name('PZ')\ + .type('number')\ + .comment('(Optional; PDF 1.3) The page\'s preferred zoom (magnification) factor: the\nfactor by which it should be scaled to achieve the "natural" display magni-\nfication (see Section 9.9.5, "Object Attributes Related to Web Capture").')\ + .done().done()\ + .optional()\ + .field('SeparationInfo')\ + .name('SeparationInfo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A separation dictionary containing information need-\ned to generate color separations for the page (see Section 9.10.3, "Separa-\ntion Dictionaries").')\ + .done().done()\ + .done() + + pdfspec.addClass('NameDictionary', 'Dictionary', 'Entries in the name dictionary')\ + .optional()\ + .field('Dests')\ + .name('Dests')\ + .type('name tree')\ + .comment('(Optional; PDF 1.2) A name tree mapping name strings to destinations (see\n"Named Destinations" on page 476).')\ + .done().done()\ + .optional()\ + .field('AP')\ + .name('AP')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping name strings to annotation\nappearance streams (see Section 8.4.4, "Appearance Streams").')\ + .done().done()\ + .optional()\ + .field('JavaScript')\ + .name('JavaScript')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping name strings to document-level\nJavaScript(R) actions (see "JavaScript Actions" on page 556).')\ + .done().done()\ + .optional()\ + .field('Pages')\ + .name('Pages')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping name strings to visible pages for\nuse in interactive forms (see Section 8.6.5, "Named Pages").')\ + .done().done()\ + .optional()\ + .field('Templates')\ + .name('Templates')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping name strings to invisible (tem-\nplate) pages for use in interactive forms (see Section 8.6.5, "Named Pages").')\ + .done().done()\ + .optional()\ + .field('IDS')\ + .name('IDS')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping digital identifiers to Web Capture\ncontent sets (see Section 9.9.3, "Content Sets").')\ + .done().done()\ + .optional()\ + .field('URLS')\ + .name('URLS')\ + .type('name tree')\ + .comment('(Optional; PDF 1.3) A name tree mapping uniform resource locators (URLs)\nto Web Capture content sets (see Section 9.9.3, "Content Sets").')\ + .done().done()\ + .optional()\ + .field('EmbeddedFiles')\ + .name('EmbeddedFiles')\ + .type('name tree')\ + .comment('(Optional; PDF 1.4) A name tree mapping name strings to embedded file\nstreams (see Section 3.10.3, "Embedded File Streams").')\ + .done().done()\ + .done() + + pdfspec.addClass('ResourceDictionary', 'Dictionary', 'Entries in a resource dictionary')\ + .optional()\ + .field('ExtGState')\ + .name('ExtGState')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping resource names to graphics state parameter\ndictionaries (see Section 4.3.4, "Graphics State Parameter Dictionaries").')\ + .done().done()\ + .optional()\ + .field('ColorSpace')\ + .name('ColorSpace')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping each resource name to either the name of a\ndevice-dependent color space or an array describing a color space (see Sec-\ntion 4.5, "Color Spaces").')\ + .done().done()\ + .optional()\ + .field('Pattern')\ + .name('Pattern')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping resource names to pattern objects (see Sec-\ntion 4.6, "Patterns").')\ + .done().done()\ + .optional()\ + .field('Shading')\ + .name('Shading')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A dictionary mapping resource names to shading dic-\ntionaries (see "Shading Dictionaries" on page 233).')\ + .done().done()\ + .optional()\ + .field('XObject')\ + .name('XObject')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping resource names to external objects (see Sec-\ntion 4.7, "External Objects").')\ + .done().done()\ + .optional()\ + .field('Font')\ + .name('Font')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping resource names to font dictionaries (see\nChapter 5).')\ + .done().done()\ + .optional()\ + .field('ProcSet')\ + .name('ProcSet')\ + .type('array')\ + .comment('(Optional) An array of predefined procedure set names (see Section 9.1,\n"Procedure Sets").')\ + .done().done()\ + .optional()\ + .field('Properties')\ + .name('Properties')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) A dictionary mapping resource names to property list\ndictionaries for marked content (see Section 9.5.1, "Property Lists").')\ + .done().done()\ + .done() + + pdfspec.addClass('NameTreeNodeDictionary', 'Dictionary', 'Entries in a name tree node dictionary')\ + .optional()\ + .field('Kids')\ + .name('Kids')\ + .type('array')\ + .comment('(Root and intermediate nodes only; required in intermediate nodes; present in the root node\nif and only if Names is not present) An array of indirect references to the immediate chil-\ndren of this node. The children may be intermediate or leaf nodes.')\ + .done().done()\ + .optional()\ + .field('Names')\ + .name('Names')\ + .type('array')\ + .comment('(Root and leaf nodes only; required in leaf nodes; present in the root node if and only if Kids\nis not present) An array of the form\n [key1 value1 key2 value2 ... keyn valuen ]\nwhere each keyi is a string and the corresponding valuei is an indirect reference to the\nobject associated with that key. The keys are sorted in lexical order, as described below.')\ + .done().done()\ + .optional()\ + .field('Limits')\ + .name('Limits')\ + .type('array')\ + .comment('(Intermediate and leaf nodes only; required) An array of two strings, specifying the (lexi-\ncally) least and greatest keys included in the Names array of a leaf node or in the Names\narrays of any leaf nodes that are descendants of an intermediate node.')\ + .done().done()\ + .done() + + pdfspec.addClass('NumberTreeNodeDictionary', 'Dictionary', 'Entries in a number tree node dictionary')\ + .optional()\ + .field('Kids')\ + .name('Kids')\ + .type('array')\ + .comment('(Root and intermediate nodes only; required in intermediate nodes; present in the root node\nif and only if Nums is not present) An array of indirect references to the immediate chil-\ndren of this node. The children may be intermediate or leaf nodes.')\ + .done().done()\ + .optional()\ + .field('Nums')\ + .name('Nums')\ + .type('array')\ + .comment('(Root and leaf nodes only; required in leaf nodes; present in the root node if and only if Kids\nis not present) An array of the form\n [key1 value1 key2 value2 ... keyn valuen ]\nwhere each keyi is an integer and the corresponding valuei is an indirect reference to the\nobject associated with that key. The keys are sorted in numerical order, analogously to\nthe arrangement of keys in a name tree as described in Section 3.8.4, "Name Trees."')\ + .done().done()\ + .optional()\ + .field('Limits')\ + .name('Limits')\ + .type('array')\ + .comment('(Intermediate and leaf nodes only; required) An array of two integers, specifying the\n(numerically) least and greatest keys included in the Nums array of a leaf node or in the\nNums arrays of any leaf nodes that are descendants of an intermediate node.')\ + .done().done()\ + .done() + + pdfspec.addClass('FunctionCommonDictionary', 'Dictionary', 'Entries common to all function dictionaries')\ + .required('NULL')\ + .field('FunctionType')\ + .name('FunctionType')\ + .type('integer')\ + .comment('(Required) The function type:\n 0 Sampled function\n 2 Exponential interpolation function\n 3 Stitching function\n 4 PostScript calculator function')\ + .done().done()\ + .required('NULL')\ + .field('Domain')\ + .name('Domain')\ + .type('array')\ + .comment('(Required) An array of 2 x m numbers, where m is the number of input\nvalues. For each i from 0 to m - 1, Domain2i must be less than or equal to\nDomain2i+1 , and the ith input value, xi , must lie in the interval\nDomain2i <= xi <= Domain2i+1 . Input values outside the declared domain are\nclipped to the nearest boundary value.')\ + .done().done()\ + .optional()\ + .field('Range')\ + .name('Range')\ + .type('array')\ + .comment('(Required for type 0 and type 4 functions, optional otherwise; see below) An\narray of 2 x n numbers, where n is the number of output values. For each j\nfrom 0 to n - 1, Range2j must be less than or equal to Range2j+1 , and the jth\noutput value, yj , must lie in the interval Range2j <= yj <= Range2j+1 . Output\nvalues outside the declared range are clipped to the nearest boundary value.\nIf this entry is absent, no clipping is done.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type0FunctionDictionary', 'Dictionary', 'Additional entries specific to a type 0 function dictionary')\ + .required('NULL')\ + .field('Size')\ + .name('Size')\ + .type('array')\ + .comment('(Required) An array of m positive integers specifying the number of samples\nin each input dimension of the sample table.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerSample')\ + .name('BitsPerSample')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each sample. (If the function\nhas multiple output values, each one occupies BitsPerSample bits.) Valid\nvalues are 1, 2, 4, 8, 12, 16, 24, and 32.')\ + .done().done()\ + .optional()\ + .field('Order')\ + .name('Order')\ + .type('integer')\ + .comment('(Optional) The order of interpolation between samples. Valid values are 1\nand 3, specifying linear and cubic spline interpolation, respectively. (See im-\nplementation note 26 in Appendix H.) Default value: 1.')\ + .done().done()\ + .optional()\ + .field('Encode')\ + .name('Encode')\ + .type('array')\ + .comment('(Optional) An array of 2 x m numbers specifying the linear mapping of input\nvalues into the domain of the function\'s sample table. Default value:\n[0 (Size0 - 1) 0 (Size1 - 1) ...].')\ + .done().done()\ + .optional()\ + .field('Decode')\ + .name('Decode')\ + .type('array')\ + .comment('(Optional) An array of 2 x n numbers specifying the linear mapping of sam-\nple values into the range appropriate for the function\'s output values. Default\nvalue: same as the value of Range.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type2FunctionDictionary', 'Dictionary', 'Additional entries specific to a type 2 function dictionary')\ + .optional()\ + .field('C0')\ + .name('C0')\ + .type('array')\ + .comment('(Optional) An array of n numbers defining the function result when x = 0.0 (hence the "0"\nin the name). Default value: [0.0].')\ + .done().done()\ + .optional()\ + .field('C1')\ + .name('C1')\ + .type('array')\ + .comment('(Optional) An array of n numbers defining the function result when x = 1.0 (hence the "1"\nin the name). Default value: [1.0].')\ + .done().done()\ + .required('NULL')\ + .field('N')\ + .name('N')\ + .type('number')\ + .comment('(Required) The interpolation exponent. Each input value x will return n values, given by\nyj = C0j + xN x (C1j - C0j ), for 0 <= j < n.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type3FunctionDictionary', 'Dictionary', 'Additional entries specific to a type 3 function dictionary')\ + .required('NULL')\ + .field('Functions')\ + .name('Functions')\ + .type('array')\ + .comment('(Required) An array of k 1-input functions making up the stitching function. The out-\nput dimensionality of all functions must be the same, and compatible with the value of\nRange if Range is present.')\ + .done().done()\ + .required('NULL')\ + .field('Bounds')\ + .name('Bounds')\ + .type('array')\ + .comment('(Required) An array of k - 1 numbers that, in combination with Domain, define the\nintervals to which each function from the Functions array applies. Bounds elements\nmust be in order of increasing value, and each value must be within the domain\ndefined by Domain.')\ + .done().done()\ + .required('NULL')\ + .field('Encode')\ + .name('Encode')\ + .type('array')\ + .comment('(Required) An array of 2 x k numbers that, taken in pairs, map each subset of the do-\nmain defined by Domain and the Bounds array to the domain of the corresponding\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('FileSpecificationDictionary', 'Dictionary', 'Entries in a file specification dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required if an EF or RF entry is present; recommended always) The type of PDF object\nthat this dictionary describes; must be Filespec for a file specification dictionary.')\ + .done().done()\ + .optional()\ + .field('FS')\ + .name('FS')\ + .type('name')\ + .comment('(Optional) The name of the file system to be used to interpret this file specification. If\nthis entry is present, all other entries in the dictionary are interpreted by the desig-\nnated file system. PDF defines only one standard file system, URL (see Section 3.10.4,\n"URL Specifications"); a viewer application or plug-in extension can register a differ-\nent one (see Appendix E). Note that this entry is independent of the F, DOS, Mac, and\nUnix entries.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('string')\ + .comment('(Required if the DOS, Mac, and Unix entries are all absent) A file specification string of\nthe form described in Section 3.10.1, "File Specification Strings," or (if the file system\nis URL) a uniform resource locator, as described in Section 3.10.4, "URL Specifica-\ntions."')\ + .done().done()\ + .optional()\ + .field('DOS')\ + .name('DOS')\ + .type('string')\ + .comment('(Optional) A file specification string (see Section 3.10.1, "File Specification Strings")\nrepresenting a DOS file name.')\ + .done().done()\ + .optional()\ + .field('Mac')\ + .name('Mac')\ + .type('string')\ + .comment('(Optional) A file specification string (see Section 3.10.1, "File Specification Strings")\nrepresenting a Mac OS file name.')\ + .done().done()\ + .optional()\ + .field('Unix')\ + .name('Unix')\ + .type('string')\ + .comment('(Optional) A file specification string (see Section 3.10.1, "File Specification Strings")\nrepresenting a UNIX file name.')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('array')\ + .comment('(Optional) An array of two strings constituting a file identifier (see Section 9.3, "File\nIdentifiers") that is also included in the referenced file. The use of this entry improves\na viewer application\'s chances of finding the intended file and allows it to warn the\nuser if the file has changed since the link was made.')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('boolean')\ + .comment('(Optional; PDF 1.2) A flag indicating whether the file referenced by the file specifica-\ntion is volatile (changes frequently with time). If the value is true, viewer applications\nshould never cache a copy of the file. For example, a movie annotation referencing a\nURL to a live video camera could set this flag to true, notifying the application that it\nshould reacquire the movie each time it is played. Default value: false.')\ + .done().done()\ + .optional()\ + .field('EF')\ + .name('EF')\ + .type('dictionary')\ + .comment('(Required if RF is present; PDF 1.3) A dictionary containing a subset of the keys F,\nDOS, Mac, and Unix, corresponding to the entries by those names in the file specifica-\ntion dictionary. The value of each such key is an embedded file stream (see Section\n3.10.3, "Embedded File Streams") containing the corresponding file. If this entry is\npresent, the Type entry is required and the file specification dictionary must be indi-\nrectly referenced.')\ + .done().done()\ + .optional()\ + .field('RF')\ + .name('RF')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A dictionary with the same structure as the EF dictionary, which\nmust also be present. Each key in the RF dictionary must also be present in the EF dic-\ntionary. Each value is a related files array (see "Related Files Arrays" on page 125)\nidentifying files that are related to the corresponding file in the EF dictionary. If this\nentry is present, the Type entry is required and the file specification dictionary must\nbe indirectly referenced.')\ + .done().done()\ + .done() + + pdfspec.addClass('EmbeddedFileStreamDictionary', 'Dictionary', 'Additional entries in an embedded file stream dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be EmbeddedFile for an embedded file stream.')\ + .done().done()\ + .optional()\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Optional) The subtype of the embedded file. The value of this entry must be\na first-class name, as defined in Appendix E. Names without a registered pre-\nfix must conform to the MIME media type names defined in Internet RFC\n2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types\n(see the Bibliography), with the provision that characters not allowed in\nnames must use the 2-character hexadecimal code format described in Sec-\ntion 3.2.4, "Name Objects."')\ + .done().done()\ + .optional()\ + .field('Params')\ + .name('Params')\ + .type('dictionary')\ + .comment('(Optional) An embedded file parameter dictionary containing additional, file-\nspecific information (see Table 3.34).')\ + .done().done()\ + .done() + + pdfspec.addClass('EmbeddedFileParameterDictionary', 'Dictionary', 'Entries in an embedded file parameter dictionary')\ + .optional()\ + .field('Size')\ + .name('Size')\ + .type('integer')\ + .comment('(Optional) The size of the embedded file, in bytes.')\ + .done().done()\ + .optional()\ + .field('CreationDate')\ + .name('CreationDate')\ + .type('date')\ + .comment('(Optional) The date and time when the embedded file was created.')\ + .done().done()\ + .optional()\ + .field('ModDate')\ + .name('ModDate')\ + .type('date')\ + .comment('(Optional) The date and time when the embedded file was last modified.')\ + .done().done()\ + .optional()\ + .field('Mac')\ + .name('Mac')\ + .type('dictionary')\ + .comment('(Optional) A subdictionary containing additional information specific to\nMac OS files (see Table 3.35).')\ + .done().done()\ + .optional()\ + .field('CheckSum')\ + .name('CheckSum')\ + .type('string')\ + .comment('(Optional) A 16-byte string that is the checksum of the bytes of the uncom-\npressed embedded file. The checksum is calculated by applying the standard\nMD5 message-digest algorithm (described in Internet RFC 1321, The MD5\nMessage-Digest Algorithm; see the Bibliography) to the bytes of the embedded\nfile stream.')\ + .done().done()\ + .done() + + pdfspec.addClass('MacOsFileInformationDictionary', 'Dictionary', 'Entries in a Mac OS file information dictionary')\ + .optional()\ + .field('Subtype')\ + .name('Subtype')\ + .type('string')\ + .comment('(Optional) The embedded file\'s file type.')\ + .done().done()\ + .optional()\ + .field('Creator')\ + .name('Creator')\ + .type('string')\ + .comment('(Optional) The embedded file\'s creator signature.')\ + .done().done()\ + .optional()\ + .field('ResFork')\ + .name('ResFork')\ + .type('stream')\ + .comment('(Optional) The binary contents of the embedded file\'s resource fork.')\ + .done().done()\ + .done() + + pdfspec.addClass('GraphicsStateDictionary', 'Dictionary', 'Entries in a graphics state parameter dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; must be\nExtGState for a graphics state parameter dictionary.')\ + .done().done()\ + .optional()\ + .field('LW')\ + .name('LW')\ + .type('number')\ + .comment('(Optional; PDF 1.3) The line width (see "Line Width" on page 152).')\ + .done().done()\ + .optional()\ + .field('LC')\ + .name('LC')\ + .type('integer')\ + .comment('(Optional; PDF 1.3) The line cap style (see "Line Cap Style" on page 153).')\ + .done().done()\ + .optional()\ + .field('LJ')\ + .name('LJ')\ + .type('integer')\ + .comment('(Optional; PDF 1.3) The line join style (see "Line Join Style" on page 153).')\ + .done().done()\ + .optional()\ + .field('ML')\ + .name('ML')\ + .type('number')\ + .comment('(Optional; PDF 1.3) The miter limit (see "Miter Limit" on page 153).')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('array')\ + .comment('(Optional; PDF 1.3) The line dash pattern, expressed as an array of the form\n[dashArray dashPhase], where dashArray is itself an array and dashPhase is an\ninteger (see "Line Dash Pattern" on page 155).')\ + .done().done()\ + .optional()\ + .field('RI')\ + .name('RI')\ + .type('name')\ + .comment('(Optional; PDF 1.3) The name of the rendering intent (see "Rendering\nIntents" on page 197).')\ + .done().done()\ + .optional()\ + .field('OP')\ + .name('OP')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to apply overprint (see Section 4.5.6,\n"Overprint Control"). In PDF 1.2 and earlier, there is a single overprint\nparameter that applies to all painting operations. Beginning with PDF 1.3,\nthere are two separate overprint parameters: one for stroking and one for all\nother painting operations. Specifying an OP entry sets both parameters un-\nless there is also an op entry in the same graphics state parameter dictionary,\nin which case the OP entry sets only the overprint parameter for stroking.')\ + .done().done()\ + .optional()\ + .field('op')\ + .name('op')\ + .type('boolean')\ + .comment('(Optional; PDF 1.3) A flag specifying whether to apply overprint (see Section\n4.5.6, "Overprint Control") for painting operations other than stroking. If\nthis entry is absent, the OP entry, if any, sets this parameter.')\ + .done().done()\ + .optional()\ + .field('OPM')\ + .name('OPM')\ + .type('integer')\ + .comment('(Optional; PDF 1.3) The overprint mode (see Section 4.5.6, "Overprint Con-\ntrol").')\ + .done().done()\ + .optional()\ + .field('Font')\ + .name('Font')\ + .type('array')\ + .comment('(Optional; PDF 1.3) An array of the form [font size], where font is an indirect\nreference to a font dictionary and size is a number expressed in text space\nunits. These two objects correspond to the operands of the Tf operator (see\nSection 5.2, "Text State Parameters and Operators"); however, the first oper-\nand is an indirect object reference instead of a resource name.')\ + .done().done()\ + .optional()\ + .field('BG')\ + .name('BG')\ + .type('function')\ + .comment('(Optional) The black-generation function, which maps the interval [0.0 1.0]\nto the interval [0.0 1.0] (see Section 6.2.3, "Conversion from DeviceRGB to\nDeviceCMYK").')\ + .done().done()\ + .optional()\ + .field('BG2')\ + .name('BG2')\ + .type('function or name')\ + .comment('(Optional; PDF 1.3) Same as BG except that the value may also be the name\nDefault, denoting the black-generation function that was in effect at the start\nof the page. If both BG and BG2 are present in the same graphics state param-\neter dictionary, BG2 takes precedence.')\ + .done().done()\ + .optional()\ + .field('UCR')\ + .name('UCR')\ + .type('function')\ + .comment('(Optional) The undercolor-removal function, which maps the interval\n[0.0 1.0] to the interval [-1.0 1.0] (see Section 6.2.3, "Conversion from\nDeviceRGB to DeviceCMYK").')\ + .done().done()\ + .optional()\ + .field('UCR2')\ + .name('UCR2')\ + .type('function or name')\ + .comment('(Optional; PDF 1.3) Same as UCR except that the value may also be the name\nDefault, denoting the undercolor-removal function that was in effect at the\nstart of the page. If both UCR and UCR2 are present in the same graphics state\nparameter dictionary, UCR2 takes precedence.')\ + .done().done()\ + .optional()\ + .field('TR')\ + .name('TR')\ + .type('function, array, or name')\ + .comment('(Optional) The transfer function, which maps the interval [0.0 1.0] to the\ninterval [0.0 1.0] (see Section 6.3, "Transfer Functions"). The value is either\na single function (which applies to all process colorants) or an array of four\nfunctions (which apply to the process colorants individually). The name\nIdentity may be used to represent the identity function.')\ + .done().done()\ + .optional()\ + .field('TR2')\ + .name('TR2')\ + .type('function, array, or name')\ + .comment('(Optional; PDF 1.3) Same as TR except that the value may also be the name\nDefault, denoting the transfer function that was in effect at the start of the\npage. If both TR and TR2 are present in the same graphics state parameter dic-\ntionary, TR2 takes precedence.')\ + .done().done()\ + .optional()\ + .field('HT')\ + .name('HT')\ + .type('dictionary, stream, or name')\ + .comment('(Optional) The halftone dictionary or stream (see Section 6.4, "Halftones")\nor the name Default, denoting the halftone that was in effect at the start of the\npage.')\ + .done().done()\ + .optional()\ + .field('FL')\ + .name('FL')\ + .type('number')\ + .comment('(Optional; PDF 1.3) The flatness tolerance (see Section 6.5.1, "Flatness Toler-\nance").')\ + .done().done()\ + .optional()\ + .field('SM')\ + .name('SM')\ + .type('number')\ + .comment('(Optional; PDF 1.3) The smoothness tolerance (see Section 6.5.2, "Smooth-\nness Tolerance").')\ + .done().done()\ + .optional()\ + .field('SA')\ + .name('SA')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to apply automatic stroke adjustment\n(see Section 6.5.4, "Automatic Stroke Adjustment").')\ + .done().done()\ + .optional()\ + .field('BM')\ + .name('BM')\ + .type('name or array')\ + .comment('(Optional; PDF 1.4) The current blend mode to be used in the transparent\nimaging model (see Sections 7.2.4, "Blend Mode," and 7.5.2, "Specifying\nBlending Color Space and Blend Mode").')\ + .done().done()\ + .optional()\ + .field('SMask')\ + .name('SMask')\ + .type('dictionary or name')\ + .comment('(Optional; PDF 1.4) The current soft mask, specifying the mask shape or\nmask opacity values to be used in the transparent imaging model (see\n"Source Shape and Opacity" on page 421 and "Mask Shape and Opacity" on\npage 443).\nNote: Although the current soft mask is sometimes referred to as a "soft clip,"\naltering it with the gs operator completely replaces the old value with the new\none, rather than intersecting the two as is done with the current clipping path\nparameter (see Section 4.4.3, "Clipping Path Operators").')\ + .done().done()\ + .optional()\ + .field('CA')\ + .name('CA')\ + .type('number')\ + .comment('(Optional; PDF 1.4) The current stroking alpha constant, specifying the con-\nstant shape or constant opacity value to be used for stroking operations in the\ntransparent imaging model (see "Source Shape and Opacity" on page 421\nand "Constant Shape and Opacity" on page 444).')\ + .done().done()\ + .optional()\ + .field('ca')\ + .name('ca')\ + .type('number')\ + .comment('(Optional; PDF 1.4) Same as CA, but for nonstroking operations.')\ + .done().done()\ + .optional()\ + .field('AIS')\ + .name('AIS')\ + .type('boolean')\ + .comment('(Optional; PDF 1.4) The alpha source flag ("alpha is shape"), specifying\nwhether the current soft mask and alpha constant are to be interpreted as\nshape values (true) or opacity values (false).')\ + .done().done()\ + .optional()\ + .field('TK')\ + .name('TK')\ + .type('boolean')\ + .comment('(Optional; PDF 1.4) The text knockout flag, which determines the behavior\nof overlapping glyphs within a text object in the transparent imaging model\n(see Section 5.2.7, "Text Knockout").')\ + .done().done()\ + .done() + + pdfspec.addClass('CalgrayColorSpaceDictionary', 'Dictionary', 'Entries in a CalGray color space dictionary')\ + .required('NULL')\ + .field('WhitePoint')\ + .name('WhitePoint')\ + .type('array')\ + .comment('(Required) An array of three numbers [XW YW ZW ] specifying the tri-\nstimulus value, in the CIE 1931 XYZ space, of the diffuse white point; see\n"CalRGB Color Spaces," below, for further discussion. The numbers XW and\nZW must be positive, and YW must be equal to 1.0.')\ + .done().done()\ + .optional()\ + .field('BlackPoint')\ + .name('BlackPoint')\ + .type('array')\ + .comment('(Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus\nvalue, in the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB\nColor Spaces," below, for further discussion. All three of these numbers must\nbe nonnegative. Default value: [0.0 0.0 0.0].')\ + .done().done()\ + .optional()\ + .field('Gamma')\ + .name('Gamma')\ + .type('number')\ + .comment('(Optional) A number G defining the gamma for the gray (A) component. G\nmust be positive and will generally be greater than or equal to 1. Default\nvalue: 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('CalrgbColorSpaceDictionary', 'Dictionary', 'Entries in a CalRGB color space dictionary')\ + .required('NULL')\ + .field('WhitePoint')\ + .name('WhitePoint')\ + .type('array')\ + .comment('(Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus value,\nin the CIE 1931 XYZ space, of the diffuse white point; see below for further discus-\nsion. The numbers XW and ZW must be positive, and YW must be equal to 1.0.')\ + .done().done()\ + .optional()\ + .field('BlackPoint')\ + .name('BlackPoint')\ + .type('array')\ + .comment('(Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus value, in\nthe CIE 1931 XYZ space, of the diffuse black point; see below for further discussion.\nAll three of these numbers must be nonnegative. Default value: [0.0 0.0 0.0].')\ + .done().done()\ + .optional()\ + .field('Gamma')\ + .name('Gamma')\ + .type('array')\ + .comment('(Optional) An array of three numbers [ GR GG GB ] specifying the gamma for the red,\ngreen, and blue (A, B, and C) components of the color space. Default value:\n[1.0 1.0 1.0].')\ + .done().done()\ + .optional()\ + .field('Matrix')\ + .name('Matrix')\ + .type('array')\ + .comment('(Optional) An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifying\nthe linear interpretation of the decoded A, B, and C components of the color space\nwith respect to the final XYZ representation. Default value: the identity matrix\n[1 0 0 0 1 0 0 0 1].')\ + .done().done()\ + .done() + + pdfspec.addClass('LabColorSpaceDictionary', 'Dictionary', 'Entries in a Lab color space dictionary')\ + .required('NULL')\ + .field('WhitePoint')\ + .name('WhitePoint')\ + .type('array')\ + .comment('(Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus value,\nin the CIE 1931 XYZ space, of the diffuse white point; see "CalRGB Color Spaces" on\npage 184 for further discussion. The numbers XW and ZW must be positive, and YW\nmust be equal to 1.0.')\ + .done().done()\ + .optional()\ + .field('BlackPoint')\ + .name('BlackPoint')\ + .type('array')\ + .comment('(Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus value, in\nthe CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces" on\npage 184 for further discussion. All three of these numbers must be nonnegative.\nDefault value: [0.0 0.0 0.0].')\ + .done().done()\ + .optional()\ + .field('Range')\ + .name('Range')\ + .type('array')\ + .comment('(Optional) An array of four numbers [ amin amax bmin bmax ] specifying the range of\nvalid values for the a* and b* (B and C) components of the color space-that is,\n a min <= a* <= a max\nand\n b min <= b* <= b max\nComponent values falling outside the specified range will be adjusted to the nearest\nvalid value without error indication. Default value: [ -100 100 -100 100].')\ + .done().done()\ + .done() + + pdfspec.addClass('IccProfileStreamDictionary', 'Dictionary', 'Additional entries specific to an ICC profile stream dictionary')\ + .required('NULL')\ + .field('N')\ + .name('N')\ + .type('integer')\ + .comment('(Required) The number of color components in the color space described by the ICC\nprofile data. This number must match the number of components actually in the ICC\nprofile. As of PDF 1.4, N must be 1, 3, or 4.')\ + .done().done()\ + .optional()\ + .field('Alternate')\ + .name('Alternate')\ + .type('array or name')\ + .comment('(Optional) An alternate color space to be used in case the one specified in the stream\ndata is not supported (for example, by viewer applications designed for earlier\nversions of PDF). The alternate space may be any valid color space (except a Pattern\ncolor space) that has the number of components specified by N. If this entry is omit-\nted and the viewer application does not understand the ICC profile data, the color\nspace used will be DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether\nthe value of N is 1, 3, or 4, respectively.\nNote: Note that there is no conversion of source color values, such as a tint transforma-\ntion, when using the alternate color space. Color values that are within the range of the\nICCBased color space might not be within the range of the alternate color space. In this\ncase, the nearest values within the range of the alternate space will be substituted.')\ + .done().done()\ + .optional()\ + .field('Range')\ + .name('Range')\ + .type('array')\ + .comment('(Optional) An array of 2 x N numbers [min0 max0 min1 max1 ... ] specifying the\nminimum and maximum valid values of the corresponding color components.\nThese values must match the information in the ICC profile. Default value:\n[0.0 1.0 0.0 1.0 ...].')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the color space (see\nSection 9.2.2, "Metadata Streams").')\ + .done().done()\ + .done() + + pdfspec.addClass('DeviceNColorSpaceDictionary', 'Dictionary', 'Entry in a DeviceN color space attributes dictionary')\ + .optional()\ + .field('Colorants')\ + .name('Colorants')\ + .type('dictionary')\ + .comment('(Optional) A dictionary describing the individual colorants used in the DeviceN\ncolor space. For each entry in this dictionary, the key is a colorant name and the\nvalue is an array defining a Separation color space for that colorant (see "Separa-\ntion Color Spaces" on page 201). The key must match the colorant name given in\nthat color space. The dictionary need not list all colorants used in the DeviceN\ncolor space and may list additional colorants.\nThis dictionary has no effect on the operation of the DeviceN color space itself or\nthe appearance that it produces. However, it provides information about the indi-\nvidual colorants that may be useful to some applications. In particular, the alter-\nnate color space and tint transformation function of a Separation color space\ndescribe the appearance of that colorant alone, whereas those of a DeviceN color\nspace describe only the appearance of its colorants in combination.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type1PatternDictionary', 'Dictionary', 'Additional entries specific to a type 1 pattern dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Pattern for a pattern dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('PatternType')\ + .name('PatternType')\ + .type('integer')\ + .comment('(Required) A code identifying the type of pattern that this dictionary de-\nscribes; must be 1 for a tiling pattern.')\ + .done().done()\ + .required('NULL')\ + .field('PaintType')\ + .name('PaintType')\ + .type('integer')\ + .comment('(Required) A code that determines how the color of the pattern cell is to be\nspecified:\n 1 Colored tiling pattern. The pattern\'s content stream itself specifies the\n colors used to paint the pattern cell. When the content stream begins\n execution, the current color is the one that was initially in effect in the\n pattern\'s parent content stream. (This is similar to the definition of the\n pattern matrix; see Section 4.6.1, "General Properties of Patterns.")\n 2 Uncolored tiling pattern. The pattern\'s content stream does not speci-\n fy any color information. Instead, the entire pattern cell is painted\n with a separately specified color each time the pattern is used. Essen-\n tially, the content stream describes a stencil through which the cur-')\ + .done().done()\ + .done() + + pdfspec.addClass('Type2PatternDictionary', 'Dictionary', 'Entries in a type 2 pattern dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('integer')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Pattern for a pattern dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('PatternType')\ + .name('PatternType')\ + .type('integer')\ + .comment('(Required) A code identifying the type of pattern that this dictionary de-\nscribes; must be 2 for a shading pattern.')\ + .done().done()\ + .required('NULL')\ + .field('Shading')\ + .name('Shading')\ + .type('dictionary or stream')\ + .comment('(Required) A shading object (see below) defining the shading pattern\'s gradient\nfill. The contents of the dictionary consist of the entries in Table 4.25 on page\n234, plus those in one of Tables 4.26 to 4.31 on pages 237 to 253.')\ + .done().done()\ + .optional()\ + .field('Matrix')\ + .name('Matrix')\ + .type('array')\ + .comment('(Optional) An array of six numbers specifying the pattern matrix (see Section\n4.6.1, "General Properties of Patterns"). Default value: the identity matrix\n[1 0 0 1 0 0].')\ + .done().done()\ + .optional()\ + .field('ExtGState')\ + .name('ExtGState')\ + .type('dictionary')\ + .comment('(Optional) A graphics state parameter dictionary (see Section 4.3.4, "Graph-\nics State Parameter Dictionaries") containing graphics state parameters to be\nput into effect temporarily while the shading pattern is painted. Any parame-\nters that are not so specified are inherited from the graphics state that was in\neffect at the beginning of the content stream in which the pattern is defined\nas a resource.')\ + .done().done()\ + .done() + + pdfspec.addClass('ShadingDictionary', 'Dictionary', 'Entries common to all shading dictionaries')\ + .required('NULL')\ + .field('ShadingType')\ + .name('ShadingType')\ + .type('integer')\ + .comment('(Required) The shading type:\n 1 Function-based shading\n 2 Axial shading\n 3 Radial shading\n 4 Free-form Gouraud-shaded triangle mesh\n 5 Lattice-form Gouraud-shaded triangle mesh\n 6 Coons patch mesh\n 7 Tensor-product patch mesh')\ + .done().done()\ + .required('NULL')\ + .field('ColorSpace')\ + .name('ColorSpace')\ + .type('name or array')\ + .comment('(Required) The color space in which color values are expressed. This may be\nany device, CIE-based, or special color space except a Pattern space. See\n"Color Space: Special Considerations," below, for further information.')\ + .done().done()\ + .optional()\ + .field('Background')\ + .name('Background')\ + .type('array')\ + .comment('(Optional) An array of color components appropriate to the color space,\nspecifying a single background color value. If present, this color is used be-\nfore any painting operation involving the shading, to fill those portions of the\narea to be painted that lie outside the bounds of the shading object itself. In\nthe opaque imaging model, the effect is as if the painting operation were\nperformed twice: first with the background color and then again with the\nshading.\nNote: The background color is applied only when the shading is used as part of a\nshading pattern, not when it is painted directly with the sh operator.')\ + .done().done()\ + .optional()\ + .field('BBox')\ + .name('BBox')\ + .type('rectangle')\ + .comment('(Optional) An array of four numbers giving the left, bottom, right, and top\ncoordinates, respectively, of the shading\'s bounding box. The coordinates are\ninterpreted in the shading\'s target coordinate space. If present, this bounding\nbox is applied as a temporary clipping boundary when the shading is painted,\nin addition to the current clipping path and any other clipping boundaries in\neffect at that time.')\ + .done().done()\ + .optional()\ + .field('AntiAlias')\ + .name('AntiAlias')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether to filter the shading function to prevent\naliasing artifacts. The shading operators sample shading functions at a rate\ndetermined by the resolution of the output device. Aliasing can occur if the\nfunction is not smooth-that is, if it has a high spatial frequency relative to\nthe sampling rate. Anti-aliasing can be computationally expensive and is usu-\nally unnecessary, since most shading functions are smooth enough, or are\nsampled at a high enough frequency, to avoid aliasing effects. Anti-aliasing\nmay not be implemented on some output devices, in which case this flag is\nignored. Default value: false.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type1ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 1 shading dictionary')\ + .optional()\ + .field('Domain')\ + .name('Domain')\ + .type('array')\ + .comment('(Optional) An array of four numbers [ xmin xmax ymin ymax ] specifying the rec-\ntangular domain of coordinates over which the color function(s) are defined.\nDefault value: [0.0 1.0 0.0 1.0].')\ + .done().done()\ + .optional()\ + .field('Matrix')\ + .name('Matrix')\ + .type('array')\ + .comment('(Optional) An array of six numbers specifying a transformation matrix mapping\nthe coordinate space specified by the Domain entry into the shading\'s target co-\nordinate space. For example, to map the domain rectangle [0.0 1.0 0.0 1.0] to a\n1-inch square with lower-left corner at coordinates (100, 100) in default user\nspace, the Matrix value would be [72 0 0 72 100 100]. Default value: the iden-\ntity matrix [1 0 0 1 0 0].')\ + .done().done()\ + .required('NULL')\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Required) A 2-in, n-out function or an array of n 2-in, 1-out functions (where n\nis the number of color components in the shading dictionary\'s color space).\nEach function\'s domain must be a superset of that of the shading dictionary. If\nthe value returned by the function for a given color component is out of range, it\nwill be adjusted to the nearest valid value.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type2ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 2 shading dictionary')\ + .required('NULL')\ + .field('Coords')\ + .name('Coords')\ + .type('array')\ + .comment('(Required) An array of four numbers [ x0 y0 x1 y1 ] specifying the starting and\nending coordinates of the axis, expressed in the shading\'s target coordinate\nspace.')\ + .done().done()\ + .optional()\ + .field('Domain')\ + .name('Domain')\ + .type('array')\ + .comment('(Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a\nparametric variable t. The variable is considered to vary linearly between these\ntwo values as the color gradient varies between the starting and ending points of\nthe axis. The variable t becomes the input argument to the color function(s).\nDefault value: [0.0 1.0].')\ + .done().done()\ + .required('NULL')\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n\nis the number of color components in the shading dictionary\'s color space). The\nfunction(s) are called with values of the parametric variable t in the domain de-\nfined by the Domain entry. Each function\'s domain must be a superset of that of\nthe shading dictionary. If the value returned by the function for a given color\ncomponent is out of range, it will be adjusted to the nearest valid value.')\ + .done().done()\ + .optional()\ + .field('Extend')\ + .name('Extend')\ + .type('array')\ + .comment('(Optional) An array of two boolean values specifying whether to extend the\nshading beyond the starting and ending points of the axis, respectively. Default\nvalue: [false false].')\ + .done().done()\ + .done() + + pdfspec.addClass('Type3ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 3 shading dictionary')\ + .required('NULL')\ + .field('Coords')\ + .name('Coords')\ + .type('array')\ + .comment('(Required) An array of six numbers [ x0 y0 r0 x1 y1 r1 ] specifying the centers and\nradii of the starting and ending circles, expressed in the shading\'s target coor-\ndinate space. The radii r0 and r1 must both be greater than or equal to 0. If one\nradius is 0, the corresponding circle is treated as a point; if both are 0, nothing is\npainted.')\ + .done().done()\ + .optional()\ + .field('Domain')\ + .name('Domain')\ + .type('array')\ + .comment('(Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a\nparametric variable t. The variable is considered to vary linearly between these\ntwo values as the color gradient varies between the starting and ending circles.\nThe variable t becomes the input argument to the color function(s). Default\nvalue: [0.0 1.0].')\ + .done().done()\ + .required('NULL')\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n\nis the number of color components in the shading dictionary\'s color space). The\nfunction(s) are called with values of the parametric variable t in the domain de-\nfined by the shading dictionary\'s Domain entry. Each function\'s domain must be\na superset of that of the shading dictionary. If the value returned by the function\nfor a given color component is out of range, it will be adjusted to the nearest\nvalid value.')\ + .done().done()\ + .optional()\ + .field('Extend')\ + .name('Extend')\ + .type('array')\ + .comment('(Optional) An array of two boolean values specifying whether to extend the\nshading beyond the starting and ending circles, respectively. Default value:\n[false false].')\ + .done().done()\ + .done() + + pdfspec.addClass('Type4ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 4 shading dictionary')\ + .required('NULL')\ + .field('BitsPerCoordinate')\ + .name('BitsPerCoordinate')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each vertex coordinate.\nValid values are 1, 2, 4, 8, 12, 16, 24, and 32.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerComponent')\ + .name('BitsPerComponent')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each color component.\nValid values are 1, 2, 4, 8, 12, and 16.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerFlag')\ + .name('BitsPerFlag')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent the edge flag for each ver-\ntex (see below). Valid values of BitsPerFlag are 2, 4, and 8, but only the\nleast significant 2 bits in each flag value are used. Valid values for the edge\nflag itself are 0, 1, and 2.')\ + .done().done()\ + .required('NULL')\ + .field('Decode')\ + .name('Decode')\ + .type('rectangle')\ + .comment('(Required) An array of numbers specifying how to map vertex coordinates\nand color components into the appropriate ranges of values. The de-\ncoding method is similar to that used in image dictionaries (see "Decode\nArrays" on page 271). The ranges are specified as follows:\n [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ]\nNote that only one pair of c values should be specified if a Function entry\nis present.')\ + .done().done()\ + .optional()\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions\n(where n is the number of color components in the shading dictionary\'s\ncolor space). If this entry is present, the color data for each vertex must be\nspecified by a single parametric variable rather than by n separate color\ncomponents; the designated function(s) will be called with each interpo-\nlated value of the parametric variable to determine the actual color at each\npoint. Each input value will be forced into the range interval specified for\nthe corresponding color component in the shading dictionary\'s Decode\narray. Each function\'s domain must be a superset of that interval. If the\nvalue returned by the function for a given color component is out of\nrange, it will be adjusted to the nearest valid value.\nThis entry may not be used with an Indexed color space.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type5ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 5 shading dictionary')\ + .required('NULL')\ + .field('BitsPerCoordinate')\ + .name('BitsPerCoordinate')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each vertex coordinate.\nValid values are 1, 2, 4, 8, 12, 16, 24, and 32.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerComponent')\ + .name('BitsPerComponent')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each color component.\nValid values are 1, 2, 4, 8, 12, and 16.')\ + .done().done()\ + .required('NULL')\ + .field('VerticesPerRow')\ + .name('VerticesPerRow')\ + .type('integer')\ + .comment('(Required) The number of vertices in each row of the lattice; the value\nmust be greater than or equal to 2. The number of rows need not be\nspecified.')\ + .done().done()\ + .required('NULL')\ + .field('Decode')\ + .name('Decode')\ + .type('array')\ + .comment('(Required) An array of numbers specifying how to map vertex coordinates\nand color components into the appropriate ranges of values. The de-\ncoding method is similar to that used in image dictionaries (see "Decode\nArrays" on page 271). The ranges are specified as follows:\n [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ]\nNote that only one pair of c values should be specified if a Function entry\nis present.')\ + .done().done()\ + .optional()\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions\n(where n is the number of color components in the shading dictionary\'s\ncolor space). If this entry is present, the color data for each vertex must be\nspecified by a single parametric variable rather than by n separate color\ncomponents; the designated function(s) will be called with each interpo-\nlated value of the parametric variable to determine the actual color at each\npoint. Each input value will be forced into the range interval specified for\nthe corresponding color component in the shading dictionary\'s Decode\narray. Each function\'s domain must be a superset of that interval. If the\nvalue returned by the function for a given color component is out of\nrange, it will be adjusted to the nearest valid value.\nThis entry may not be used with an Indexed color space.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type6ShadingDictionary', 'ShadingDictionary', 'Additional entries specific to a type 6 shading dictionary')\ + .required('NULL')\ + .field('BitsPerCoordinate')\ + .name('BitsPerCoordinate')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each geometric coordi-\nnate. Valid values are 1, 2, 4, 8, 12, 16, 24, and 32.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerComponent')\ + .name('BitsPerComponent')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent each color component.\nValid values are 1, 2, 4, 8, 12, and 16.')\ + .done().done()\ + .required('NULL')\ + .field('BitsPerFlag')\ + .name('BitsPerFlag')\ + .type('integer')\ + .comment('(Required) The number of bits used to represent the edge flag for each\npatch (see below). Valid values of BitsPerFlag are 2, 4, and 8, but only the\nleast significant 2 bits in each flag value are used. Valid values for the edge\nflag itself are 0, 1, 2, and 3.')\ + .done().done()\ + .required('NULL')\ + .field('Decode')\ + .name('Decode')\ + .type('array')\ + .comment('(Required) An array of numbers specifying how to map coordinates and\ncolor components into the appropriate ranges of values. The decoding\nmethod is similar to that used in image dictionaries (see "Decode Arrays"\non page 271). The ranges are specified as follows:\n [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ]\nNote that only one pair of c values should be specified if a Function entry\nis present.')\ + .done().done()\ + .optional()\ + .field('Function')\ + .name('Function')\ + .type('function')\ + .comment('(Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions\n(where n is the number of color components in the shading dictionary\'s\ncolor space). If this entry is present, the color data for each vertex must be\nspecified by a single parametric variable rather than by n separate color\ncomponents; the designated function(s) will be called with each interpo-\nlated value of the parametric variable to determine the actual color at each\npoint. Each input value will be forced into the range interval specified for\nthe corresponding color component in the shading dictionary\'s Decode\narray. Each function\'s domain must be a superset of that interval. If the\nvalue returned by the function for a given color component is out of\nrange, it will be adjusted to the nearest valid value.\nThis entry may not be used with an Indexed color space.')\ + .done().done()\ + .done() + + pdfspec.addClass('ImageDictionary', 'XObjectDictionary', 'Additional entries specific to an image dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be XObject for an image XObject.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of XObject that this dictionary describes; must be\nImage for an image XObject.')\ + .must([datatypes.PdfName('Image')])\ + .done().done()\ + .required('NULL')\ + .field('Width')\ + .name('Width')\ + .type('integer')\ + .comment('(Required) The width of the image, in samples.')\ + .done().done()\ + .required('NULL')\ + .field('Height')\ + .name('Height')\ + .type('integer')\ + .comment('(Required) The height of the image, in samples.')\ + .done().done()\ + .optional()\ + .field('ColorSpace')\ + .name('ColorSpace')\ + .type('name or array')\ + .comment('(Required except for image masks; not allowed for image masks) The color\nspace in which image samples are specified. This may be any type of color\nspace except Pattern.')\ + .done().done()\ + .optional()\ + .field('BitsPerComponent')\ + .name('BitsPerComponent')\ + .type('integer')\ + .comment('(Required except for image masks; optional for image masks) The number of\nbits used to represent each color component. Only a single value may be\nspecified; the number of bits is the same for all color components. Valid\nvalues are 1, 2, 4, and 8. If ImageMask is true, this entry is optional, and if\nspecified, its value must be 1.\nIf the image stream uses a filter, the value of BitsPerComponent must be\nconsistent with the size of the data samples that the filter delivers. In par-\nticular, a CCITTFaxDecode or JBIG2Decode filter always delivers 1-bit sam-\nples, a RunLengthDecode or DCTDecode filter delivers 8-bit samples, and\nan LZWDecode or FlateDecode filter delivers samples of a specified size if\na predictor function is used.')\ + .done().done()\ + .optional()\ + .field('Intent')\ + .name('Intent')\ + .type('name')\ + .comment('(Optional; PDF 1.1) The name of a color rendering intent to be used in\nrendering the image (see "Rendering Intents" on page 197). Default value:\nthe current rendering intent in the graphics state.')\ + .done().done()\ + .optional()\ + .field('ImageMask')\ + .name('ImageMask')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether the image is to be treated as an image\nmask (see Section 4.8.5, "Masked Images"). If this flag is true, the value of\nBitsPerComponent must be 1 and Mask and ColorSpace should not be\nspecified; unmasked areas will be painted using the current nonstroking\ncolor. Default value: false.')\ + .done().done()\ + .optional()\ + .field('Mask')\ + .name('Mask')\ + .type('stream or array')\ + .comment('(Optional except for image masks; not allowed for image masks; PDF 1.3) An\nimage XObject defining an image mask to be applied to this image (see\n"Explicit Masking" on page 277), or an array specifying a range of colors\nto be applied to it as a color key mask (see "Color Key Masking" on page\n277). If ImageMask is true, this entry must not be present. (See\nimplementation note 35 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('SMask')\ + .name('SMask')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A subsidiary image XObject defining a soft-mask\nimage (see "Soft-Mask Images" on page 447) to be used as a source of\nmask shape or mask opacity values in the transparent imaging model. The\nalpha source parameter in the graphics state determines whether the mask\nvalues are interpreted as shape or opacity.\nIf present, this entry overrides the current soft mask in the graphics state,\nas well as the image\'s Mask entry, if any. (However, the other transparency-\nrelated graphics state parameters-blend mode and alpha constant-\nremain in effect.) If SMask is absent, the image has no associated soft mask\n(although the current soft mask in the graphics state may still apply).')\ + .done().done()\ + .optional()\ + .field('Decode')\ + .name('Decode')\ + .type('array')\ + .comment('(Optional) An array of numbers describing how to map image samples\ninto the range of values appropriate for the image\'s color space (see\n"Decode Arrays" on page 271). If ImageMask is true, the array must be\neither [0 1] or [1 0]; otherwise, its length must be twice the number of\ncolor components required by ColorSpace. Default value: see "Decode\nArrays" on page 271.')\ + .done().done()\ + .optional()\ + .field('Interpolate')\ + .name('Interpolate')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether image interpolation is to be per-\nformed (see "Image Interpolation" on page 273). Default value: false.')\ + .done().done()\ + .optional()\ + .field('Alternates')\ + .name('Alternates')\ + .type('array')\ + .comment('(Optional; PDF 1.3) An array of alternate image dictionaries for this image\n(see "Alternate Images" on page 273). The order of elements within the\narray has no significance. This entry may not be present in an image\nXObject that is itself an alternate image.')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Required in PDF 1.0; optional otherwise) The name by which this image\nXObject is referenced in the XObject subdictionary of the current resource\ndictionary (see Section 3.7.2, "Resource Dictionaries").\nNote: This entry is obsolescent and its use is no longer recommended. (See\nimplementation note 36 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('StructParent')\ + .name('StructParent')\ + .type('integer')\ + .comment('(Required if the image is a structural content item; PDF 1.3) The integer key\nof the image\'s entry in the structural parent tree (see "Finding Structure\nElements from Content Items" on page 600).')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('string')\ + .comment('(Optional; PDF 1.3; indirect reference preferred) The digital identifier of the\nimage\'s parent Web Capture content set (see Section 9.9.5, "Object At-\ntributes Related to Web Capture").')\ + .done().done()\ + .optional()\ + .field('OPI')\ + .name('OPI')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An OPI version dictionary for the image (see Section\n9.10.6, "Open Prepress Interface (OPI)"). If ImageMask is true, this entry\nis ignored.')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the image\n(see Section 9.2.2, "Metadata Streams").')\ + .done().done()\ + .done() + + pdfspec.addClass('AlternateImageDictionary', 'Dictionary', 'Entries in an alternate image dictionary')\ + .required('NULL')\ + .field('Image')\ + .name('Image')\ + .type('stream')\ + .comment('(Required) The image XObject for the alternate image.')\ + .done().done()\ + .optional()\ + .field('DefaultForPrinting')\ + .name('DefaultForPrinting')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether this alternate image is the default ver-\nsion to be used for printing. At most one alternate for a given base image may\nbe so designated. If no alternate has this entry set to true, the base image itself\nis used for printing.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type1FormDictionary', 'XObjectDictionary', 'Additional entries specific to a type 1 form dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be XObject for a form XObject.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of XObject that this dictionary describes; must be Form\nfor a form XObject.')\ + .must([datatypes.PdfName('Form')])\ + .done().done()\ + .optional()\ + .field('FormType')\ + .name('FormType')\ + .type('integer')\ + .comment('(Optional) A code identifying the type of form XObject that this dictionary\ndescribes. The only valid value defined at the time of publication is 1. Default\nvalue: 1.')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Required in PDF 1.0; optional otherwise) The name by which this form\nXObject is referenced in the XObject subdictionary of the current resource\ndictionary (see Section 3.7.2, "Resource Dictionaries").\nNote: This entry is obsolescent and its use is no longer recommended. (See\nimplementation note 38 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('LastModified')\ + .name('LastModified')\ + .type('date')\ + .comment('(Required if PieceInfo is present; optional otherwise; PDF 1.3) The date and\ntime (see Section 3.8.2, "Dates") when the form XObject\'s contents were\nmost recently modified. If a page-piece dictionary (PieceInfo) is present, the\nmodification date is used to ascertain which of the application data diction-\naries it contains correspond to the current content of the form (see Section\n9.4, "Page-Piece Dictionaries").')\ + .done().done()\ + .required('NULL')\ + .field('BBox')\ + .name('BBox')\ + .type('rectangle')\ + .comment('(Required) An array of four numbers in the form coordinate system (see\nbelow), giving the coordinates of the left, bottom, right, and top edges,\nrespectively, of the form XObject\'s bounding box. These boundaries are used\nto clip the form XObject and to determine its size for caching.')\ + .done().done()\ + .optional()\ + .field('Matrix')\ + .name('Matrix')\ + .type('matrix')\ + .comment('(Optional) An array of six numbers specifying the form matrix, which maps\nform space into user space (see Section 4.2.3, "Transformation Matrices").\nDefault value: the identity matrix [1 0 0 1 0 0].')\ + .done().done()\ + .optional()\ + .field('Resources')\ + .name('Resources')\ + .type('ResourceDictionary')\ + .comment('(Optional but strongly recommended; PDF 1.2) A dictionary specifying any\nresources (such as fonts and images) required by the form XObject (see Sec-\ntion 3.7, "Content Streams and Resources").\nIn PDF 1.1 and earlier, all named resources used in the form XObject must be\nincluded in the resource dictionary of each page object on which the form\nXObject appears, whether or not they also appear in the resource dictionary\nof the form XObject itself. It can be useful to specify these resources in the\nform XObject\'s own resource dictionary as well, in order to determine which\nresources are used inside the form XObject. If a resource is included in both\ndictionaries, it should have the same name in both locations.\n In PDF 1.2 and later versions, form XObjects can be independent of the\n content streams in which they appear, and this is strongly recommended\n although not required. In an independent form XObject, the resource dic-\n tionary of the form XObject is required and contains all named resources\n used by the form XObject. These resources are not "promoted" to the outer\n content stream\'s resource dictionary, although that stream\'s resource diction-\n ary will refer to the form XObject itself.')\ + .done().done()\ + .optional()\ + .field('Group')\ + .name('Group')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A group attributes dictionary indicating that the contents\nof the form XObject are to be treated as a group and specifying the attributes\nof that group (see Section 4.9.2, "Group XObjects").\nNote: If a Ref entry (see below) is present, the group attributes also apply to the\nexternal page imported by that entry. This allows such an imported page to be\ntreated as a group without further modification.')\ + .done().done()\ + .optional()\ + .field('Ref')\ + .name('Ref')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A reference dictionary identifying a page to be imported\nfrom another PDF file, and for which the form XObject serves as a proxy (see\nSection 4.9.3, "Reference XObjects").')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the form\nXObject (see Section 9.2.2, "Metadata Streams").')\ + .done().done()\ + .optional()\ + .field('PieceInfo')\ + .name('PieceInfo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A page-piece dictionary associated with the form\nXObject (see Section 9.4, "Page-Piece Dictionaries").')\ + .done().done()\ + .optional()\ + .field('StructParent')\ + .name('StructParent')\ + .type('integer')\ + .comment('(Required if the form XObject is a structural content item; PDF 1.3) The integer\nkey of the form XObject\'s entry in the structural parent tree (see "Finding\nStructure Elements from Content Items" on page 600).')\ + .done().done()\ + .optional()\ + .field('StructParents')\ + .name('StructParents')\ + .type('integer')\ + .comment('(Required if the form XObject contains marked-content sequences that are struc-\ntural content items; PDF 1.3) The integer key of the form XObject\'s entry in\nthe structural parent tree (see "Finding Structure Elements from Content\nItems" on page 600).\nNote: At most one of the entries StructParent or StructParents may be present. A\nform XObject can be either a content item in its entirety or a container for\nmarked-content sequences that are content items, but not both.')\ + .done().done()\ + .optional()\ + .field('OPI')\ + .name('OPI')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An OPI version dictionary for the form XObject (see\nSection 9.10.6, "Open Prepress Interface (OPI)").')\ + .done().done()\ + .done() + + pdfspec.addClass('GroupAttributesDictionary', 'Dictionary', 'Entries common to all group attributes dictionaries')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must\nbe Group for a group attributes dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The group subtype, which identifies the type of group whose at-\ntributes this dictionary describes and determines the format and meaning of the\ndictionary\'s remaining entries. The only group subtype defined in PDF 1.4 is\nTransparency; see Section 7.5.5, "Transparency Group XObjects," for the re-\nmaining contents of this type of dictionary. Other group subtypes may be added\nin the future.')\ + .done().done()\ + .done() + + pdfspec.addClass('ReferenceDictionary', 'Dictionary', 'Entries in a reference dictionary')\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required) The file containing the target document.')\ + .done().done()\ + .required('NULL')\ + .field('Page')\ + .name('Page')\ + .type('integer or text string')\ + .comment('(Required) A page index or page label (see Section 8.3.1, "Page Labels")\nidentifying the page of the target document containing the content to be\nimported. Note that the reference is a weak one and can be inadvertently in-\nvalidated if the referenced page is changed or replaced in the target document\nafter the reference is created.')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('array')\ + .comment('(Optional) An array of two strings constituting a file identifier (see Section 9.3,\n"File Identifiers") for the file containing the target document. The use of this\nentry improves a viewer application\'s chances of finding the intended file and\nallows it to warn the user if the file has changed since the reference was created.')\ + .done().done()\ + .done() + + pdfspec.addClass('PSXobjectDictionary', 'Dictionary', 'Additional entries specific to a PostScript XObject dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nXObject for a PostScript XObject.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of XObject that this dictionary describes; must be PS for a\nPostScript XObject.')\ + .done().done()\ + .optional()\ + .field('Level1')\ + .name('Level1')\ + .type('stream')\ + .comment('(Optional) A stream whose contents are to be used in place of the PostScript\nXObject\'s stream when the target PostScript interpreter is known to support only\nLanguageLevel 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type1FontDictionary', 'FontDictionary', 'Entries in a Type 1 font dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nFont for a font dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of font; must be Type1 for a Type 1 font.')\ + .must([datatypes.PdfName('Type1')])\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Required in PDF 1.0; optional otherwise) The name by which this font is ref-\nerenced in the Font subdictionary of the current resource dictionary.\nNote: This entry is obsolescent and its use is no longer recommended. (See\nimplementation note 42 in Appendix H.)')\ + .done().done()\ + .required('NULL')\ + .field('BaseFont')\ + .name('BaseFont')\ + .type('name')\ + .comment('(Required) The PostScript name of the font. For Type 1 fonts, this is usually\nthe value of the FontName entry in the font program; for more information,\nsee Section 5.2 of the PostScript Language Reference, Third Edition. The Post-\nScript name of the font can be used to find the font\'s definition in the viewer\napplication or its environment. It is also the name that will be used when\nprinting to a PostScript output device.')\ + .done().done()\ + .optional()\ + .field('FirstChar')\ + .name('FirstChar')\ + .type('integer')\ + .comment('(Required except for the standard 14 fonts) The first character code defined in\nthe font\'s Widths array.')\ + .done().done()\ + .optional()\ + .field('LastChar')\ + .name('LastChar')\ + .type('integer')\ + .comment('(Required except for the standard 14 fonts) The last character code defined in\nthe font\'s Widths array.')\ + .done().done()\ + .optional()\ + .field('Widths')\ + .name('Widths')\ + .type('array')\ + .comment('(Required except for the standard 14 fonts; indirect reference preferred) An array\nof (LastChar - FirstChar + 1) widths, each element being the glyph width for\nthe character whose code is FirstChar plus the array index. For character\ncodes outside the range FirstChar to LastChar, the value of MissingWidth from\nthe FontDescriptor entry for this font is used. The glyph widths are measured\nin units in which 1000 units corresponds to 1 unit in text space. These widths\nmust be consistent with the actual widths given in the font program itself.\n(See implementation note 43 in Appendix H.) For more information on\nglyph widths and other glyph metrics, see Section 5.1.3, "Glyph Positioning\nand Metrics."')\ + .done().done()\ + .optional()\ + .field('FontDescriptor')\ + .name('FontDescriptor')\ + .type('dictionary')\ + .comment('(Required except for the standard 14 fonts; must be an indirect reference) A font\ndescriptor describing the font\'s metrics other than its glyph widths (see Sec-\ntion 5.7, "Font Descriptors").\n Note: For the standard 14 fonts, the entries FirstChar, LastChar, Widths, and\n FontDescriptor must either all be present or all absent. Ordinarily, they are ab-\n sent; specifying them enables a standard font to be overridden (see "Standard\n Type 1 Fonts," below).')\ + .done().done()\ + .optional()\ + .field('Encoding')\ + .name('Encoding')\ + .type('name or dictionary')\ + .comment('(Optional) A specification of the font\'s character encoding, if different from\nits built-in encoding. The value of Encoding may be either the name of a pre-\ndefined encoding (MacRomanEncoding, MacExpertEncoding, or WinAnsi-\nEncoding, as described in Appendix D) or an encoding dictionary that\nspecifies differences from the font\'s built-in encoding or from a specified pre-\ndefined encoding (see Section 5.5.5, "Character Encoding").')\ + .done().done()\ + .optional()\ + .field('ToUnicode')\ + .name('ToUnicode')\ + .type('stream')\ + .comment('(Optional; PDF 1.2) A stream containing a CMap file that maps character\ncodes to Unicode values (see Section 5.9, "ToUnicode CMaps").')\ + .done().done()\ + .done() + + pdfspec.addClass('Type3FontDictionary', 'Type1FontDictionary', 'Entries in a Type 3 font dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nFont for a font dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of font; must be Type3 for a Type 3 font.')\ + .must([datatypes.PdfName('Type3')])\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Required in PDF 1.0; optional otherwise) See Table 5.8 on page 317.')\ + .done().done()\ + .required('NULL')\ + .field('FontBBox')\ + .name('FontBBox')\ + .type('rectangle')\ + .comment('(Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the\nglyph coordinate system, specifying the font bounding box. This is the small-\nest rectangle enclosing the shape that would result if all of the glyphs of the\nfont were placed with their origins coincident and then filled.\nIf all four elements of the rectangle are zero, no assumptions are made based\non the font bounding box. If any element is nonzero, it is essential that the\nfont bounding box be accurate; if any glyph\'s marks fall outside this bound-\ning box, incorrect behavior may result.')\ + .done().done()\ + .required('NULL')\ + .field('FontMatrix')\ + .name('FontMatrix')\ + .type('matrix')\ + .comment('(Required) An array of six numbers specifying the font matrix, mapping\nglyph space to text space (see Section 5.1.3, "Glyph Positioning and\nMetrics"). A common practice is to define glyphs in terms of a 1000-unit\nglyph coordinate system, in which case the font matrix is\n[0.001 0 0 0.001 0 0].')\ + .done().done()\ + .required('NULL')\ + .field('CharProcs')\ + .name('CharProcs')\ + .type('dictionary')\ + .comment('(Required) A dictionary in which each key is a character name and the value\nassociated with that key is a content stream that constructs and paints the\nglyph for that character. The stream must include as its first operator either\nd0 or d1. This is followed by operators describing one or more graphics\nobjects, which may include path, text, or image objects. See below for more\ndetails about Type 3 glyph descriptions.')\ + .done().done()\ + .required('NULL')\ + .field('Encoding')\ + .name('Encoding')\ + .type('name or EncodingDictionary')\ + .comment('(Required) An encoding dictionary whose Differences array specifies the\ncomplete character encoding for this font (see Section 5.5.5, "Character\nEncoding"; also see implementation note 46 in Appendix H).')\ + .done().done()\ + .required('NULL')\ + .field('FirstChar')\ + .name('FirstChar')\ + .type('integer')\ + .comment('(Required) The first character code defined in the font\'s Widths array.')\ + .done().done()\ + .required('NULL')\ + .field('LastChar')\ + .name('LastChar')\ + .type('integer')\ + .comment('(Required) The last character code defined in the font\'s Widths array.')\ + .done().done()\ + .optional()\ + .field('Widths')\ + .name('Widths')\ + .type('array')\ + .comment('(Required; indirect reference preferred) An array of (LastChar - FirstChar + 1)\nwidths, each element being the glyph width for the character whose code is\nFirstChar plus the array index. For character codes outside the range FirstChar\nto LastChar, the width is 0. These widths are interpreted in glyph space as\nspecified by FontMatrix (unlike the widths of a Type 1 font, which are in\nthousandths of a unit of text space).\nNote: If FontMatrix specifies a rotation, only the horizontal component of the\ntransformed width is used. That is, the resulting displacement is always horizon-\ntal in text space, as is the case for all simple fonts.')\ + .done().done()\ + .optional()\ + .field('Resources')\ + .name('Resources')\ + .type('dictionary')\ + .comment('(Optional but strongly recommended; PDF 1.2) A list of the named resources,\nsuch as fonts and images, required by the glyph descriptions in this font (see\nSection 3.7.2, "Resource Dictionaries"). If any glyph descriptions refer to\nnamed resources but this dictionary is absent, the names are looked up in the\nresource dictionary of the page on which the font is used. (See implementa-\ntion note 47 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('ToUnicode')\ + .name('ToUnicode')\ + .type('stream')\ + .comment('(Optional; PDF 1.2) A stream containing a CMap file that maps character\ncodes to Unicode values (see Section 5.9, "ToUnicode CMaps").')\ + .done().done()\ + .done() + + pdfspec.addClass('EncodingDictionary', 'Dictionary', 'Entries in an encoding dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must\nbe Encoding for an encoding dictionary.')\ + .done().done()\ + .optional()\ + .field('BaseEncoding')\ + .name('BaseEncoding')\ + .type('name')\ + .comment('(Optional) The base encoding-that is, the encoding from which the Differences\nentry (if present) describes differences-specified as the name of a predefined\nencoding MacRomanEncoding, MacExpertEncoding, or WinAnsiEncoding (see\nAppendix D).\nIf this entry is absent, the Differences entry describes differences from an im-\nplicit base encoding. For a font program that is embedded in the PDF file, the\nimplicit base encoding is the font program\'s built-in encoding, as described\nabove and further elaborated in the sections on specific font types below. Other-\nwise, for a nonsymbolic font, it is StandardEncoding, and for a symbolic font, it\nis the font\'s built-in encoding.')\ + .done().done()\ + .optional()\ + .field('Differences')\ + .name('Differences')\ + .type('array')\ + .comment('(Optional; not recommended with TrueType fonts) An array describing the differ-\nences from the encoding specified by BaseEncoding or, if BaseEncoding is ab-\nsent, from an implicit base encoding. The Differences array is described above.\n The value of the Differences entry is an array of character codes and character\n names organized as follows:\n code1 name1,1 name1,2 ...\n code2 name2,1 name2,2 ...\n ...\n coden namen,1 namen,2 ...\n Each code is the first index in a sequence of characters to be changed. The first\n character name after the code becomes the name corresponding to that code.\n Subsequent names replace consecutive code indices until the next code appears in\n the array or the array ends. These sequences may be specified in any order but\n should not overlap.\n For example, in the encoding dictionary in Example 5.10, the name quotesingle\n ( \' ) is associated with character code 39, Adieresis (A) with code 128, Aring (A)\n with 129, and trademark ((TM)) with 170.')\ + .done().done()\ + .done() + + pdfspec.addClass('CIDSystemInfoDictionary', 'Dictionary', 'Entries in a CIDSystemInfo dictionary')\ + .required('NULL')\ + .field('Registry')\ + .name('Registry')\ + .type('string')\ + .comment('(Required) A string identifying the issuer of the character collection-for exam-\nple, Adobe. For information about assigning a registry identifier, consult the ASN\nDeveloper Program Web site or contact the Adobe Solutions Network (see the\nBibliography).')\ + .done().done()\ + .required('NULL')\ + .field('Ordering')\ + .name('Ordering')\ + .type('string')\ + .comment('(Required) A string that uniquely names the character collection within the speci-\nfied registry-for example, Japan1.')\ + .done().done()\ + .required('NULL')\ + .field('Supplement')\ + .name('Supplement')\ + .type('integer')\ + .comment('(Required) The supplement number of the character collection. An original charac-\nter collection has a supplement number of 0. Whenever additional CIDs are\nassigned in a character collection, the supplement number is increased. Supple-\nments do not alter the ordering of existing CIDs in the character collection. This\nvalue is not used in determining compatibility between character collections.')\ + .done().done()\ + .done() + + pdfspec.addClass('CIDFontDictionary', 'FontDictionary', 'Entries in a CIDFont dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nFont for a CIDFont dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of CIDFont; CIDFontType0 or CIDFontType2.')\ + .must([datatypes.PdfName('CIDFontType0'), datatypes.PdfName('CIDFontType2')])\ + .done().done()\ + .required('NULL')\ + .field('BaseFont')\ + .name('BaseFont')\ + .type('name')\ + .comment('(Required) The PostScript name of the CIDFont. For Type 0 CIDFonts, this\nis usually the value of the CIDFontName entry in the CIDFont program. For\nType 2 CIDFonts, it is derived the same way as for a simple TrueType font;\nsee Section 5.5.2, "TrueType Fonts." In either case, the name can have a sub-\nset prefix if appropriate; see Section 5.5.3, "Font Subsets."')\ + .done().done()\ + .required('NULL')\ + .field('CIDSystemInfo')\ + .name('CIDSystemInfo')\ + .type('dictionary')\ + .comment('(Required) A dictionary containing entries that define the character collec-\ntion of the CIDFont. See Table 5.12 on page 337.')\ + .done().done()\ + .optional()\ + .field('FontDescriptor')\ + .name('FontDescriptor')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) A font descriptor describing the\nCIDFont\'s default metrics other than its glyph widths (see Section 5.7,\n"Font Descriptors").')\ + .done().done()\ + .optional()\ + .field('DW')\ + .name('DW')\ + .type('integer')\ + .comment('(Optional) The default width for glyphs in the CIDFont (see "Glyph Met-\nrics in CIDFonts" on page 340). Default value: 1000.')\ + .done().done()\ + .optional()\ + .field('W')\ + .name('W')\ + .type('array')\ + .comment('(Optional) A description of the widths for the glyphs in the CIDFont. The\narray\'s elements have a variable format that can specify individual widths\nfor consecutive CIDs or one width for a range of CIDs (see "Glyph Metrics\nin CIDFonts" on page 340). Default value: none (the DW value is used for\nall glyphs).')\ + .done().done()\ + .optional()\ + .field('DW2')\ + .name('DW2')\ + .type('array')\ + .comment('(Optional; applies only to CIDFonts used for vertical writing) An array of two\nnumbers specifying the default metrics for vertical writing (see "Glyph\nMetrics in CIDFonts" on page 340). Default value: [880 -1000].')\ + .done().done()\ + .optional()\ + .field('W2')\ + .name('W2')\ + .type('array')\ + .comment('(Optional; applies only to CIDFonts used for vertical writing) A description of\nthe metrics for vertical writing for the glyphs in the CIDFont (see "Glyph\nMetrics in CIDFonts" on page 340). Default value: none (the DW2 value is\nused for all glyphs).')\ + .done().done()\ + .optional()\ + .field('CIDToGIDMap')\ + .name('CIDToGIDMap')\ + .type('stream or name')\ + .comment('(Optional; Type 2 CIDFonts only) A specification of the mapping from CIDs\nto glyph indices. If the value is a stream, the bytes in the stream contain the\nmapping from CIDs to glyph indices: the glyph index for a particular CID\nvalue c is a 2-byte value stored in bytes 2 x c and 2 x c + 1, where the first\nbyte is the high-order byte. If the value of CIDToGIDMap is a name, it must\nbe Identity, indicating that the mapping between CIDs and glyph indices is\nthe identity mapping. Default value: Identity.\nThis entry may appear only in a Type 2 CIDFont whose associated True-\nType font program is embedded in the PDF file (see the next section).')\ + .done().done()\ + .done() + + pdfspec.addClass('CMapDictionary', 'Dictionary', 'Additional entries in a CMap dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nCMap for a CMap dictionary. (Note that although this object is the value of\nan entry named Encoding in a Type 0 font, its type is CMap.)')\ + .done().done()\ + .required('NULL')\ + .field('CMapName')\ + .name('CMapName')\ + .type('name')\ + .comment('(Required) The PostScript name of the CMap. This should be the same as the\nvalue of CMapName in the CMap file itself.')\ + .done().done()\ + .required('NULL')\ + .field('CIDSystemInfo')\ + .name('CIDSystemInfo')\ + .type('dictionary or array')\ + .comment('(Required) A dictionary or array containing entries that define the character\ncollection for the CIDFont or CIDFonts associated with the CMap. If the\nCMap selects only font number 0 and specifies character selectors that are\nCIDs, this entry can be a dictionary identifying the character collection for\nthe associated CIDFont. Otherwise, it is an array indexed by the font num-\nber. If the character selectors for a given font number are CIDs, the corre-\nsponding array element is a dictionary identifying the character collection\nfor the associated CIDFont. If the character selectors are names or codes (to\nbe used with an associated font, not a CIDFont), the array element should\nbe null. For details of the CIDSystemInfo dictionaries, see Section 5.6.2,\n"CIDSystemInfo Dictionaries."\nNote: In all PDF versions up to and including PDF 1.4, CIDSystemInfo must be\neither a dictionary or a one-element array containing a dictionary.\nThe value of this entry should be the same as the value of CIDSystemInfo in\nthe CMap file itself.')\ + .done().done()\ + .optional()\ + .field('WMode')\ + .name('WMode')\ + .type('integer')\ + .comment('(Optional) A code that determines the writing mode for any CIDFont with\nwhich this CMap is combined:\n 0 Horizontal\n 1 Vertical\nDefault value: 0.\nThe value of this entry should be the same as the value of WMode in the\nCMap file itself.')\ + .done().done()\ + .optional()\ + .field('UseCMap')\ + .name('UseCMap')\ + .type('name or stream')\ + .comment('(Optional) The name of a predefined CMap, or a stream containing a CMap,\nthat is to be used as the base for this CMap. This allows the CMap to be de-\nfined differentially, specifying only the character mappings that differ from\nthe base CMap.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type0FontDictionary', 'FontDictionary', 'Entries in a Type 0 font dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nFont for a font dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of font; must be Type0 for a Type 0 font.')\ + .must([datatypes.PdfName('Type0')])\ + .done().done()\ + .required('NULL')\ + .field('BaseFont')\ + .name('BaseFont')\ + .type('name')\ + .comment('(Required) The PostScript name of the font. In principle, this is an arbitrary\nname, since there is no font program associated directly with a Type 0 font\ndictionary. The conventions described here ensure maximum compatibility\nwith existing Acrobat products.\nIf the descendant is a Type 0 CIDFont, this name should be the concatenation\nof the CIDFont\'s BaseFont name, a hyphen, and the CMap name given in the\nEncoding entry (or the CMapName entry in the CMap program itself). If the\ndescendant is a Type 2 CIDFont, this name should be the same as the\nCIDFont\'s BaseFont name.')\ + .done().done()\ + .required('NULL')\ + .field('Encoding')\ + .name('Encoding')\ + .type('name or stream')\ + .comment('(Required) The name of a predefined CMap, or a stream containing a CMap\nprogram, that maps character codes to font numbers and CIDs. If the descen-\ndant is a Type 2 CIDFont whose associated TrueType font program is not em-\nbedded in the PDF file, the Encoding entry must be a predefined CMap name\n(see "Glyph Selection in CIDFonts" on page 339).')\ + .done().done()\ + .required('NULL')\ + .field('DescendantFonts')\ + .name('DescendantFonts')\ + .type('array')\ + .comment('(Required) An array specifying one or more fonts or CIDFonts that are\ndescendants of this composite font. This array is indexed by the font number\nthat is obtained by mapping a character code through the CMap specified in\nthe Encoding entry.\nNote: In all PDF versions up to and including PDF 1.4, DescendantFonts must\nbe a one-element array containing a CIDFont dictionary.')\ + .done().done()\ + .optional()\ + .field('ToUnicode')\ + .name('ToUnicode')\ + .type('stream')\ + .comment('(Optional) A stream containing a CMap file that maps character codes to\nUnicode values (see Section 5.9, "ToUnicode CMaps").')\ + .done().done()\ + .done() + + pdfspec.addClass('FontDescriptorDictionary', 'Dictionary', 'Entries common to all font descriptors')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be\nFontDescriptor for a font descriptor.')\ + .done().done()\ + .required('NULL')\ + .field('FontName')\ + .name('FontName')\ + .type('name')\ + .comment('(Required) The PostScript name of the font. This should be the same as the\nvalue of BaseFont in the font or CIDFont dictionary that refers to this font\ndescriptor.')\ + .done().done()\ + .required('NULL')\ + .field('Flags')\ + .name('Flags')\ + .type('integer')\ + .comment('(Required) A collection of flags defining various characteristics of the font\n(see Section 5.7.1, "Font Descriptor Flags").')\ + .done().done()\ + .required('NULL')\ + .field('FontBBox')\ + .name('FontBBox')\ + .type('rectangle')\ + .comment('(Required) A rectangle (see Section 3.8.3, "Rectangles"), expressed in the\nglyph coordinate system, specifying the font bounding box. This is the small-\nest rectangle enclosing the shape that would result if all of the glyphs of the\nfont were placed with their origins coincident and then filled.')\ + .done().done()\ + .required('NULL')\ + .field('ItalicAngle')\ + .name('ItalicAngle')\ + .type('number')\ + .comment('(Required) The angle, expressed in degrees counterclockwise from the verti-\ncal, of the dominant vertical strokes of the font. (For example, the 9-o\'clock\nposition is 90 degrees, and the 3-o\'clock position is \'90 degrees.) The value is\nnegative for fonts that slope to the right, as almost all italic fonts do.')\ + .done().done()\ + .required('NULL')\ + .field('Ascent')\ + .name('Ascent')\ + .type('number')\ + .comment('(Required) The maximum height above the baseline reached by glyphs in this\nfont, excluding the height of glyphs for accented characters.')\ + .done().done()\ + .required('NULL')\ + .field('Descent')\ + .name('Descent')\ + .type('number')\ + .comment('(Required) The maximum depth below the baseline reached by glyphs in this\nfont. The value is a negative number.')\ + .done().done()\ + .optional()\ + .field('Leading')\ + .name('Leading')\ + .type('number')\ + .comment('(Optional) The desired spacing between baselines of consecutive lines of text.\nDefault value: 0.')\ + .done().done()\ + .required('NULL')\ + .field('CapHeight')\ + .name('CapHeight')\ + .type('number')\ + .comment('(Required) The vertical coordinate of the top of flat capital letters, measured\nfrom the baseline.')\ + .done().done()\ + .optional()\ + .field('XHeight')\ + .name('XHeight')\ + .type('number')\ + .comment('(Optional) The font\'s x height: the vertical coordinate of the top of flat non-\nascending lowercase letters (like the letter x), measured from the baseline.\nDefault value: 0.')\ + .done().done()\ + .required('NULL')\ + .field('StemV')\ + .name('StemV')\ + .type('number')\ + .comment('(Required) The thickness, measured horizontally, of the dominant vertical\nstems of glyphs in the font.')\ + .done().done()\ + .optional()\ + .field('StemH')\ + .name('StemH')\ + .type('number')\ + .comment('(Optional) The thickness, measured invertically, of the dominant horizontal\nstems of glyphs in the font. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('AvgWidth')\ + .name('AvgWidth')\ + .type('number')\ + .comment('(Optional) The average width of glyphs in the font. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('MaxWidth')\ + .name('MaxWidth')\ + .type('number')\ + .comment('(Optional) The maximum width of glyphs in the font. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('MissingWidth')\ + .name('MissingWidth')\ + .type('number')\ + .comment('(Optional) The width to use for character codes whose widths are not speci-\nfied in a font dictionary\'s Widths array. This has a predictable effect only if all\nsuch codes map to glyphs whose actual widths are the same as the Missing-\nWidth value. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('FontFile')\ + .name('FontFile')\ + .type('stream')\ + .comment('(Optional) A stream containing a Type 1 font program (see Section 5.8,\n"Embedded Font Programs").')\ + .done().done()\ + .optional()\ + .field('FontFile2')\ + .name('FontFile2')\ + .type('stream')\ + .comment('(Optional; PDF 1.1) A stream containing a TrueType font program (see Sec-\ntion 5.8, "Embedded Font Programs").')\ + .done().done()\ + .optional()\ + .field('FontFile3')\ + .name('FontFile3')\ + .type('stream')\ + .comment('(Optional; PDF 1.2) A stream containing a font program other than Type 1 or\nTrueType. The format of the font program is specified by the Subtype entry\nin the stream dictionary (see Section 5.8, "Embedded Font Programs," and\nimplementation note 49 in Appendix H).\nAt most, only one of the FontFile, FontFile2, and FontFile3 entries may be\npresent.')\ + .done().done()\ + .optional()\ + .field('CharSet')\ + .name('CharSet')\ + .type('string')\ + .comment('(Optional; meaningful only in Type 1 fonts; PDF 1.1) A string listing the char-\nacter names defined in a font subset. The names in this string must be in PDF\nsyntax-that is, each name preceded by a slash (/). The names can appear in\nany order. The name .notdef should be omitted; it is assumed to exist in the\nfont subset. If this entry is absent, the only indication of a font subset is the\nsubset tag in the FontName entry (see Section 5.5.3, "Font Subsets").')\ + .done().done()\ + .done() + + pdfspec.addClass('CIDFontDescriptorDictionary', 'Dictionary', 'Additional font descriptor entries for CIDFonts')\ + .optional()\ + .field('Style')\ + .name('Style')\ + .type('dictionary')\ + .comment('(Optional) A dictionary containing entries that describe the style of the glyphs in\nthe font (see "Style," above).')\ + .done().done()\ + .optional()\ + .field('Lang')\ + .name('Lang')\ + .type('name')\ + .comment('(Optional) A name specifying the language of the font, used for encodings where\nthe language is not implied by the encoding itself. The possible values are the\n2-character language codes defined by ISO 639-for example, en for English and ja\nfor Japanese. The complete list of these codes be obtained from the International\nOrganization for Standardization (see the Bibliography).')\ + .done().done()\ + .optional()\ + .field('FD')\ + .name('FD')\ + .type('dictionary')\ + .comment('(Optional) A dictionary whose keys identify a class of characters in a CIDFont.\nEach value is a dictionary containing entries that override the corresponding\nvalues in the main font descriptor dictionary for that class of characters (see "FD,"\nbelow).')\ + .done().done()\ + .optional()\ + .field('CIDSet')\ + .name('CIDSet')\ + .type('stream')\ + .comment('(Optional) A stream identifying which CIDs are present in the CIDFont file. If this\nentry is present, the CIDFont contains only a subset of the glyphs in the character\ncollection defined by the CIDSystemInfo dictionary. If it is absent, the only indica-\ntion of a CIDFont subset is the subset tag in the FontName entry (see Section 5.5.3,\n"Font Subsets").\nThe stream\'s data is organized as a table of bits indexed by CID. The bits should be\nstored in bytes with the high-order bit first. Each bit corresponds to a CID. The first\nbit of the first byte corresponds to CID 0, the next bit to CID 1, and so on.')\ + .done().done()\ + .done() + + pdfspec.addClass('EmbeddedFontStreamDictionary', 'Dictionary', 'Additional entries in an embedded font stream dictionary')\ + .optional()\ + .field('Length1')\ + .name('Length1')\ + .type('integer')\ + .comment('(Required for Type 1 and TrueType fonts) The length in bytes of the clear-text portion\nof the Type 1 font program (see below), or the entire TrueType font program, after it\nhas been decoded using the filters specified by the stream\'s Filter entry, if any.')\ + .done().done()\ + .optional()\ + .field('Length2')\ + .name('Length2')\ + .type('integer')\ + .comment('(Required for Type 1 fonts) The length in bytes of the encrypted portion of the Type 1\nfont program (see below) after it has been decoded using the filters specified by the\nstream\'s Filter entry.')\ + .done().done()\ + .optional()\ + .field('Length3')\ + .name('Length3')\ + .type('integer')\ + .comment('(Required for Type 1 fonts) The length in bytes of the fixed-content portion of the\nType 1 font program (see below), after it has been decoded using the filters specified\nby the stream\'s Filter entry. If Length3 is 0, it indicates that the 512 zeros and clearto-\nmark have not been included in the FontFile font program and must be added.')\ + .done().done()\ + .optional()\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required if referenced from FontFile3; PDF 1.2) A name specifying the format of the\nembedded font program. The name must be Type1C for Type 1 compact fonts or CID-\nFontType0C for Type 0 compact CIDFonts. When additional font formats are added\nto PDF, more values will be defined for Subtype.')\ + .done().done()\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the embedded font\nprogram (see Section 9.2.2, "Metadata Streams").')\ + .done().done()\ + .done() + + pdfspec.addClass('Type1HalftoneDictionary', 'Dictionary', 'Entries in a type 1 halftone dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be Halftone for a halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('HalftoneType')\ + .name('HalftoneType')\ + .type('integer')\ + .comment('(Required) A code identifying the halftone type that this dictionary\ndescribes; must be 1 for this type of halftone.')\ + .done().done()\ + .optional()\ + .field('HalftoneName')\ + .name('HalftoneName')\ + .type('string')\ + .comment('(Optional) The name of the halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Frequency')\ + .name('Frequency')\ + .type('number')\ + .comment('(Required) The screen frequency, measured in halftone cells per inch in\ndevice space.')\ + .done().done()\ + .required('NULL')\ + .field('Angle')\ + .name('Angle')\ + .type('number')\ + .comment('(Required) The screen angle, in degrees of rotation counterclockwise\nwith respect to the device coordinate system. (Note that most output\ndevices have left-handed device spaces; on such devices, a counter-\nclockwise angle in device space will correspond to a clockwise angle in\ndefault user space and on the physical medium.)')\ + .done().done()\ + .required('NULL')\ + .field('SpotFunction')\ + .name('SpotFunction')\ + .type('function or name')\ + .comment('(Required) A function object defining the order in which device pixels\nwithin a screen cell are adjusted for different gray levels, or the name of\none of the predefined spot functions (see Table 6.1 on page 385).')\ + .done().done()\ + .optional()\ + .field('AccurateScreens')\ + .name('AccurateScreens')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to invoke a special halftone al-\ngorithm that is extremely precise, but computationally expensive; see\nbelow for further discussion. Default value: false.')\ + .done().done()\ + .optional()\ + .field('TransferFunction')\ + .name('TransferFunction')\ + .type('function or name')\ + .comment('(Optional) A transfer function, which overrides the current transfer\nfunction in the graphics state for the same component. This entry is\nrequired if the dictionary is a component of a type 5 halftone (see\n"Type 5 Halftones" on page 400) and represents either a nonprimary\nor nonstandard primary color component (see Section 6.3, "Transfer\nFunctions"). The name Identity may be used to specify the identity\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type6HalftoneDictionary', 'Dictionary', 'Additional entries specific to a type 6 halftone dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be Halftone for a halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('HalftoneType')\ + .name('HalftoneType')\ + .type('integer')\ + .comment('(Required) A code identifying the halftone type that this dictionary\ndescribes; must be 6 for this type of halftone.')\ + .done().done()\ + .optional()\ + .field('HalftoneName')\ + .name('HalftoneName')\ + .type('string')\ + .comment('(Optional) The name of the halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Width')\ + .name('Width')\ + .type('integer')\ + .comment('(Required) The width of the threshold array, in device pixels.')\ + .done().done()\ + .required('NULL')\ + .field('Height')\ + .name('Height')\ + .type('integer')\ + .comment('(Required) The height of the threshold array, in device pixels.')\ + .done().done()\ + .optional()\ + .field('TransferFunction')\ + .name('TransferFunction')\ + .type('function or name')\ + .comment('(Optional) A transfer function, which overrides the current transfer\nfunction in the graphics state for the same component. This entry is\nrequired if the dictionary is a component of a type 5 halftone (see\n"Type 5 Halftones" on page 400) and represents either a nonprimary\nor nonstandard primary color component (see Section 6.3, "Transfer\nFunctions"). The name Identity may be used to specify the identity\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type10HalftoneDictionary', 'Dictionary', 'Additional entries specific to a type 10 halftone dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be Halftone for a halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('HalftoneType')\ + .name('HalftoneType')\ + .type('integer')\ + .comment('(Required) A code identifying the halftone type that this dictionary\ndescribes; must be 10 for this type of halftone.')\ + .done().done()\ + .optional()\ + .field('HalftoneName')\ + .name('HalftoneName')\ + .type('string')\ + .comment('(Optional) The name of the halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Xsquare')\ + .name('Xsquare')\ + .type('integer')\ + .comment('(Required) The side of square X, in device pixels; see below.')\ + .done().done()\ + .required('NULL')\ + .field('Ysquare')\ + .name('Ysquare')\ + .type('integer')\ + .comment('(Required) The side of square Y, in device pixels; see below.')\ + .done().done()\ + .optional()\ + .field('TransferFunction')\ + .name('TransferFunction')\ + .type('function or name')\ + .comment('(Optional) A transfer function, which overrides the current transfer\nfunction in the graphics state for the same component. This entry is\nrequired if the dictionary is a component of a type 5 halftone (see\n"Type 5 Halftones" on page 400) and represents either a nonprimary\nor nonstandard primary color component (see Section 6.3, "Transfer\nFunctions"). The name Identity may be used to specify the identity\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type16HalftoneDictionary', 'Dictionary', 'Additional entries specific to a type 16 halftone dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be Halftone for a halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('HalftoneType')\ + .name('HalftoneType')\ + .type('integer')\ + .comment('(Required) A code identifying the halftone type that this dictionary\ndescribes; must be 16 for this type of halftone.')\ + .done().done()\ + .optional()\ + .field('HalftoneName')\ + .name('HalftoneName')\ + .type('string')\ + .comment('(Optional) The name of the halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Width')\ + .name('Width')\ + .type('integer')\ + .comment('(Required) The width of the first (or only) rectangle in the threshold\narray, in device pixels.')\ + .done().done()\ + .required('NULL')\ + .field('Height')\ + .name('Height')\ + .type('integer')\ + .comment('(Required) The height of the first (or only) rectangle in the threshold\narray, in device pixels.')\ + .done().done()\ + .optional()\ + .field('Width2')\ + .name('Width2')\ + .type('integer')\ + .comment('(Optional) The width of the optional second rectangle in the threshold\narray, in device pixels. If this entry is present, the Height2 entry must\nbe present as well; if this entry is absent, the Height2 entry must also be\nabsent and the threshold array has only one rectangle.')\ + .done().done()\ + .optional()\ + .field('Height2')\ + .name('Height2')\ + .type('integer')\ + .comment('(Optional) The height of the optional second rectangle in the threshold\narray, in device pixels.')\ + .done().done()\ + .optional()\ + .field('TransferFunction')\ + .name('TransferFunction')\ + .type('function or name')\ + .comment('(Optional) A transfer function, which overrides the current transfer\nfunction in the graphics state for the same component. This entry is\nrequired if the dictionary is a component of a type 5 halftone (see\n"Type 5 Halftones," below) and represents either a nonprimary or\nnonstandard primary color component (see Section 6.3, "Transfer\nFunctions"). The name Identity may be used to specify the identity\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('Type5HalftoneDictionary', 'Dictionary', 'Entries in a type 5 halftone dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Halftone for a halftone dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('HalftoneType')\ + .name('HalftoneType')\ + .type('number')\ + .comment('(Required) A code identifying the halftone type that this dictionary describes;\nmust be 5 for this type of halftone.')\ + .done().done()\ + .optional()\ + .field('HalftoneName')\ + .name('HalftoneName')\ + .type('string')\ + .comment('(Optional) The name of the halftone dictionary.')\ + .done().done()\ + .optional()\ + .field('[any_colorant_name]')\ + .name('[any_colorant_name]')\ + .type('dictionary or stream')\ + .comment('(Required, one per colorant) The halftone corresponding to the colorant or\ncolor component named by the key. The halftone may be of any type other\nthan 5. Note that the key must be a name object; strings are not permitted, as\nthey are in type 5 PostScript halftone dictionaries.')\ + .done().done()\ + .required('NULL')\ + .field('Default')\ + .name('Default')\ + .type('dictionary or stream')\ + .comment('(Required) A halftone to be used for any colorant or color component that\ndoes not have an entry of its own. The value may not be a type 5 halftone. If\nthere are any nonprimary colorants, the default halftone must have a transfer\nfunction.')\ + .done().done()\ + .done() + + pdfspec.addClass('SoftMaskDictionary', 'Dictionary', 'Entries in a soft-mask dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Mask for a soft-mask dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) A subtype specifying the method to be used in deriving the mask\nvalues from the transparency group specified by the G entry:\n Alpha Use the group\'s computed alpha, disregarding its color (see\n Section 7.4.1, "Deriving a Soft Mask from Group Alpha").\n Luminosity Convert the group\'s computed color to a single-component\n luminosity value (see Section 7.4.2, "Deriving a Soft Mask\n from Group Luminosity").')\ + .done().done()\ + .required('NULL')\ + .field('G')\ + .name('G')\ + .type('stream')\ + .comment('(Required) A transparency group XObject (see Section 7.5.5, "Transparency\nGroup XObjects") to be used as the source of alpha or color values for deriv-\ning the mask. If the subtype S is Luminosity, the group attributes dictionary\nmust contain a CS entry defining the color space in which the compositing\ncomputation is to be performed.')\ + .done().done()\ + .optional()\ + .field('BC')\ + .name('BC')\ + .type('array')\ + .comment('(Optional) An array of component values specifying the color to be used as\nthe backdrop against which to composite the transparency group XObject G.\nThis entry is consulted only if the subtype S is Luminosity. The array consists\nof n numbers, where n is the number of components in the color space speci-\nfied by the CS entry in the group attributes dictionary (see Section 7.5.5,\n"Transparency Group XObjects"). Default value: the color space\'s initial\nvalue, representing black.')\ + .done().done()\ + .optional()\ + .field('TR')\ + .name('TR')\ + .type('function or name')\ + .comment('(Optional) A function object (see Section 3.9, "Functions") specifying the\ntransfer function to be used in deriving the mask values. The function ac-\ncepts one input, the computed group alpha or luminosity (depending on the\nvalue of the subtype S), and returns one output, the resulting mask value.\nBoth the input and output must be in the range 0.0 to 1.0; if the computed\noutput falls outside this range, it is forced to the nearest valid value. The\nname Identity may be specified in place of a function object to designate the\nidentity function. Default value: Identity.')\ + .done().done()\ + .done() + + pdfspec.addClass('SoftMaskImageDictionary', 'Dictionary', 'Additional entry in a soft-mask image dictionary')\ + .optional()\ + .field('Matte')\ + .name('Matte')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of component values specifying the matte color with\nwhich the image data in the parent image has been preblended. The array consists of n\nnumbers, where n is the number of components in the color space specified by the\nColorSpace entry in the parent image\'s image dictionary; the numbers must be valid\ncolor components in that color space. If this entry is absent, the image data is not pre-\nblended.')\ + .done().done()\ + .done() + + pdfspec.addClass('TransparencyGroupDictionary', 'Dictionary', 'Additional entries specific to a transparency group attributes dictionary')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The group subtype, which identifies the type of group whose at-\ntributes this dictionary describes; must be Transparency for a transparency\ngroup.')\ + .done().done()\ + .optional()\ + .field('CS')\ + .name('CS')\ + .type('name or array')\ + .comment('(Sometimes required, as discussed below) The group color space, which is used for\nthe following purposes:\n* As the color space into which colors are converted when painted into the\n group\n* As the blending color space in which objects are composited within the group\n (see Section 7.2.3, "Blending Color Space")\n* As the color space of the group as a whole when it in turn is painted as an ob-\n ject onto its backdrop\nThe group color space may be any device or CIE-based color space that treats its\ncomponents as independent additive or subtractive values in the range 0.0 to\n1.0, subject to the restrictions described in Section 7.2.3, "Blending Color\nSpace." These restrictions exclude Lab and lightness-chromaticity ICCBased\ncolor spaces, as well as the special color spaces Pattern, Indexed, Separation, and\nDeviceN. Device color spaces are subject to remapping according to the Default-\nGray, DefaultRGB, and DefaultCMYK entries in the ColorSpace subdictionary of\nthe current resource dictionary (see "Default Color Spaces" on page 194).\nOrdinarily, the CS entry is allowed only for isolated transparency groups (those\nfor which I, below, is true) and even then it is optional. However, this entry is re-\nquired in the group attributes dictionary for any transparency group XObject\nthat has no parent group or page from which to inherit-in particular, one that\nis the value of the G entry in a soft-mask dictionary of subtype Luminosity (see\n"Soft-Mask Dictionaries" on page 445).\nIn addition, it is always permissible to specify CS in the group attributes diction-\nary associated with a page object, even if I is false or absent. In the normal case in\nwhich the page is imposed directly on the output medium, the page group is\neffectively isolated regardless of the I value, and the specified CS value is there-\nfore honored. But if the page is in turn used as an element of some other page\nand if the group is non-isolated, CS is ignored and the color space is inherited\nfrom the actual backdrop with which the page is composited (see Section 7.3.6,\n"Page Group").')\ + .done().done()\ + .done() + + pdfspec.addClass('ViewerPreferencesDictionary', 'Dictionary', 'Entries in a viewer preferences dictionary')\ + .optional()\ + .field('HideToolbar')\ + .name('HideToolbar')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to hide the viewer application\'s tool\nbars when the document is active. Default value: false.')\ + .done().done()\ + .optional()\ + .field('HideMenubar')\ + .name('HideMenubar')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to hide the viewer application\'s\nmenu bar when the document is active. Default value: false.')\ + .done().done()\ + .optional()\ + .field('HideWindowUI')\ + .name('HideWindowUI')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to hide user interface elements in\nthe document\'s window (such as scroll bars and navigation controls),\nleaving only the document\'s contents displayed. Default value: false.')\ + .done().done()\ + .optional()\ + .field('FitWindow')\ + .name('FitWindow')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to resize the document\'s window to\nfit the size of the first displayed page. Default value: false.')\ + .done().done()\ + .optional()\ + .field('CenterWindow')\ + .name('CenterWindow')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to position the document\'s window\nin the center of the screen. Default value: false.')\ + .done().done()\ + .optional()\ + .field('DisplayDocTitle')\ + .name('DisplayDocTitle')\ + .type('boolean')\ + .comment('(Optional; PDF 1.4) A flag specifying whether the window\'s title bar\nshould display the document title taken from the Title entry of the docu-\nment information dictionary (see Section 9.2.1, "Document Informa-\ntion Dictionary"). If false, the title bar should instead display the name\nof the PDF file containing the document. Default value: false.')\ + .done().done()\ + .optional()\ + .field('NonFullScreenPageMode')\ + .name('NonFullScreenPageMode')\ + .type('name')\ + .comment('(Optional) The document\'s page mode, specifying how to display the\ndocument on exiting full-screen mode:\n UseNone Neither document outline nor thumbnail images\n visible\n UseOutlines Document outline visible\n UseThumbs Thumbnail images visible\nThis entry is meaningful only if the value of the PageMode entry in the\ncatalog dictionary (see Section 3.6.1, "Document Catalog") is FullScreen;\nit is ignored otherwise. Default value: UseNone.')\ + .done().done()\ + .optional()\ + .field('Direction')\ + .name('Direction')\ + .type('name')\ + .comment('(Optional; PDF 1.3) The predominant reading order for text:\n L2R Left to right\n R2L Right to left (including vertical writing systems\n such as Chinese, Japanese, and Korean)\nThis entry has no direct effect on the document\'s contents or page num-\nbering, but can be used to determine the relative positioning of pages\nwhen displayed side by side or printed n-up. Default value: L2R.')\ + .done().done()\ + .optional()\ + .field('ViewArea')\ + .name('ViewArea')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The name of the page boundary representing the\narea of a page to be displayed when viewing the document on the screen.\nThe value is the key designating the relevant page boundary in the page\nobject (see "Page Objects" on page 87 and Section 9.10.1, "Page Bound-\naries"). If the specified page boundary is not defined in the page object,\nits default value will be used, as specified in Table 3.18 on page 88.\nDefault value: CropBox.\nNote: This entry is intended primarily for use by prepress applications that\ninterpret or manipulate the page boundaries as described in Section 9.10.1,\n"Page Boundaries." Most PDF consumer applications will disregard it.')\ + .done().done()\ + .optional()\ + .field('ViewClip')\ + .name('ViewClip')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The name of the page boundary to which the con-\ntents of a page are to be clipped when viewing the document on the\nscreen. The value is the key designating the relevant page boundary in\nthe page object (see "Page Objects" on page 87 and Section 9.10.1, "Page\nBoundaries"). If the specified page boundary is not defined in the page\nobject, its default value will be used, as specified in Table 3.18 on page\n88. Default value: CropBox.\nNote: This entry is intended primarily for use by prepress applications that\ninterpret or manipulate the page boundaries as described in Section 9.10.1,\n"Page Boundaries." Most PDF consumer applications will disregard it.')\ + .done().done()\ + .optional()\ + .field('PrintArea')\ + .name('PrintArea')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The name of the page boundary representing the\narea of a page to be rendered when printing the document. The value is\nthe key designating the relevant page boundary in the page object (see\n"Page Objects" on page 87 and Section 9.10.1, "Page Boundaries"). If the\nspecified page boundary is not defined in the page object, its default value\nwill be used, as specified in Table 3.18 on page 88. Default value: CropBox.\nNote: This entry is intended primarily for use by prepress applications that\ninterpret or manipulate the page boundaries as described in Section 9.10.1,\n"Page Boundaries." Most PDF consumer applications will disregard it.')\ + .done().done()\ + .optional()\ + .field('PrintClip')\ + .name('PrintClip')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The name of the page boundary to which the con-\ntents of a page are to be clipped when printing the document. The value\nis the key designating the relevant page boundary in the page object (see\n"Page Objects" on page 87 and Section 9.10.1, "Page Boundaries"). If the\nspecified page boundary is not defined in the page object, its default value\nwill be used, as specified in Table 3.18 on page 88. Default value: CropBox.\nNote: This entry is intended primarily for use by prepress applications that\ninterpret or manipulate the page boundaries as described in Section 9.10.1,\n"Page Boundaries." Most PDF consumer applications will disregard it.')\ + .done().done()\ + .done() + + pdfspec.addClass('OutlineDictionary', 'Dictionary', 'Entries in the outline dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Outlines for an outline dictionary.')\ + .done().done()\ + .optional()\ + .field('First')\ + .name('First')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) An outline item dictionary represent-\ning the first top-level item in the outline.')\ + .done().done()\ + .optional()\ + .field('Last')\ + .name('Last')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) An outline item dictionary represent-\ning the last top-level item in the outline.')\ + .done().done()\ + .optional()\ + .field('Count')\ + .name('Count')\ + .type('integer')\ + .comment('(Required if the document has any open outline entries) The total number of\nopen items at all levels of the outline. This entry should be omitted if there\nare no open outline items.')\ + .done().done()\ + .done() + + pdfspec.addClass('OutlineItemDictionary', 'Dictionary', 'Entries in an outline item dictionary')\ + .required('NULL')\ + .field('Title')\ + .name('Title')\ + .type('text string')\ + .comment('(Required) The text to be displayed on the screen for this item.')\ + .done().done()\ + .optional()\ + .field('Parent')\ + .name('Parent')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The parent of this item in the outline\nhierarchy. The parent of a top-level item is the outline dictionary itself.')\ + .done().done()\ + .optional()\ + .field('Prev')\ + .name('Prev')\ + .type('dictionary')\ + .comment('(Required for all but the first item at each level; must be an indirect reference)\nThe previous item at this outline level.')\ + .done().done()\ + .optional()\ + .field('Next')\ + .name('Next')\ + .type('dictionary')\ + .comment('(Required for all but the last item at each level; must be an indirect reference)\nThe next item at this outline level.')\ + .done().done()\ + .optional()\ + .field('First')\ + .name('First')\ + .type('dictionary')\ + .comment('(Required if the item has any descendants; must be an indirect reference) The\nfirst of this item\'s immediate children in the outline hierarchy.')\ + .done().done()\ + .optional()\ + .field('Last')\ + .name('Last')\ + .type('dictionary')\ + .comment('(Required if the item has any descendants; must be an indirect reference) The\nlast of this item\'s immediate children in the outline hierarchy.')\ + .done().done()\ + .optional()\ + .field('Count')\ + .name('Count')\ + .type('integer')\ + .comment('(Required if the item has any descendants) If the item is open, the total num-\nber of its open descendants at all lower levels of the outline hierarchy. If the\nitem is closed, a negative integer whose absolute value specifies how many\ndescendants would appear if the item were reopened.')\ + .done().done()\ + .optional()\ + .field('Dest')\ + .name('Dest')\ + .type('name, string, or array')\ + .comment('(Optional; not permitted if an A entry is present) The destination to be\ndisplayed when this item is activated (see Section 8.2.1, "Destinations"; see\nalso implementation note 56 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('A')\ + .name('A')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.1; not permitted if a Dest entry is present) The action to be\nperformed when this item is activated (see Section 8.5, "Actions").')\ + .done().done()\ + .optional()\ + .field('SE')\ + .name('SE')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3; must be an indirect reference) The structure element to\nwhich the item refers (see Section 9.6.1, "Structure Hierarchy").\nNote: The ability to associate an outline item with a structure element (such as\nthe beginning of a chapter) is a PDF 1.3 feature. For backward compatibility\nwith earlier PDF versions, such an item should also specify a destination (Dest)\ncorresponding to an area of a page where the contents of the designated structure\nelement are displayed.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0, repre-\nsenting the components in the DeviceRGB color space of the color to be used\nfor the outline entry\'s text. Default value: [0.0 0.0 0.0].')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('integer')\ + .comment('(Optional; PDF 1.4) A set of flags specifying style characteristics for display-\ning the outline item\'s text (see Table 8.5). Default value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('PageLabelDictionary', 'Dictionary', 'Entries in a page label dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nPageLabel for a page label dictionary.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Optional) The numbering style to be used for the numeric portion of each page label:\n D Decimal arabic numerals\n R Uppercase roman numerals\n r Lowercase roman numerals\n A Uppercase letters (A to Z for the first 26 pages, AA to ZZ for the next 26, and so on)\n a Lowercase letters (a to z for the first 26 pages, aa to zz for the next 26, and so on)\nThere is no default numbering style; if no S entry is present, page labels will consist solely\nof a label prefix with no numeric portion. For example, if the P entry (below) specifies the\nlabel prefix Contents, each page will simply be labeled Contents with no page number. (If\nthe P entry is also missing or empty, the page label will be an empty string.)')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('text string')\ + .comment('(Optional) The label prefix for page labels in this range.')\ + .done().done()\ + .optional()\ + .field('St')\ + .name('St')\ + .type('integer')\ + .comment('(Optional) The value of the numeric portion for the first page label in the range. Sub-\nsequent pages will be numbered sequentially from this value, which must be greater than\nor equal to 1. Default value: 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('ThreadDictionary', 'Dictionary', 'Entries in a thread dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nThread for a thread dictionary.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The first bead in the thread.')\ + .done().done()\ + .optional()\ + .field('I')\ + .name('I')\ + .type('dictionary')\ + .comment('(Optional) A thread information dictionary containing information about the\nthread, such as its title, author, and creation date. The contents of this dictionary are\nsimilar to those of the document information dictionary (see Section 9.2.1, "Docu-\nment Information Dictionary").')\ + .done().done()\ + .done() + + pdfspec.addClass('BeadDictionary', 'Dictionary', 'Entries in a bead dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nBead for a bead dictionary.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('dictionary')\ + .comment('(Required for the first bead of a thread; optional for all others; must be an indirect refer-\nence) The thread to which this bead belongs.\nNote: In PDF 1.1, this entry is permitted only for the first bead of a thread. In PDF 1.2\nand higher, it is permitted for any bead but required only for the first.')\ + .done().done()\ + .optional()\ + .field('N')\ + .name('N')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The next bead in the thread. In the last bead,\nthis entry points to the first.')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The previous bead in the thread. In the first\nbead, this entry points to the last.')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The page object representing the page on\nwhich this bead appears.')\ + .done().done()\ + .required('NULL')\ + .field('R')\ + .name('R')\ + .type('rectangle')\ + .comment('(Required) A rectangle specifying the location of this bead on the page.')\ + .done().done()\ + .done() + + pdfspec.addClass('TransitionDictionary', 'Dictionary', 'Entries in a transition dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nTrans for a transition dictionary.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('number')\ + .comment('(Optional) The duration of the transition effect, in seconds. Default value: 1.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Optional) The transition style to use when moving to this page from another during a\npresentation:\n Split Two lines sweep across the screen, revealing the new page. The lines may\n be either horizontal or vertical and may move inward from the edges of\n the page or outward from the center, as specified by the Dm and M\n entries, respectively.\n Blinds Multiple lines, evenly spaced across the screen, synchronously sweep in\n the same direction to reveal the new page. The lines may be either hori-\n zontal or vertical, as specified by the Dm entry. Horizontal lines move\n downward, vertical lines to the right.\n Box A rectangular box sweeps inward from the edges of the page or outward\n from the center, as specified by the M entry, revealing the new page.\n Wipe A single line sweeps across the screen from one edge to the other in the\n direction specified by the Di entry, revealing the new page.\n Dissolve The old page "dissolves" gradually to reveal the new one.\n Glitter Similar to Dissolve, except that the effect sweeps across the page in a\n wide band moving from one side of the screen to the other in the direc-\n tion specified by the Di entry.\n R The new page simply replaces the old one with no special transition ef-\n fect; the D entry is ignored.\nDefault value: R.')\ + .done().done()\ + .optional()\ + .field('Dm')\ + .name('Dm')\ + .type('name')\ + .comment('(Optional; Split and Blinds transition styles only) The dimension in which the specified\ntransition effect occurs:\n H Horizontal\n V Vertical\nDefault value: H.')\ + .done().done()\ + .optional()\ + .field('M')\ + .name('M')\ + .type('name')\ + .comment('(Optional; Split and Box transition styles only) The direction of motion for the specified\ntransition effect:\n I Inward from the edges of the page\n O Outward from the center of the page\nDefault value: I.')\ + .done().done()\ + .optional()\ + .field('Di')\ + .name('Di')\ + .type('number')\ + .comment('(Optional; Wipe and Glitter transition styles only) The direction in which the specified\ntransition effect moves, expressed in degrees counterclockwise starting from a left-to-\nright direction. (Note that this differs from the page object\'s Rotate entry, which is\nmeasured clockwise from the top.) Only the following values are valid:\n 0 Left to right\n 90 Bottom to top (Wipe only)\n 180 Right to left (Wipe only)\n 270 Top to bottom\n 315 Top-left to bottom-right (Glitter only)\nDefault value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('AnnotationDictionary', 'Dictionary', 'Entries common to all annotation dictionaries')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Annot for an annotation dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; see Table\n8.14 on page 499 for specific values.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required or optional, depending on the annotation type) Text to be displayed\nfor the annotation or, if this type of annotation does not display text, an al-\nternate description of the annotation\'s contents in human-readable form. In\neither case, this text is useful when extracting the document\'s contents in\nsupport of accessibility to disabled users or for other purposes (see Section\n9.8.2, "Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3; not used in FDF files) An indirect reference to the page\nobject with which this annotation is associated.')\ + .done().done()\ + .required('NULL')\ + .field('Rect')\ + .name('Rect')\ + .type('rectangle')\ + .comment('(Required) The annotation rectangle, defining the location of the annotation\non the page in default user space units.')\ + .done().done()\ + .optional()\ + .field('NM')\ + .name('NM')\ + .type('text')\ + .comment('(Optional; PDF 1.4) The annotation name, a text string uniquely identifying\nit among all the annotations on its page.')\ + .done().done()\ + .optional()\ + .field('M')\ + .name('M')\ + .type('date or string')\ + .comment('(Optional; PDF 1.1) The date and time when the annotation was most\nrecently modified. The preferred format is a date string as described in Sec-\ntion 3.8.2, "Dates," but viewer applications should be prepared to accept and\ndisplay a string in any format. (See implementation note 59 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('integer')\ + .comment('(Optional; PDF 1.1) A set of flags specifying various characteristics of the an-\nnotation (see Section 8.4.2, "Annotation Flags"). Default value: 0.')\ + .done().done()\ + .optional()\ + .field('BS')\ + .name('BS')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) A border style dictionary specifying the characteristics of\nthe annotation\'s border (see Section 8.4.3, "Border Styles"; see also imple-\nmentation note 60 in Appendix H).\nNote: This entry also specifies the width and dash pattern for the lines drawn by\nline, square, circle, and ink annotations. See the note under Border (below) for\nadditional information.')\ + .done().done()\ + .optional()\ + .field('Border')\ + .name('Border')\ + .type('array')\ + .comment('(Optional) An array specifying the characteristics of the annotation\'s border.\nThe border is specified as a "rounded rectangle."\nIn PDF 1.0, the array consists of three numbers defining the horizontal cor-\nner radius, vertical corner radius, and border width, all in default user space\nunits. If the corner radii are 0, the border has square (not rounded) corners;\nif the border width is 0, no border is drawn. (See implementation note 61 in\nAppendix H.)\n In PDF 1.1, the array may have a fourth element, an optional dash array\n defining a pattern of dashes and gaps to be used in drawing the border. The\n dash array is specified in the same format as in the line dash pattern parame-\n ter of the graphics state (see "Line Dash Pattern" on page 155). For example,\n a Border value of [0 0 1 [3 2]] specifies a border 1 unit wide, with square\n corners, drawn with 3-unit dashes alternating with 2-unit gaps. Note that no\n dash phase is specified; the phase is assumed to be 0. (See implementation\n note 62 in Appendix H.)\n Note: In PDF 1.2 or later, annotations may ignore this entry and use the BS\n entry (see above) to specify their border styles instead. In PDF 1.2 and 1.3, only\n widget annotations do so; in PDF 1.4, all of the standard annotation types ex-\n cept Link (see Table 8.14 on page 499) use BS rather than Border if both are\n present. For backward compatibility, however, Border is still supported for all\n annotation types.\n Default value: [0 0 1].')\ + .done().done()\ + .optional()\ + .field('AP')\ + .name('AP')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An appearance dictionary specifying how the annotation\nis presented visually on the page (see Section 8.4.4, "Appearance Streams";\nsee also implementation note 60 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('AS')\ + .name('AS')\ + .type('name')\ + .comment('(Required if the appearance dictionary AP contains one or more subdictionaries;\nPDF 1.2) The annotation\'s appearance state, which selects the applicable\nappearance stream from an appearance subdictionary (see Section 8.4.4,\n"Appearance Streams"; see also implementation note 60 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('array')\ + .comment('(Optional; PDF 1.1) An array of three numbers in the range 0.0 to 1.0, repre-\nsenting the components of a color in the DeviceRGB color space. This color\nwill be used for the following purposes:\n* The background of the annotation\'s icon when closed\n* The title bar of the annotation\'s pop-up window\n* The border of a link annotation')\ + .done().done()\ + .optional()\ + .field('CA')\ + .name('CA')\ + .type('number')\ + .comment('(Optional; PDF 1.4) The constant opacity value to be used in painting the\nannotation (see Sections 7.1, "Overview of Transparency," and 7.2.6, "Shape\nand Opacity Computations"). This value applies to all visible elements of\nthe annotation in its closed state (including its background and border), but\nnot to the pop-up window that appears when the annotation is opened. The\nspecified value is used as the initial alpha constant (both stroking and non-\nstroking) for interpreting the annotation\'s appearance stream, if any (see\nSection 8.4.4, "Appearance Streams," and "Constant Shape and Opacity" on\npage 444). The implicit blend mode (see Section 7.2.4, "Blend Mode") is\nNormal. Default value: 1.0.\n Note: If no explicit appearance stream is defined for the annotation, it will be\n painted by implementation-dependent means that do not necessarily conform to\n the Adobe imaging model; in this case, the effect of this entry is implementation-\n dependent as well.\n Note: This entry is recognized by all of the standard annotation types listed in\n Table 8.14 on page 499 except Link, Movie, Widget, PrinterMark, and TrapNet.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Optional; PDF 1.1) The text label to be displayed in the title bar of the anno-\ntation\'s pop-up window when open and active.')\ + .done().done()\ + .optional()\ + .field('Popup')\ + .name('Popup')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) An indirect reference to a pop-up annotation for enter-\ning or editing the text associated with this annotation.')\ + .done().done()\ + .optional()\ + .field('A')\ + .name('A')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.1) An action to be performed when the annotation is acti-\nvated (see Section 8.5, "Actions").\nNote: This entry is not permitted in link annotations if a Dest entry is present\n(see "Link Annotations" on page 501). Also note that the A entry in movie anno-\ntations has a different meaning (see "Movie Annotations" on page 510).')\ + .done().done()\ + .optional()\ + .field('AA')\ + .name('AA')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An additional-actions dictionary defining the anno-\ntation\'s behavior in response to various trigger events (see Section 8.5.2,\n"Trigger Events"). At the time of publication, this entry is used only by wid-\nget annotations.')\ + .done().done()\ + .optional()\ + .field('StructParent')\ + .name('StructParent')\ + .type('integer')\ + .comment('(Required if the annotation is a structural content item; PDF 1.3) The integer\nkey of the annotation\'s entry in the structural parent tree (see "Finding Struc-\nture Elements from Content Items" on page 600).')\ + .done().done()\ + .done() + + pdfspec.addClass('BorderStyleDictionary', 'Dictionary', 'Entries in a border style dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nBorder for a border style dictionary.')\ + .done().done()\ + .optional()\ + .field('W')\ + .name('W')\ + .type('number')\ + .comment('(Optional) The border width in points. If this value is 0, no border is drawn. Default\nvalue: 1.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Optional) The border style:\n S (Solid) A solid rectangle surrounding the annotation.\n D (Dashed) A dashed rectangle surrounding the annotation. The dash pattern\n is specified by the D entry (see below).\n B (Beveled) A simulated embossed rectangle that appears to be raised above the\n surface of the page.\n I (Inset) A simulated engraved rectangle that appears to be recessed below the\n surface of the page.\n U (Underline) A single line along the bottom of the annotation rectangle.\nOther border styles may be defined in the future. (See implementation note 64 in\nAppendix H.) Default value: S.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('array')\ + .comment('(Optional) A dash array defining a pattern of dashes and gaps to be used in drawing a\ndashed border (border style D above). The dash array is specified in the same format\nas in the line dash pattern parameter of the graphics state (see "Line Dash Pattern" on\npage 155). The dash phase is not specified and is assumed to be 0. For example, a D\nentry of [3 2] specifies a border drawn with 3-point dashes alternating with 2-point\ngaps. Default value: [3].')\ + .done().done()\ + .done() + + pdfspec.addClass('AppearanceDictionary', 'Dictionary', 'Entries in an appearance dictionary')\ + .required('NULL')\ + .field('N')\ + .name('N')\ + .type('stream or dictionary')\ + .comment('(Required) The annotation\'s normal appearance.')\ + .done().done()\ + .optional()\ + .field('R')\ + .name('R')\ + .type('stream or dictionary')\ + .comment('(Optional) The annotation\'s rollover appearance. Default value: the value of\nthe N entry.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('stream or dictionary')\ + .comment('(Optional) The annotation\'s down appearance. Default value: the value of the\nN entry.')\ + .done().done()\ + .done() + + pdfspec.addClass('TextAnnotationDictionary', 'Dictionary', 'Additional entries specific to a text annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Text\nfor a text annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annotation\nis opened. Carriage returns may be used to separate the text into paragraphs.')\ + .done().done()\ + .optional()\ + .field('Open')\ + .name('Open')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether the annotation should initially be displayed\nopen. Default value: false (closed).')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Optional) The name of an icon to be used in displaying the annotation. Viewer\napplications should provide predefined icon appearances for at least the follow-\ning standard names:\n Comment Key Note\n Help NewParagraph Paragraph\n Insert\nAdditional names may be supported as well. Default value: Note.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nName entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams."')\ + .done().done()\ + .done() + + pdfspec.addClass('ALinkAnnotationDictionary', 'Dictionary', 'Additional entries specific to a link annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Link\nfor a link annotation.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) An alternate representation of the annotation\'s contents in\nhuman-readable form, useful when extracting the document\'s contents in sup-\nport of accessibility to disabled users or for other purposes (see Section 9.8.2,\n"Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('Dest')\ + .name('Dest')\ + .type('array, name, or string')\ + .comment('(Optional; not permitted if an A entry is present) A destination to be displayed\nwhen the annotation is activated (see Section 8.2.1, "Destinations"; see also\nimplementation note 66 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('H')\ + .name('H')\ + .type('name')\ + .comment('(Optional; PDF 1.2) The annotation\'s highlighting mode, the visual effect to be\nused when the mouse button is pressed or held down inside its active area:\n N (None) No highlighting.\n I (Invert) Invert the contents of the annotation rectangle.\n O (Outline) Invert the annotation\'s border.\n P (Push) Display the annotation\'s down appearance, if any (see Section\n 8.4.4, "Appearance Streams"). If no down appearance is defined, offset\n the contents of the annotation rectangle to appear as if it were being\n "pushed" below the surface of the page.\nA highlighting mode other than P overrides any down appearance defined for\nthe annotation. Default value: I.\nNote: In PDF 1.1, highlighting is always done by inverting colors inside the anno-\ntation rectangle.')\ + .done().done()\ + .optional()\ + .field('PA')\ + .name('PA')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A URI action (see "URI Actions" on page 523) formerly\nassociated with this annotation. When Web Capture (Section 9.9, "Web Cap-\nture") changes an annotation from a URI to a go-to action ("Go-To Actions"\non page 519), it uses this entry to save the data from the original URI action so\nthat it can be changed back in case the target page for the go-to action is subse-\nquently deleted.')\ + .done().done()\ + .done() + + pdfspec.addClass('FreeTextAnnotationDictionary', 'Dictionary', 'Additional entries specific to a free text annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be\nFreeText for a free text annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed.')\ + .done().done()\ + .required('NULL')\ + .field('DA')\ + .name('DA')\ + .type('string')\ + .comment('(Required) The default appearance string to be used in formatting the text (see\n"Variable Text" on page 533).\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the DA\nentry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams."')\ + .done().done()\ + .optional()\ + .field('Q')\ + .name('Q')\ + .type('integer')\ + .comment('(Optional; PDF 1.4) A code specifying the form of quadding (justification) to be\nused in displaying the annotation\'s text:\n 0 Left-justified\n 1 Centered\n 2 Right-justified\nDefault value: 0 (left-justified).')\ + .done().done()\ + .done() + + pdfspec.addClass('LineAnnotationDictionary', 'Dictionary', 'Additional entries specific to a line annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Line\nfor a line annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annotation\nis opened. Carriage returns may be used to separate the text into paragraphs.')\ + .done().done()\ + .required('NULL')\ + .field('L')\ + .name('L')\ + .type('array')\ + .comment('(Required) An array of four numbers, [x1 y1 x2 y2 ], specifying the starting and\nending coordinates of the line in default user space.')\ + .done().done()\ + .optional()\ + .field('BS')\ + .name('BS')\ + .type('dictionary')\ + .comment('(Optional) A border style dictionary (see Table 8.12 on page 495) specifying the\nwidth and dash pattern to be used in drawing the line.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the L\nand BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams."')\ + .done().done()\ + .optional()\ + .field('LE')\ + .name('LE')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of two names specifying the line ending styles to be\nused in drawing the line. The first and second elements of the array specify the\nline ending styles for the endpoints defined, respectively, by the first and second\npairs of coordinates, (x1 , y1 ) and (x2 , y2 ), in the L array. Table 8.19 shows the\npossible values. Default value: [/None /None].')\ + .done().done()\ + .optional()\ + .field('IC')\ + .name('IC')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0 specifying\nthe components, in the DeviceRGB color space, of the interior color with which to\nfill the annotation\'s line endings (see Table 8.19). If this entry is absent, the inte-\nriors of the line endings are left transparent.')\ + .done().done()\ + .done() + + pdfspec.addClass('SquareOrCircleAnnotation', 'Dictionary', 'Additional entries specific to a square or circle annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Square\nor Circle for a square or circle annotation, respectively.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annotation\nis opened. Carriage returns may be used to separate the text into paragraphs.')\ + .done().done()\ + .optional()\ + .field('BS')\ + .name('BS')\ + .type('dictionary')\ + .comment('(Optional) A border style dictionary (see Table 8.12 on page 495) specifying the\nline width and dash pattern to be used in drawing the rectangle or ellipse.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nRect and BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance\nStreams."')\ + .done().done()\ + .optional()\ + .field('IC')\ + .name('IC')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of three numbers in the range 0.0 to 1.0 specifying\nthe components, in the DeviceRGB color space, of the interior color with which to\nfill the annotation\'s rectangle or ellipse (see Table 8.19). If this entry is absent,\nthe interior of the annotation is left transparent.')\ + .done().done()\ + .done() + + pdfspec.addClass('MarkupAnnotationsDictionary', 'Dictionary', 'Additional entries specific to markup annotations')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be\nHighlight, Underline, Squiggly, or StrikeOut for a highlight, underline,\nsquiggly-underline, or strikeout annotation, respectively.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annota-\ntion is opened. Carriage returns may be used to separate the text into para-\ngraphs.')\ + .done().done()\ + .required('NULL')\ + .field('QuadPoints')\ + .name('QuadPoints')\ + .type('array')\ + .comment('(Required) An array of 8 x n numbers specifying the coordinates of n quadri-\nlaterals in default user space. Each quadrilateral encompasses a word or\ngroup of contiguous words in the text underlying the annotation. The coor-\ndinates for each quadrilateral are given in the order\n x1 y1 x2 y2 x3 y3 x4 y4\nspecifying the quadrilateral\'s four vertices in counterclockwise order (see\nFigure 8.5). The text is oriented with respect to the edge connecting points\n(x1 , y1) and (x2 , y2). (See implementation note 67 in Appendix H.)\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nQuadPoints entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance\nStreams."\n (x3 , y3 )\n ter\n (x2 , y2 )\n pi\n (x4 , y4 )\n Ju\n (x1 , y1 )\n FIGURE 8.5 QuadPoints specification')\ + .done().done()\ + .done() + + pdfspec.addClass('RubberStampAnnotationDictionary', 'Dictionary', 'Additional entries specific to a rubber stamp annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Stamp\nfor a rubber stamp annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annotation\nis opened. Carriage returns may be used to separate the text into paragraphs.')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Optional) The name of an icon to be used in displaying the annotation. Viewer\napplications should provide predefined icon appearances for at least the follow-\ning standard names:\n Approved Experimental NotApproved\n AsIs Expired NotForPublicRelease\n Confidential Final Sold\n Departmental ForComment TopSecret\n Draft ForPublicRelease\nAdditional names may be supported as well. Default value: Draft.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nName entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams."')\ + .done().done()\ + .done() + + pdfspec.addClass('InkAnnotationDictionary', 'Dictionary', 'Additional entries specific to an ink annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Ink for\nan ink annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annotation\nis opened. Carriage returns may be used to separate the text into paragraphs.')\ + .done().done()\ + .required('NULL')\ + .field('InkList')\ + .name('InkList')\ + .type('array')\ + .comment('(Required) An array of n arrays, each representing a stroked path. Each array is a\nseries of alternating horizontal and vertical coordinates in default user space,\nspecifying points along the path. When drawn, the points are connected by\nstraight lines or curves in an implementation-dependent way. (See implementa-\ntion note 68 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('BS')\ + .name('BS')\ + .type('dictionary')\ + .comment('(Optional) A border style dictionary (see Table 8.12 on page 495) specifying the\nline width and dash pattern to be used in drawing the paths.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nInkList and BS entries; see Table 8.10 on page 490 and Section 8.4.4, "Appearance\nStreams."')\ + .done().done()\ + .done() + + pdfspec.addClass('PopUpAnnotationDictionary', 'Dictionary', 'Additional entries specific to a pop-up annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be\nPopup for a pop-up annotation.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) An alternate representation of the annotation\'s contents\nin human-readable form, useful when extracting the document\'s contents in\nsupport of accessibility to disabled users or for other purposes (see Section\n9.8.2, "Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('Parent')\ + .name('Parent')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) The parent annotation with which\nthis pop-up annotation is associated.\nNote: If this entry is present, the parent annotation\'s Contents, M, C, and T\nentries (see Table 8.10 on page 490) override those of the pop-up annotation\nitself.')\ + .done().done()\ + .optional()\ + .field('Open')\ + .name('Open')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether the pop-up annotation should initially\nbe displayed open. Default value: false (closed).')\ + .done().done()\ + .done() + + pdfspec.addClass('FileAttachmentAnnotationDictionary', 'Dictionary', 'Additional entries specific to a file attachment annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be\nFileAttachment for a file attachment annotation.')\ + .done().done()\ + .required('NULL')\ + .field('FS')\ + .name('FS')\ + .type('file specification')\ + .comment('(Required) The file associated with this annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Required) The text to be displayed in the pop-up window when the annota-\ntion is opened. Carriage returns may be used to separate the text into para-\ngraphs.')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Optional) The name of an icon to be used in displaying the annotation.\nViewer applications should provide predefined icon appearances for at least\nthe following standard names:\n Graph PushPin\n Paperclip Tag\nAdditional names may be supported as well. Default value: PushPin.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over\nthe Name entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance\nStreams."')\ + .done().done()\ + .done() + + pdfspec.addClass('SoundAnnotationDictionary', 'Dictionary', 'Additional entries specific to a sound annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Sound\nfor a sound annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Sound')\ + .name('Sound')\ + .type('stream')\ + .comment('(Required) A sound object defining the sound to be played when the annotation\nis activated (see Section 8.7, "Sounds").')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional) Text to be displayed in a pop-up window for the annotation in place\nof the sound, useful when extracting the document\'s contents in support of\naccessibility to disabled users or for other purposes (see Section 9.8.2, "Alternate\nDescriptions").')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('name')\ + .comment('(Optional) The name of an icon to be used in displaying the annotation. Viewer\napplications should provide predefined icon appearances for at least the stan-\ndard names Speaker and Microphone; additional names may be supported as\nwell. Default value: Speaker.\nNote: The annotation dictionary\'s AP entry, if present, takes precedence over the\nName entry; see Table 8.10 on page 490 and Section 8.4.4, "Appearance Streams."')\ + .done().done()\ + .done() + + pdfspec.addClass('MovieAnnotationDictionary', 'Dictionary', 'Additional entries specific to a movie annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Movie\nfor a movie annotation.')\ + .done().done()\ + .required('NULL')\ + .field('Movie')\ + .name('Movie')\ + .type('dictionary')\ + .comment('(Required) A movie dictionary describing the movie\'s static characteristics (see\nSection 8.8, "Movies").')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) An alternate representation of the annotation\'s contents in\nhuman-readable form, useful when extracting the document\'s contents in sup-\nport of accessibility to disabled users or for other purposes (see Section 9.8.2,\n"Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('A')\ + .name('A')\ + .type('boolean or dictionary')\ + .comment('(Optional) A flag or dictionary specifying whether and how to play the movie\nwhen the annotation is activated. If this value is a dictionary, it is a movie activa-\ntion dictionary (see Section 8.8, "Movies") specifying how to play the movie; if it\nis the boolean value true, the movie should be played using default activation\nparameters; if it is false, the movie should not be played at all. Default value:\ntrue.')\ + .done().done()\ + .done() + + pdfspec.addClass('WidgetAnnotationDictionary', 'Dictionary', 'Additional entries specific to a widget annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Widget\nfor a widget annotation.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) An alternate representation of the annotation\'s contents in\nhuman-readable form, useful when extracting the document\'s contents in sup-\nport of accessibility to disabled users or for other purposes (see Section 9.8.2,\n"Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('H')\ + .name('H')\ + .type('name')\ + .comment('(Optional) The annotation\'s highlighting mode, the visual effect to be used when\nthe mouse button is pressed or held down inside its active area:\n N (None) No highlighting.\n I (Invert) Invert the contents of the annotation rectangle.\n O (Outline) Invert the annotation\'s border.\n P (Push) Display the annotation\'s down appearance, if any (see Section\n 8.4.4, "Appearance Streams"). If no down appearance is defined, offset\n the contents of the annotation rectangle to appear as if it were being\n "pushed" below the surface of the page.\n T (Toggle) Same as P (which is preferred).\nA highlighting mode other than P overrides any down appearance defined for\nthe annotation. Default value: I.')\ + .done().done()\ + .optional()\ + .field('MK')\ + .name('MK')\ + .type('dictionary')\ + .comment('(Optional) An appearance characteristics dictionary to be used in constructing a\ndynamic appearance stream specifying the annotation\'s visual presentation on\nthe page; see "Variable Text" on page 533 for further discussion.\nNote: The name MK for this entry is of historical significance only and has no direct\nmeaning.')\ + .done().done()\ + .done() + + pdfspec.addClass('ActionDictionary', 'Dictionary', 'Entries common to all action dictionaries')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be Action for an action dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; see Table 8.34\non page 518 for specific values.')\ + .done().done()\ + .optional()\ + .field('Next')\ + .name('Next')\ + .type('dictionary or array')\ + .comment('(Optional; PDF 1.2) The next action, or sequence of actions, to be per-\nformed after this one. The value is either a single action dictionary or an\narray of action dictionaries to be performed in order; see below for fur-\nther discussion.')\ + .done().done()\ + .done() + + pdfspec.addClass('AnnotationActionsDictionary', 'Dictionary', 'Entries in an annotation\'s additional-actions dictionary')\ + .optional()\ + .field('E')\ + .name('E')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the cursor enters the annotation\'s\nactive area.')\ + .done().done()\ + .optional()\ + .field('X')\ + .name('X')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the cursor exits the annotation\'s\nactive area.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the mouse button is pressed\ninside the annotation\'s active area. (The name D stands for "down.")')\ + .done().done()\ + .optional()\ + .field('U')\ + .name('U')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the mouse button is released\ninside the annotation\'s active area. (The name U stands for "up.")\nNote: For backward compatibility, the A entry in an annotation dictionary, if present,\ntakes precedence over this entry (see Table 8.10 on page 490).')\ + .done().done()\ + .optional()\ + .field('Fo')\ + .name('Fo')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2; widget annotations only) An action to be performed when the\nannotation receives the input focus.')\ + .done().done()\ + .optional()\ + .field('Bl')\ + .name('Bl')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2; widget annotations only) (Uppercase B, lowercase L) An action to\nbe performed when the annotation loses the input focus. (The name Bl stands for\n"blurred.")')\ + .done().done()\ + .done() + + pdfspec.addClass('PageObjectActionsDictionary', 'Dictionary', 'Entries in a page object\'s additional-actions dictionary')\ + .optional()\ + .field('O')\ + .name('O')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the page is opened (for example,\nwhen the user navigates to it from the next or previous page or via a link annotation or\noutline item). This action is independent of any that may be defined by the Open-\nAction entry in the document catalog (see Section 3.6.1, "Document Catalog"), and is\nexecuted after such an action. (See implementation note 72 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An action to be performed when the page is closed (for example,\nwhen the user navigates to the next or previous page or follows a link annotation or an\noutline item). This action applies to the page being closed, and is executed before any\nother page is opened. (See implementation note 72 in Appendix H.)')\ + .done().done()\ + .done() + + pdfspec.addClass('FormFieldActionsDictionary', 'Dictionary', 'Entries in a form field\'s additional-actions dictionary')\ + .optional()\ + .field('K')\ + .name('K')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A JavaScript action to be performed when the user types a key-\nstroke into a text field or combo box or modifies the selection in a scrollable list box.\nThis allows the keystroke to be checked for validity and rejected or modified.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A JavaScript action to be performed before the field is formatted\nto display its current value. This allows the field\'s value to be modified before format-\nting.')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A JavaScript action to be performed when the field\'s value is\nchanged. This allows the new value to be checked for validity. (The name V stands for\n"validate.")')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A JavaScript action to be performed in order to recalculate the\nvalue of this field when that of another field changes. (The name C stands for\n"calculate.") The order in which the document\'s fields are recalculated is defined by the\nCO entry in the interactive form dictionary (see Section 8.6.1, "Interactive Form\nDictionary").')\ + .done().done()\ + .done() + + pdfspec.addClass('DocumentCatalogActionsDictionary', 'Dictionary', 'Entries in the document catalog\'s additional-actions dictionary')\ + .optional()\ + .field('DC')\ + .name('DC')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript action to be performed before closing a document.\n(The name DC stands for "document close.")')\ + .done().done()\ + .optional()\ + .field('WS')\ + .name('WS')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript action to be performed before saving a document.\n(The name WS stands for "will save.")')\ + .done().done()\ + .optional()\ + .field('DS')\ + .name('DS')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript action to be performed after saving a document. (The\nname DS stands for "did save.")')\ + .done().done()\ + .optional()\ + .field('WP')\ + .name('WP')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript action to be performed before printing a document.\n(The name WP stands for "will print.")')\ + .done().done()\ + .optional()\ + .field('DP')\ + .name('DP')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript action to be performed after printing a document.\n(The name DP stands for "did print.")')\ + .done().done()\ + .done() + + pdfspec.addClass('GoToActionDictionary', 'Dictionary', 'Additional entries specific to a go-to action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be GoTo for a\ngo-to action.')\ + .done().done()\ + .required('NULL')\ + .field('D')\ + .name('D')\ + .type('name, string, or array')\ + .comment('(Required) The destination to jump to (see Section 8.2.1, "Destinations").')\ + .done().done()\ + .done() + + pdfspec.addClass('RemoteGoToActionDictionary', 'Dictionary', 'Additional entries specific to a remote go-to action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be GoToR\nfor a remote go-to action.')\ + .done().done()\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required) The file in which the destination is located.')\ + .done().done()\ + .required('NULL')\ + .field('D')\ + .name('D')\ + .type('name, string, or array')\ + .comment('(Required) The destination to jump to (see Section 8.2.1, "Destinations"). If\nthe value is an array defining an explicit destination (as described under\n"Explicit Destinations" on page 474), its first element must be a page number\nwithin the remote document rather than an indirect reference to a page ob-\nject in the current document. The first page is numbered 0.')\ + .done().done()\ + .optional()\ + .field('NewWindow')\ + .name('NewWindow')\ + .type('boolean')\ + .comment('(Optional; PDF 1.2) A flag specifying whether to open the destination docu-\nment in a new window. If this flag is false, the destination document will\nreplace the current document in the same window. If this entry is absent,\nthe viewer application should behave in accordance with the current user\npreference.')\ + .done().done()\ + .done() + + pdfspec.addClass('LaunchActionDictionary', 'Dictionary', 'Additional entries specific to a launch action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Launch\nfor a launch action.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required if none of the entries Win, Mac, or Unix is present) The application to\nbe launched or the document to be opened or printed. If this entry is absent\nand the viewer application does not understand any of the alternative entries,\nit should do nothing.')\ + .done().done()\ + .optional()\ + .field('Win')\ + .name('Win')\ + .type('dictionary')\ + .comment('(Optional) A dictionary containing Windows-specific launch parameters (see\nthe Table 8.38; see also implementation note 73 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('Mac')\ + .name('Mac')\ + .type('(undefined)')\ + .comment('(Optional) Mac OS\'specific launch parameters; not yet defined.')\ + .done().done()\ + .optional()\ + .field('Unix')\ + .name('Unix')\ + .type('(undefined)')\ + .comment('(Optional) UNIX-specific launch parameters; not yet defined.')\ + .done().done()\ + .optional()\ + .field('NewWindow')\ + .name('NewWindow')\ + .type('boolean')\ + .comment('(Optional; PDF 1.2) A flag specifying whether to open the destination docu-\nment in a new window. If this flag is false, the destination document will\nreplace the current document in the same window. If this entry is absent, the\nviewer application should behave in accordance with the current user prefer-\nence. This entry is ignored if the file designated by the F entry is not a PDF\ndocument.')\ + .done().done()\ + .done() + + pdfspec.addClass('WindowsLaunchActionDictionary', 'Dictionary', 'Entries in a Windows launch parameter dictionary')\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('string')\ + .comment('(Required) The file name of the application to be launched or the document\nto be opened or printed, in standard Windows pathname format. If the name\nstring includes a backslash character (\), the backslash must itself be preceded\nby a backslash.\nNote: This value must be a simple string; it is not a file specification.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('string')\ + .comment('(Optional) A string specifying the default directory in standard DOS syntax.')\ + .done().done()\ + .optional()\ + .field('O')\ + .name('O')\ + .type('string')\ + .comment('(Optional) A string specifying the operation to perform:\n open Open a document.\n print Print a document.\nIf the F entry designates an application instead of a document, this entry is ig-\nnored and the application is launched. Default value: open.')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('string')\ + .comment('(Optional) A parameter string to be passed to the application designated by\nthe F entry. This entry should be omitted if F designates a document.')\ + .done().done()\ + .done() + + pdfspec.addClass('ThreadActionDictionary', 'Dictionary', 'Additional entries specific to a thread action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Thread\nfor a thread action.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Optional) The file containing the desired thread. If this entry is absent, the\nthread is in the current file.')\ + .done().done()\ + .required('NULL')\ + .field('D')\ + .name('D')\ + .type('dictionary, integer, or text string')\ + .comment('(Required) The desired destination thread, specified in one of the following\nforms:\n* An indirect reference to a thread dictionary (see Section 8.3.2, "Articles").\n In this case, the thread must be in the current file.\n* The index of the thread within the Threads array of its document\'s catalog\n (see Section 3.6.1, "Document Catalog"). The first thread in the array has\n index 0.\n* The title of the thread, as specified in its thread information dictionary (see\n Table 8.7 on page 484). If two or more threads have the same title, the one\n appearing first in the document catalog\'s Threads array will be used.')\ + .done().done()\ + .optional()\ + .field('B')\ + .name('B')\ + .type('dictionary or integer')\ + .comment('(Optional) The desired bead in the destination thread, specified in one of the\nfollowing forms:\n* An indirect reference to a bead dictionary (see Section 8.3.2, "Articles"). In\n this case, the thread must be in the current file.\n* The index of the bead within its thread. The first bead in a thread has\n index 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('URIActionDictionary', 'Dictionary', 'Additional entries specific to a URI action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be URI for a URI\naction.')\ + .done().done()\ + .required('NULL')\ + .field('URI')\ + .name('URI')\ + .type('string')\ + .comment('(Required) The uniform resource identifier to resolve, encoded in 7-bit ASCII.')\ + .done().done()\ + .optional()\ + .field('IsMap')\ + .name('IsMap')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to track the mouse position when the URI is re-\nsolved (see below). Default value: false.\nThis entry applies only to actions triggered by the user\'s clicking an annotation; it is\nignored for actions associated with outline items or with a document\'s OpenAction\nentry.')\ + .done().done()\ + .done() + + pdfspec.addClass('URIDictionary', 'Dictionary', 'Entry in a URI dictionary')\ + .optional()\ + .field('Base')\ + .name('Base')\ + .type('string')\ + .comment('(Optional) The base URI to be used in resolving relative URI references. URI actions\nwithin the document may specify URIs in partial form, to be interpreted relative to\nthis base address. If no base URI is specified, such partial URIs will be interpreted rel-\native to the location of the document itself. The use of this entry is parallel to that of\nthe body element , as described in section 2.7.2 of Internet RFC 1866, Hyper-\ntext Markup Language 2.0 Proposed Standard (see the Bibliography).')\ + .done().done()\ + .done() + + pdfspec.addClass('SoundActionDictionary', 'Dictionary', 'Additional entries specific to a sound action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Sound\nfor a sound action.')\ + .done().done()\ + .required('NULL')\ + .field('Sound')\ + .name('Sound')\ + .type('stream')\ + .comment('(Required) A sound object defining the sound to be played (see Section 8.7,\n"Sounds"; see also implementation note 76 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('Volume')\ + .name('Volume')\ + .type('number')\ + .comment('(Optional) The volume at which to play the sound, in the range -1.0 to 1.0.\nHigher values denote greater volume; negative values mute the sound.\nDefault value: 1.0.')\ + .done().done()\ + .optional()\ + .field('Synchronous')\ + .name('Synchronous')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to play the sound synchronously or\nasynchronously. If this flag is true, the viewer application will retain control,\nallowing no further user interaction other than canceling the sound, until the\nsound has been completely played. Default value: false.')\ + .done().done()\ + .optional()\ + .field('Repeat')\ + .name('Repeat')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to repeat the sound indefinitely. If this\nentry is present, the Synchronous entry is ignored. Default value: false.')\ + .done().done()\ + .optional()\ + .field('Mix')\ + .name('Mix')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to mix this sound with any other sound\nalready playing. If this flag is false, any previously playing sound will be\nstopped before starting this sound; this can be used to stop a repeating sound\n(see Repeat, above). Default value: false.')\ + .done().done()\ + .done() + + pdfspec.addClass('MovieActionDictionary', 'Dictionary', 'Additional entries specific to a movie action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Movie\nfor a movie action.')\ + .done().done()\ + .optional()\ + .field('Annot')\ + .name('Annot')\ + .type('dictionary')\ + .comment('(Optional) An indirect reference to a movie annotation identifying the movie\nto be played.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Optional) The title of a movie annotation identifying the movie to be\nplayed.\nNote: The dictionary must include either an Annot or a T entry, but not both.')\ + .done().done()\ + .optional()\ + .field('Operation')\ + .name('Operation')\ + .type('name')\ + .comment('(Optional) The operation to be performed on the movie:\n Play Start playing the movie, using the play mode specified by the\n dictionary\'s Mode entry (see Table 8.79 on page 571). If the\n movie is currently paused, it is repositioned to the beginning\n before playing (or to the starting point specified by the dic-\n tionary\'s Start entry, if present).\n Stop Stop playing the movie.\n Pause Pause a playing movie.\n Resume Resume a paused movie.\nDefault value: Play.')\ + .done().done()\ + .done() + + pdfspec.addClass('HideActionDictionary', 'Dictionary', 'Additional entries specific to a hide action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Hide for a hide\naction.')\ + .done().done()\ + .required('NULL')\ + .field('T')\ + .name('T')\ + .type('dictionary, string, or array')\ + .comment('(Required) The annotation or annotations to be hidden or shown, specified in any\nof the following forms:\n* An indirect reference to an annotation dictionary\n* A string giving the fully qualified field name of an interactive form field whose\n associated widget annotation or annotations are to be affected (see "Field\n Names" on page 532)\n* An array of such dictionaries or strings')\ + .done().done()\ + .optional()\ + .field('H')\ + .name('H')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether to hide the annotation (true) or show it (false).\nDefault value: true.')\ + .done().done()\ + .done() + + pdfspec.addClass('NamedActionsDictionary', 'Dictionary', 'Additional entries specific to named actions')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be Named for a named\naction.')\ + .done().done()\ + .required('NULL')\ + .field('N')\ + .name('N')\ + .type('name')\ + .comment('(Required) The name of the action to be performed (see Table 8.45).')\ + .done().done()\ + .done() + + pdfspec.addClass('InteractiveFormDictionary', 'Dictionary', 'Entries in the interactive form dictionary')\ + .required('NULL')\ + .field('Fields')\ + .name('Fields')\ + .type('array')\ + .comment('(Required) An array of references to the document\'s root fields (those with\nno ancestors in the field hierarchy).')\ + .done().done()\ + .optional()\ + .field('NeedAppearances')\ + .name('NeedAppearances')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to construct appearance streams and\nappearance dictionaries for all widget annotations in the document (see\n"Variable Text" on page 533). Default value: false.')\ + .done().done()\ + .optional()\ + .field('SigFlags')\ + .name('SigFlags')\ + .type('integer')\ + .comment('(Optional; PDF 1.3) A set of flags specifying various document-level char-\nacteristics related to signature fields (see Table 8.48, below, and "Signature\nFields" on page 547). Default value: 0.')\ + .done().done()\ + .optional()\ + .field('CO')\ + .name('CO')\ + .type('array')\ + .comment('(Required if any fields in the document have additional-actions dictionaries\ncontaining a C entry; PDF 1.3) An array of indirect references to field dic-\ntionaries with calculation actions, defining the calculation order in which\ntheir values will be recalculated when the value of any field changes (see\nSection 8.5.2, "Trigger Events").')\ + .done().done()\ + .optional()\ + .field('DR')\ + .name('DR')\ + .type('dictionary')\ + .comment('(Optional) A document-wide default value for the DR attribute of variable\ntext fields (see "Variable Text" on page 533).')\ + .done().done()\ + .optional()\ + .field('DA')\ + .name('DA')\ + .type('string')\ + .comment('(Optional) A document-wide default value for the DA attribute of variable\ntext fields (see "Variable Text" on page 533).')\ + .done().done()\ + .optional()\ + .field('Q')\ + .name('Q')\ + .type('integer')\ + .comment('(Optional) A document-wide default value for the Q attribute of variable\ntext fields (see "Variable Text" on page 533).')\ + .done().done()\ + .done() + + pdfspec.addClass('FieldDictionary', 'Dictionary', 'Entries common to all field dictionaries')\ + .optional()\ + .field('FT')\ + .name('FT')\ + .type('name')\ + .comment('(Required for terminal fields; inheritable) The type of field that this dictionary\ndescribes:\n Btn Button (see "Button Fields" on page 538)\n Tx Text (see "Text Fields" on page 543)\n Ch Choice (see "Choice Fields" on page 545)\n Sig (PDF 1.3) Signature (see "Signature Fields" on page 547)\nNote: This entry may be present in a nonterminal field (one whose descendants\nare themselves fields) in order to provide an inheritable FT value. However, a\nnonterminal field does not logically have a type of its own; it is merely a contain-\ner for inheritable attributes that are intended for descendant terminal fields of\nany type.')\ + .done().done()\ + .optional()\ + .field('Parent')\ + .name('Parent')\ + .type('dictionary')\ + .comment('(Required if this field is the child of another in the field hierarchy; absent other-\nwise) The field that is the immediate parent of this one (the field, if any,\nwhose Kids array includes this field). A field can have at most one parent; that\nis, it can be included in the Kids array of at most one other field.')\ + .done().done()\ + .optional()\ + .field('Kids')\ + .name('Kids')\ + .type('array')\ + .comment('(Optional) An array of indirect references to the immediate children of this\nfield.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Optional) The partial field name (see "Field Names," below; see also imple-\nmentation notes 82 and 83 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('TU')\ + .name('TU')\ + .type('text string')\ + .comment('(Optional; PDF 1.3) An alternate field name, to be used in place of the actual\nfield name wherever the field must be identified in the user interface (such as\nin error or status messages referring to the field). This text is also useful\nwhen extracting the document\'s contents in support of accessibility to dis-\nabled users or for other purposes (see Section 9.8.2, "Alternate Descrip-\ntions").')\ + .done().done()\ + .optional()\ + .field('TM')\ + .name('TM')\ + .type('text string')\ + .comment('(Optional; PDF 1.3) The mapping name to be used when exporting inter-\nactive form field data from the document.')\ + .done().done()\ + .optional()\ + .field('Ff')\ + .name('Ff')\ + .type('integer')\ + .comment('(Optional; inheritable) A set of flags specifying various characteristics of the\nfield (see Table 8.50). Default value: 0.')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('(various)')\ + .comment('(Optional; inheritable) The field\'s value, whose format varies depending on\nthe field type; see the descriptions of individual field types for further infor-\nmation.')\ + .done().done()\ + .optional()\ + .field('DV')\ + .name('DV')\ + .type('(various)')\ + .comment('(Optional; inheritable) The default value to which the field reverts when a\nreset-form action is executed (see "Reset-Form Actions" on page 554). The\nformat of this value is the same as that of V.')\ + .done().done()\ + .optional()\ + .field('AA')\ + .name('AA')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.2) An additional-actions dictionary defining the field\'s\nbehavior in response to various trigger events (see Section 8.5.2, "Trigger\nEvents"). This entry has exactly the same meaning as the AA entry in an\nannotation dictionary (see Section 8.4.1, "Annotation Dictionaries").')\ + .done().done()\ + .done() + + pdfspec.addClass('VariableTextFieldDictionary', 'Dictionary', 'Additional entries common to all fields containing variable text')\ + .required('NULL')\ + .field('DR')\ + .name('DR')\ + .type('dictionary')\ + .comment('(Required; inheritable) A resource dictionary (see Section 3.7.2, "Resource Diction-\naries") containing default resources (such as fonts, patterns, or color spaces) to be used\nby the appearance stream. At a minimum, this dictionary must contain a Font entry\nspecifying the resource name and font dictionary of the default font for displaying the\nfield\'s text. (See implementation note 84 in Appendix H.)')\ + .done().done()\ + .required('NULL')\ + .field('DA')\ + .name('DA')\ + .type('string')\ + .comment('(Required; inheritable) The default appearance string, containing a sequence of valid\npage-content graphics or text state operators defining such properties as the field\'s text\nsize and color.')\ + .done().done()\ + .optional()\ + .field('Q')\ + .name('Q')\ + .type('integer')\ + .comment('(Optional; inheritable) A code specifying the form of quadding (justification) to be\nused in displaying the text:\n 0 Left-justified\n 1 Centered\n 2 Right-justified\nDefault value: 0 (left-justified).')\ + .done().done()\ + .done() + + pdfspec.addClass('AppearanceCharacteristicsDictionary', 'Dictionary', 'Entries in an appearance characteristics dictionary')\ + .optional()\ + .field('R')\ + .name('R')\ + .type('integer')\ + .comment('(Optional) The number of degrees by which the widget annotation is rotated\ncounterclockwise relative to the page. The value must be a multiple of 90.\nDefault value: 0.')\ + .done().done()\ + .optional()\ + .field('BC')\ + .name('BC')\ + .type('array')\ + .comment('(Optional) An array of numbers in the range 0.0 to 1.0 specifying the color of the\nwidget annotation\'s border. The number of array elements determines the color\nspace in which the color is defined:\n 0 No color; transparent\n 1 DeviceGray\n 3 DeviceRGB\n 4 DeviceCMYK')\ + .done().done()\ + .optional()\ + .field('BG')\ + .name('BG')\ + .type('array')\ + .comment('(Optional) An array of numbers in the range 0.0 to 1.0 specifying the color of the\nwidget annotation\'s background. The number of array elements determines the\ncolor space, as described above for BC.')\ + .done().done()\ + .optional()\ + .field('CA')\ + .name('CA')\ + .type('text string')\ + .comment('(Optional; button fields only) The widget annotation\'s normal caption, displayed\nwhen it is not interacting with the user.\nNote: Unlike the remaining entries listed below, which apply only to widget annota-\ntions associated with pushbutton fields (see "Pushbuttons" on page 539), the CA\nentry can be used with any type of button field, including checkboxes ("Checkboxes"\non page 539) and radio buttons ("Radio Buttons" on page 540).')\ + .done().done()\ + .optional()\ + .field('RC')\ + .name('RC')\ + .type('text string')\ + .comment('(Optional; pushbutton fields only) The widget annotation\'s rollover caption, dis-\nplayed when the user rolls the cursor into its active area without pressing the\nmouse button.')\ + .done().done()\ + .optional()\ + .field('AC')\ + .name('AC')\ + .type('text string')\ + .comment('(Optional; pushbutton fields only) The widget annotation\'s alternate (down)\ncaption, displayed when the mouse button is pressed within its active area.')\ + .done().done()\ + .optional()\ + .field('I')\ + .name('I')\ + .type('stream')\ + .comment('(Optional; pushbutton fields only; must be an indirect reference) A form XObject\ndefining the widget annotation\'s normal icon, displayed when it is not inter-\nacting with the user.')\ + .done().done()\ + .optional()\ + .field('RI')\ + .name('RI')\ + .type('stream')\ + .comment('(Optional; pushbutton fields only; must be an indirect reference) A form XObject\ndefining the widget annotation\'s rollover icon, displayed when the user rolls the\ncursor into its active area without pressing the mouse button.')\ + .done().done()\ + .optional()\ + .field('IX')\ + .name('IX')\ + .type('stream')\ + .comment('(Optional; pushbutton fields only; must be an indirect reference) A form XObject\ndefining the widget annotation\'s alternate (down) icon, displayed when the\nmouse button is pressed within its active area.')\ + .done().done()\ + .optional()\ + .field('IF')\ + .name('IF')\ + .type('dictionary')\ + .comment('(Optional; pushbutton fields only) An icon fit dictionary (see Table 8.73 on page\n566) specifying how to display the widget annotation\'s icon within its\nannotation rectangle. If present, the icon fit dictionary applies to all of the anno-\ntation\'s icons (normal, rollover, and alternate).')\ + .done().done()\ + .optional()\ + .field('TP')\ + .name('TP')\ + .type('integer')\ + .comment('(Optional; pushbutton fields only) A code indicating where to position the text of\nthe widget annotation\'s caption relative to its icon:\n 0 No icon; caption only\n 1 No caption; icon only\n 2 Caption below the icon\n 3 Caption above the icon\n 4 Caption to the right of the icon\n 5 Caption to the left of the icon\n 6 Caption overlaid directly on the icon\nDefault value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('CheckboxFieldDictionary', 'Dictionary', 'Additional entry specific to a checkbox field')\ + .optional()\ + .field('Opt')\ + .name('Opt')\ + .type('text string')\ + .comment('(Optional; inheritable; PDF 1.4) A text string to be used in place of the V entry for the\nvalue of the field.')\ + .done().done()\ + .done() + + pdfspec.addClass('RadioButtonFieldDictionary', 'Dictionary', 'Additional entry specific to a radio button field')\ + .optional()\ + .field('Opt')\ + .name('Opt')\ + .type('array')\ + .comment('(Optional; inheritable; PDF 1.4) An array of text strings to be used in\nplace of the V entries for the values of the widget annotations repre-\nsenting the individual radio buttons. Each element in the array repre-\nsents the export value of the corresponding widget annotation in the\nKids array of the radio button field.')\ + .done().done()\ + .done() + + pdfspec.addClass('TextFieldDictionary', 'Dictionary', 'Additional entry specific to a text field')\ + .optional()\ + .field('MaxLen')\ + .name('MaxLen')\ + .type('integer')\ + .comment('(Optional; inheritable) The maximum length of the field\'s text, in characters.')\ + .done().done()\ + .done() + + pdfspec.addClass('ChoiceFieldDictionary', 'Dictionary', 'Additional entries specific to a choice field')\ + .required('NULL')\ + .field('Opt')\ + .name('Opt')\ + .type('array')\ + .comment('(Required; inheritable) An array of options to be presented to the user. Each element of\nthe array is either a text string representing one of the available options or a two-element\narray consisting of a text string together with a default appearance string for construct-\ning the item\'s appearance dynamically at viewing time (see "Variable Text" on page 533;\nsee also implementation note 85 in Appendix H).')\ + .done().done()\ + .optional()\ + .field('TI')\ + .name('TI')\ + .type('integer')\ + .comment('(Optional; inheritable) For scrollable list boxes, the top index (the index in the Opt array\nof the first option visible in the list).')\ + .done().done()\ + .optional()\ + .field('I')\ + .name('I')\ + .type('array')\ + .comment('(Sometimes required, otherwise optional; inheritable; PDF 1.4) For choice fields that allow\nmultiple selection (MultiSelect flag set), an array of integers, sorted in ascending order,\nrepresenting the zero-based indices in the Opt array of the currently selected option\nitems. This entry is required when two or more elements in the Opt array have different\nnames but the same export value, or when the value of the choice field is an array; in\nother cases, it is permitted but not required. If the items identified by this entry differ\nfrom those in the V entry of the field dictionary (see below), the V entry takes precedence.')\ + .done().done()\ + .done() + + pdfspec.addClass('SignatureDictionary', 'Dictionary', 'Entries in a signature dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present,\nmust be Sig for a signature dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('Filter')\ + .name('Filter')\ + .type('name')\ + .comment('(Required; inheritable) The name of the signature handler to be used for\nauthenticating the field\'s contents, such as Adobe.PPKLite, Entrust.PPKEF,\nCICI.SignIt, or VeriSign.PPKVS.')\ + .done().done()\ + .optional()\ + .field('SubFilter')\ + .name('SubFilter')\ + .type('name')\ + .comment('(Optional) The name of a specific submethod of the specified handler.')\ + .done().done()\ + .required('NULL')\ + .field('ByteRange')\ + .name('ByteRange')\ + .type('array')\ + .comment('(Required) An array of pairs of integers (starting byte offset, length in bytes)\ndescribing the exact byte range for the digest calculation. Multiple discontig-\nuous byte ranges may be used to describe a digest that does not include the\nsignature token itself.')\ + .done().done()\ + .required('NULL')\ + .field('Contents')\ + .name('Contents')\ + .type('string')\ + .comment('(Required) The encrypted signature token.')\ + .done().done()\ + .optional()\ + .field('Name')\ + .name('Name')\ + .type('text string')\ + .comment('(Optional) The name of the person or authority signing the document.')\ + .done().done()\ + .optional()\ + .field('M')\ + .name('M')\ + .type('date')\ + .comment('(Optional) The time of signing. Depending on the signature handler, this\nmay be a normal unverified computer time or a time generated in a verifiable\nway from a secure time server.')\ + .done().done()\ + .optional()\ + .field('Location')\ + .name('Location')\ + .type('text string')\ + .comment('(Optional) The CPU host name or physical location of the signing.')\ + .done().done()\ + .optional()\ + .field('Reason')\ + .name('Reason')\ + .type('text string')\ + .comment('(Optional) The reason for the signing, such as (I agree...).')\ + .done().done()\ + .done() + + pdfspec.addClass('SubmitFormActionDictionary', 'Dictionary', 'Additional entries specific to a submit-form action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must\nbe SubmitForm for a submit-form action.')\ + .done().done()\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required) A URL file specification (see Section 3.10.4, "URL Speci-\nfications") giving the uniform resource locator (URL) of the script\nat the Web server that will process the submission.')\ + .done().done()\ + .optional()\ + .field('Fields')\ + .name('Fields')\ + .type('array')\ + .comment('(Optional) An array identifying which fields to include in the sub-\nmission or which to exclude, depending on the setting of the\nInclude/Exclude flag in the Flags entry (see Table 8.62). Each ele-\nment of the array is either an indirect reference to a field dictionary\nor (PDF 1.3) a string representing the fully qualified name of a field.\nElements of both kinds may be mixed in the same array.\nIf this entry is omitted, the Include/Exclude flag is ignored; all fields\nin the document\'s interactive form are submitted except those\nwhose NoExport flag (see Table 8.50 on page 532) is set. (Fields\nwith no values may also be excluded, depending on the setting of\nthe IncludeNoValueFields flag; see Table 8.62.) See the text follow-\ning Table 8.62 for further discussion.')\ + .done().done()\ + .optional()\ + .field('Flags')\ + .name('Flags')\ + .type('integer')\ + .comment('(Optional; inheritable) A set of flags specifying various characteris-\ntics of the action (see Table 8.62). Default value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('ResetFormActionDictionary', 'Dictionary', 'Additional entries specific to a reset-form action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be\nResetForm for a reset-form action.')\ + .done().done()\ + .optional()\ + .field('Fields')\ + .name('Fields')\ + .type('array')\ + .comment('(Optional) An array identifying which fields to reset or which to exclude\nfrom resetting, depending on the setting of the Include/Exclude flag in\nthe Flags entry (see Table 8.64). Each element of the array is either an in-\ndirect reference to a field dictionary or (PDF 1.3) a string representing\nthe fully qualified name of a field. Elements of both kinds may be mixed\nin the same array.\nIf this entry is omitted, the Include/Exclude flag is ignored; all fields in\nthe document\'s interactive form are reset.')\ + .done().done()\ + .optional()\ + .field('Flags')\ + .name('Flags')\ + .type('integer')\ + .comment('(Optional; inheritable) A set of flags specifying various characteristics of\nthe action (see Table 8.64). Default value: 0.')\ + .done().done()\ + .done() + + pdfspec.addClass('ImportDataActionDictionary', 'Dictionary', 'Additional entries specific to an import-data action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be ImportData\nfor an import-data action.')\ + .done().done()\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required) The FDF file from which to import the data. (See implementation\nnotes 87 and 88 in Appendix H.)')\ + .done().done()\ + .done() + + pdfspec.addClass('JavascriptActionDictionary', 'Dictionary', 'Additional entries specific to a JavaScript action')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of action that this dictionary describes; must be JavaScript\nfor a JavaScript action.')\ + .done().done()\ + .required('NULL')\ + .field('JS')\ + .name('JS')\ + .type('string or stream')\ + .comment('(Required) A string or stream containing the JavaScript script to be executed.\nNote: PDFDocEncoding or Unicode encoding (the latter identified by the Unicode\nprefix U+ FEFF) is used to encode the contents of the string or stream. (See imple-\nmentation note 89 in Appendix H.)')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFTrailerDictionary', 'Dictionary', 'Entry in the FDF trailer dictionary')\ + .optional()\ + .field('Root')\ + .name('Root')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The catalog object for this FDF file (see\n"FDF Catalog," below).')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFCatalogDictionary', 'Dictionary', 'Entries in the FDF catalog dictionary')\ + .optional()\ + .field('Version')\ + .name('Version')\ + .type('name')\ + .comment('(Optional; PDF 1.4) The version of the PDF specification to which\nthis FDF file conforms (for example, 1.4), if later than the version\nspecified in the file\'s header (see "FDF Header" on page 559). If the\nheader specifies a later version, or if this entry is absent, the docu-\nment conforms to the version specified in the header.\nNote: The value of this entry is a name object, not a number, and so\nmust be preceded by a slash character (/) when written in the FDF file\n(for example, /1.4).')\ + .done().done()\ + .required('NULL')\ + .field('FDF')\ + .name('FDF')\ + .type('dictionary')\ + .comment('(Required) The FDF dictionary for this file (see Table 8.69).')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFDictionary', 'Dictionary', 'Entries in the FDF dictionary')\ + .optional()\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Optional) The source file or target file: the PDF document file that\nthis FDF file was exported from or is intended to be imported into.')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('array')\ + .comment('(Optional) An array of two strings constituting a file identifier (see\nSection 9.3, "File Identifiers") for the source or target file designated\nby F, taken from the ID entry in the file\'s trailer dictionary (see Sec-\ntion 3.4.4, "File Trailer").')\ + .done().done()\ + .optional()\ + .field('Fields')\ + .name('Fields')\ + .type('array')\ + .comment('(Optional) An array of FDF field dictionaries (see "FDF Fields" on\npage 564) describing the root fields (those with no ancestors in\nthe field hierarchy) to be exported or imported. This entry and\nthe Pages entry may not both be present.')\ + .done().done()\ + .optional()\ + .field('Status')\ + .name('Status')\ + .type('string')\ + .comment('(Optional) A status string to be displayed indicating the result of an\naction, typically a submit-form action (see "Submit-Form Actions"\non page 550). The string is encoded with PDFDocEncoding. (See\nimplementation note 91 in Appendix H.) This entry and the Pages\nentry may not both be present.')\ + .done().done()\ + .optional()\ + .field('Pages')\ + .name('Pages')\ + .type('array')\ + .comment('(Optional; PDF 1.3) An array of FDF page dictionaries (see "FDF\nPages" on page 566) describing new pages to be added to a PDF\ntarget document. The Fields and Status entries may not be present\ntogether with this entry.')\ + .done().done()\ + .optional()\ + .field('Encoding')\ + .name('Encoding')\ + .type('name')\ + .comment('(Optional; PDF 1.3) The encoding to be used for any FDF field\nvalue or option (V or Opt in the field dictionary; see Table 8.72 on\npage 564) that is a string and does not begin with the Unicode pre-\nfix U+FEFF. (See implementation note 92 in Appendix H.) Default\nvalue: PDFDocEncoding.')\ + .done().done()\ + .optional()\ + .field('Annots')\ + .name('Annots')\ + .type('array')\ + .comment('(Optional; PDF 1.3) An array of FDF annotation dictionaries (see\n"FDF Annotation Dictionaries" on page 568). The array can in-\nclude annotations of any of the standard types listed in Table 8.14\non page 499 except Link, Movie, Widget, PrinterMark, and TrapNet.')\ + .done().done()\ + .optional()\ + .field('Differences')\ + .name('Differences')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A stream containing all the bytes in all incre-\nmental updates made to the underlying PDF document since it was\nopened (see Section 3.4.5, "Incremental Updates"). If a submit-\nform action submitting the document to a remote server in FDF\nformat has its IncludeAppendSaves flag set (see "Submit-Form\nActions" on page 550), the contents of this stream are included in\nthe submission. This allows any digital signatures (see "Signature\nFields" on page 547) to be transmitted to the server. An incremental\nupdate is automatically performed just before the submission takes\nplace, in order to capture all changes made to the document. Note\nthat the submission always includes the full set of incremental up-\ndates back to the time the document was first opened, even if some\nof them may already have been included in intervening submissions.\nNote: Although a Fields or Annots entry (or both) may be present\nalong with Differences, there is no guarantee that their contents will be\nconsistent with it. In particular, if Differences contains a digital signa-\nture, only the values of the form fields given in the Differences stream\ncan be considered trustworthy under that signature.')\ + .done().done()\ + .optional()\ + .field('Target')\ + .name('Target')\ + .type('string')\ + .comment('(Optional; PDF 1.4) The name of a browser frame in which the un-\nderlying PDF document is to be opened. This mimics the behavior\nof the target attribute in HTML tags.')\ + .done().done()\ + .optional()\ + .field('EmbeddedFDFs')\ + .name('EmbeddedFDFs')\ + .type('array')\ + .comment('(Optional; PDF 1.4) An array of file specifications (see Section 3.10,\n"File Specifications") representing other FDF files embedded with-\nin this one (Section 3.10.3, "Embedded File Streams").')\ + .done().done()\ + .optional()\ + .field('JavaScript')\ + .name('JavaScript')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A JavaScript dictionary (see Table 8.71) defin-\ning document-level JavaScript scripts.')\ + .done().done()\ + .done() + + pdfspec.addClass('EncryptedEmbeddedFileStreamDictionary', 'Dictionary', 'Additional entry in an embedded file stream dictionary for an encrypted FDF file')\ + .optional()\ + .field('EncryptionRevision')\ + .name('EncryptionRevision')\ + .type('integer')\ + .comment('(Required if the FDF file is encrypted; PDF 1.4) The revision number of the\nFDF encryption algorithm used to encrypt the file. The only valid value\ndefined at the time of publication is 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('JavascriptDictionary', 'Dictionary', 'Entries in the JavaScript dictionary')\ + .optional()\ + .field('Before')\ + .name('Before')\ + .type('string or stream')\ + .comment('(Optional) A string or stream containing a JavaScript script to be executed\njust before the FDF file is imported.')\ + .done().done()\ + .optional()\ + .field('After')\ + .name('After')\ + .type('string or stream')\ + .comment('(Optional) A string or stream containing a JavaScript script to be executed\njust after the FDF file is imported.')\ + .done().done()\ + .optional()\ + .field('Doc')\ + .name('Doc')\ + .type('array')\ + .comment('(Optional) An array defining additional JavaScript scripts to be added to\nthose defined in the JavaScript entry of the document\'s name dictionary (see\nSection 3.6.3, "Name Dictionary"). The array contains an even number of\nelements, organized in pairs. The first element of each pair is a name and the\nsecond is a string or stream defining the script corresponding to that name.\nEach of the defined scripts will be added to those already defined in the name\ndictionary and then executed before the script defined in the Before entry is\nexecuted. As described in "JavaScript Actions" on page 556, these scripts are\nused to define JavaScript functions for use by other scripts in the document.')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFFieldDictionary', 'Dictionary', 'Entries in an FDF field dictionary')\ + .optional()\ + .field('Kids')\ + .name('Kids')\ + .type('array')\ + .comment('(Optional) An array containing the immediate children of this field.\nNote: Unlike the children of fields in a PDF file, which must be specified as indirect\nobject references, those of an FDF field may be either direct or indirect objects.')\ + .done().done()\ + .required('NULL')\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Required) The partial field name (see "Field Names" on page 532).')\ + .done().done()\ + .optional()\ + .field('V')\ + .name('V')\ + .type('(various)')\ + .comment('(Optional) The field\'s value, whose format varies depending on the field type; see\nthe descriptions of individual field types in Section 8.6.3 for further information.')\ + .done().done()\ + .optional()\ + .field('Ff')\ + .name('Ff')\ + .type('integer')\ + .comment('(Optional) A set of flags specifying various characteristics of the field (see Tables\n8.50 on page 532, 8.53 on page 538, 8.56 on page 543, and 8.58 on page 546). When\nimported into an interactive form, the value of this entry replaces that of the Ff\nentry in the form\'s corresponding field dictionary. If this field is present, the SetFf\nand ClrFf entries, if any, are ignored.')\ + .done().done()\ + .optional()\ + .field('SetFf')\ + .name('SetFf')\ + .type('integer')\ + .comment('(Optional) A set of flags to be set (turned on) in the Ff entry of the form\'s cor-\nresponding field dictionary. Bits equal to 1 in SetFf cause the corresponding bits in\nFf to be set to 1. This entry is ignored if an Ff entry is present in the FDF field\ndictionary.')\ + .done().done()\ + .optional()\ + .field('ClrFf')\ + .name('ClrFf')\ + .type('integer')\ + .comment('(Optional) A set of flags to be cleared (turned off) in the Ff entry of the form\'s cor-\nresponding field dictionary. Bits equal to 1 in ClrFf cause the corresponding bits in\nFf to be set to 0. If a SetFf entry is also present in the FDF field dictionary, it is\napplied before this entry. This entry is ignored if an Ff entry is present in the FDF\nfield dictionary.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('integer')\ + .comment('(Optional) A set of flags specifying various characteristics of the field\'s widget anno-\ntation (see Section 8.4.2, "Annotation Flags"). When imported into an interactive\nform, the value of this entry replaces that of the F entry in the form\'s corresponding\nannotation dictionary. If this field is present, the SetF and ClrF entries, if any, are\nignored.')\ + .done().done()\ + .optional()\ + .field('SetF')\ + .name('SetF')\ + .type('integer')\ + .comment('(Optional) A set of flags to be set (turned on) in the F entry of the form\'s corre-\nsponding widget annotation dictionary. Bits equal to 1 in SetF cause the corre-\nsponding bits in F to be set to 1. This entry is ignored if an F entry is present in the\nFDF field dictionary.')\ + .done().done()\ + .optional()\ + .field('ClrF')\ + .name('ClrF')\ + .type('integer')\ + .comment('(Optional) A set of flags to be cleared (turned off) in the F entry of the form\'s corre-\nsponding widget annotation dictionary. Bits equal to 1 in ClrF cause the corre-\nsponding bits in F to be set to 0. If a SetF entry is also present in the FDF field\ndictionary, it is applied before this entry. This entry is ignored if an F entry is\npresent in the FDF field dictionary.')\ + .done().done()\ + .optional()\ + .field('AP')\ + .name('AP')\ + .type('dictionary')\ + .comment('(Optional) An appearance dictionary specifying the appearance of a pushbutton\nfield (see "Pushbuttons" on page 539). The appearance dictionary\'s contents are as\nshown in Table 8.13 on page 497, except that the values of the N, R, and D entries\nmust all be streams.')\ + .done().done()\ + .optional()\ + .field('APRef')\ + .name('APRef')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3) A dictionary holding references to external PDF files contain-\ning the pages to use for the appearances of a pushbutton field. This dictionary is\nsimilar to an appearance dictionary (see Table 8.13 on page 497), except that the\nvalues of the N, R, and D entries must all be named page reference dictionaries\n(Table 8.76 on page 568). This entry is ignored if an AP entry is present.')\ + .done().done()\ + .optional()\ + .field('IF')\ + .name('IF')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.3; button fields only) An icon fit dictionary (see Table 8.73) speci-\nfying how to display a button field\'s icon within the annotation rectangle of its wid-\nget annotation.')\ + .done().done()\ + .optional()\ + .field('Opt')\ + .name('Opt')\ + .type('array')\ + .comment('(Required; choice fields only) An array of options to be presented to the user. Each\nelement of the array can take either of two forms:\n* A text string representing one of the available options\n* A two-element array consisting of a text string representing one of the available\n options and a default appearance string for constructing the item\'s appearance\n dynamically at viewing time (see "Variable Text" on page 533)')\ + .done().done()\ + .optional()\ + .field('A')\ + .name('A')\ + .type('dictionary')\ + .comment('(Optional) An action to be performed when this field\'s widget annotation is activat-\ned (see Section 8.5, "Actions").')\ + .done().done()\ + .optional()\ + .field('AA')\ + .name('AA')\ + .type('dictionary')\ + .comment('(Optional) An additional-actions dictionary defining the field\'s behavior in re-\nsponse to various trigger events (see Section 8.5.2, "Trigger Events").')\ + .done().done()\ + .done() + + pdfspec.addClass('IconFitDictionary', 'Dictionary', 'Entries in an icon fit dictionary')\ + .required('NULL')\ + .field('SW')\ + .name('SW')\ + .type('name')\ + .comment('(Required) The circumstances under which the icon should be scaled inside the annota-\ntion rectangle:\n A Always scale.\n B Scale only when the icon is bigger than the annotation rectangle.\n S Scale only when the icon is smaller than the annotation rectangle.\n N Never scale.\nDefault value: A.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The type of scaling to use:\n A Anamorphic scaling: scale the icon to fill the annotation rectangle exactly, with-\n out regard to its original aspect ratio (ratio of width to height).\n P Proportional scaling: scale the icon to fit the width or height of the annotation\n rectangle while maintaining the icon\'s original aspect ratio. If the required hori-\n zontal and vertical scaling factors are different, use the smaller of the two, cen-\n tering the icon within the annotation rectangle in the other dimension.\nDefault value: P.')\ + .done().done()\ + .required('NULL')\ + .field('A')\ + .name('A')\ + .type('array')\ + .comment('(Required) An array of two numbers between 0.0 and 1.0 indicating the fraction of left-\nover space to allocate at the left and bottom of the icon. A value of [0.0 0.0] positions the\nicon at the bottom-left corner of the annotation rectangle; a value of [0.5 0.5] centers it\nwithin the rectangle. This entry is used only if the icon is scaled proportionally. Default\nvalue: [0.5 0.5].')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFPageDictionary', 'Dictionary', 'Entries in an FDF page dictionary')\ + .required('NULL')\ + .field('Templates')\ + .name('Templates')\ + .type('array')\ + .comment('(Required) An array of FDF template dictionaries (see Table 8.75) describing the\nnamed pages that serve as templates on the page.')\ + .done().done()\ + .optional()\ + .field('Info')\ + .name('Info')\ + .type('dictionary')\ + .comment('(Optional) An FDF page information dictionary containing additional informa-\ntion about the page. At the time of publication, no entries have been defined for\nthis dictionary.')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFTemplateDictionary', 'Dictionary', 'Entries in an FDF template dictionary')\ + .required('NULL')\ + .field('TRef')\ + .name('TRef')\ + .type('dictionary')\ + .comment('(Required) A named page reference dictionary (see Table 8.76) specifying the\nlocation of the template.')\ + .done().done()\ + .optional()\ + .field('Fields')\ + .name('Fields')\ + .type('array')\ + .comment('(Optional) An array of references to FDF field dictionaries (see Table 8.72 on\npage 564) describing the root fields to be imported (those with no ancestors in\nthe field hierarchy).')\ + .done().done()\ + .optional()\ + .field('Rename')\ + .name('Rename')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether fields imported from the template may be\nrenamed in the event of name conflicts with existing fields; see below for further\ndiscussion. Default value: true.')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFNamedPageReferenceDictionary', 'Dictionary', 'Entries in an FDF named page reference dictionary')\ + .required('NULL')\ + .field('Name')\ + .name('Name')\ + .type('string')\ + .comment('(Required) The name of the referenced page.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Optional) The file containing the named page. If this key is absent, it is\nassumed that the page resides in the associated PDF file.')\ + .done().done()\ + .done() + + pdfspec.addClass('FDFFileAnnotationDictionary', 'Dictionary', 'Additional entry for annotation dictionaries in an FDF file')\ + .optional()\ + .field('Page')\ + .name('Page')\ + .type('integer')\ + .comment('(Required for annotations in FDF files) The ordinal page number on which\nthis annotation should appear, where page 0 is the first page.')\ + .done().done()\ + .done() + + pdfspec.addClass('SoundObjectDictionary', 'Dictionary', 'Additional entries specific to a sound object')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nSound for a sound object.')\ + .done().done()\ + .required('NULL')\ + .field('R')\ + .name('R')\ + .type('number')\ + .comment('(Required) The sampling rate, in samples per second.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('integer')\ + .comment('(Optional) The number of sound channels. Default value: 1. (See implementation\nnote 101 in Appendix H.)')\ + .done().done()\ + .optional()\ + .field('B')\ + .name('B')\ + .type('integer')\ + .comment('(Optional) The number of bits per sample value per channel. Default value: 8.')\ + .done().done()\ + .optional()\ + .field('E')\ + .name('E')\ + .type('name')\ + .comment('(Optional) The encoding format for the sample data:\n Raw Unspecified or unsigned values in the range 0 to 2B - 1\n Signed Twos-complement values\n muLaw mu-law\'encoded samples\n ALaw A-law\'encoded samples\nDefault value: Raw.')\ + .done().done()\ + .optional()\ + .field('CO')\ + .name('CO')\ + .type('name')\ + .comment('(Optional) The sound compression format used on the sample data. (Note that this is\nseparate from any stream compression specified by the sound object\'s Filter entry; see\nTable 3.4 on page 38 and Section 3.3, "Filters.") If this entry is absent, then no sound\ncompression has been used; the data contains sampled waveforms to be played at R\nsamples per second per channel.')\ + .done().done()\ + .optional()\ + .field('CP')\ + .name('CP')\ + .type('(various)')\ + .comment('(Optional) Optional parameters specific to the sound compression format used.\nNote: At the time of publication, no standard values have been defined for the CO and CP\nentries.')\ + .done().done()\ + .done() + + pdfspec.addClass('MovieDictionary', 'Dictionary', 'Entries in a movie dictionary')\ + .required('NULL')\ + .field('F')\ + .name('F')\ + .type('file specification')\ + .comment('(Required) A file specification identifying a self-describing movie file.\nNote: The format of a "self-describing movie file" is left unspecified, and there is\nno guarantee of portability.')\ + .done().done()\ + .optional()\ + .field('Aspect')\ + .name('Aspect')\ + .type('array')\ + .comment('(Optional) The width and height of the movie\'s bounding box, in pixels,\nspecified as [width height]. This entry should be omitted for a movie consist-\ning entirely of sound with no visible images.')\ + .done().done()\ + .optional()\ + .field('Rotate')\ + .name('Rotate')\ + .type('integer')\ + .comment('(Optional) The number of degrees by which the movie is rotated clockwise\nrelative to the page. The value must be a multiple of 90. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('Poster')\ + .name('Poster')\ + .type('boolean or stream')\ + .comment('(Optional) A flag or stream specifying whether and how to display a poster\nimage representing the movie. If this value is a stream, it contains an image\nXObject (see Section 4.8, "Images") to be displayed as the poster; if it is the\nboolean value true, the poster image should be retrieved from the movie file\nitself; if it is false, no poster should be displayed. Default value: false.')\ + .done().done()\ + .done() + + pdfspec.addClass('MovieActivationDictionary', 'Dictionary', 'Entries in a movie activation dictionary')\ + .optional()\ + .field('Start')\ + .name('Start')\ + .type('(various)')\ + .comment('(Optional) The starting time of the movie segment to be played. Movie time\nvalues are expressed in units of time based on a time scale, which defines the\nnumber of units per second; the default time scale is defined in the movie\ndata itself. The starting time is nominally a 64-bit integer, specified as follows:\n* If it is representable as an integer (subject to the implementation limit for\n integers, as described in Appendix C), it should be specified as such.\n* If it is not representable as an integer, it should be specified as an 8-byte\n string representing a 64-bit twos-complement integer, most significant\n byte first.\n* If it is expressed in a time scale different from that of the movie itself, it is\n represented as an array of two values: an integer or string denoting the\n starting time, as above, followed by an integer specifying the time scale in\n units per second.\nIf this entry is omitted, the movie is played from the beginning.')\ + .done().done()\ + .optional()\ + .field('Duration')\ + .name('Duration')\ + .type('(various)')\ + .comment('(Optional) The duration of the movie segment to be played, specified in the\nsame form as Start. Negative values specify that the movie is to be played\nbackward. If this entry is omitted, the movie is played to the end.')\ + .done().done()\ + .optional()\ + .field('Rate')\ + .name('Rate')\ + .type('number')\ + .comment('(Optional) The initial speed at which to play the movie. If the value of this\nentry is negative, the movie is played backward with respect to Start and\nDuration. Default value: 1.0.')\ + .done().done()\ + .optional()\ + .field('Volume')\ + .name('Volume')\ + .type('number')\ + .comment('(Optional) The initial sound volume at which to play the movie, in the range\n-1.0 to 1.0. Higher values denote greater volume; negative values mute the\nsound. Default value: 1.0.')\ + .done().done()\ + .optional()\ + .field('ShowControls')\ + .name('ShowControls')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to display a movie controller bar while\nplaying the movie. Default value: false.')\ + .done().done()\ + .optional()\ + .field('Mode')\ + .name('Mode')\ + .type('name')\ + .comment('(Optional) The play mode for playing the movie:\n Once Play once and stop.\n Open Play and leave the movie controller bar open.\n Repeat Play repeatedly from beginning to end until stopped.\n Palindrome Play continuously forward and backward until stopped.\nDefault value: Once.')\ + .done().done()\ + .optional()\ + .field('Synchronous')\ + .name('Synchronous')\ + .type('boolean')\ + .comment('(Optional) A flag specifying whether to play the movie synchronously or\nasynchronously. If this value is true, the movie player will retain control until\nthe movie is completed or dismissed by the user; if false, it will return control\nto the viewer application immediately after starting the movie. Default value:\nfalse.')\ + .done().done()\ + .optional()\ + .field('FWScale')\ + .name('FWScale')\ + .type('array')\ + .comment('(Optional) The magnification (zoom) factor at which to play the movie. The\npresence of this entry implies that the movie is to be played in a floating win-\ndow; if the entry is absent, it will be played in the annotation rectangle.\nThe value of the entry is an array of two integers, [numerator denominator],\ndenoting a rational magnification factor for the movie. The final window\nsize, in pixels, is\n (numerator / denominator) x Aspect\nwhere the value of Aspect is taken from the movie dictionary (see Table 8.79).')\ + .done().done()\ + .optional()\ + .field('FWPosition')\ + .name('FWPosition')\ + .type('array')\ + .comment('(Optional) For floating play windows, the relative position of the window on\nthe screen. The value is an array of two numbers\n [horiz vert]\neach in the range 0.0 to 1.0, denoting the relative horizontal and vertical posi-\ntion of the movie window with respect to the screen. For example, the value\n[0.5 0.5] centers the window on the screen. Default value: [0.5 0.5].\n CHAPTER 9')\ + .done().done()\ + .done() + + pdfspec.addClass('DocumentInformationDictionary', 'Dictionary', 'Entries in the document information dictionary')\ + .optional()\ + .field('Title')\ + .name('Title')\ + .type('text string')\ + .comment('(Optional; PDF 1.1) The document\'s title.')\ + .done().done()\ + .optional()\ + .field('Author')\ + .name('Author')\ + .type('text string')\ + .comment('(Optional) The name of the person who created the document.')\ + .done().done()\ + .optional()\ + .field('Subject')\ + .name('Subject')\ + .type('text string')\ + .comment('(Optional; PDF 1.1) The subject of the document.')\ + .done().done()\ + .optional()\ + .field('Keywords')\ + .name('Keywords')\ + .type('text string')\ + .comment('(Optional; PDF 1.1) Keywords associated with the document.')\ + .done().done()\ + .optional()\ + .field('Creator')\ + .name('Creator')\ + .type('text string')\ + .comment('(Optional) If the document was converted to PDF from another format, the\nname of the application (for example, Adobe FrameMaker(R)) that created the\noriginal document from which it was converted.')\ + .done().done()\ + .optional()\ + .field('Producer')\ + .name('Producer')\ + .type('text string')\ + .comment('(Optional) If the document was converted to PDF from another format, the\nname of the application (for example, Acrobat Distiller) that converted it to\nPDF.')\ + .done().done()\ + .optional()\ + .field('CreationDate')\ + .name('CreationDate')\ + .type('date')\ + .comment('(Optional) The date and time the document was created, in human-readable\nform (see Section 3.8.2, "Dates").')\ + .done().done()\ + .optional()\ + .field('ModDate')\ + .name('ModDate')\ + .type('date')\ + .comment('(Optional; PDF 1.1) The date and time the document was most recently\nmodified, in human-readable form (see Section 3.8.2, "Dates").')\ + .done().done()\ + .optional()\ + .field('Trapped')\ + .name('Trapped')\ + .type('name')\ + .comment('(Optional; PDF 1.3) A name object indicating whether the document has\nbeen modified to include trapping information (see Section 9.10.5, "Trap-\nping Support"):\n True The document has been fully trapped; no further trapping is\n needed. (Note that this is the name True, not the boolean\n value true.)\n False The document has not yet been trapped; any desired trap-\n ping must still be done. (Note that this is the name False, not\n the boolean value false.)\n Unknown Either it is unknown whether the document has been\n trapped or it has been partly but not yet fully trapped; some\n additional trapping may still be needed.\nDefault value: Unknown.\nThe value of this entry may be set automatically by the software creating the\ndocument\'s trapping information or may be known only to a human opera-\ntor and entered manually.')\ + .done().done()\ + .done() + + pdfspec.addClass('MetadataStreamDictionary', 'Dictionary', 'Additional entries in a metadata stream dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be Metadata\nfor a metadata stream.')\ + .done().done()\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of metadata stream that this dictionary describes; must be\nXML.')\ + .done().done()\ + .done() + + pdfspec.addClass('ComponentsWithMetadataDictionary', 'Dictionary', 'Additional entry for components having metadata')\ + .optional()\ + .field('Metadata')\ + .name('Metadata')\ + .type('stream')\ + .comment('(Optional; PDF 1.4) A metadata stream containing metadata for the component.')\ + .done().done()\ + .done() + + pdfspec.addClass('PagePieceDictionary', 'Dictionary', 'Entries in a page-piece dictionary')\ + .optional()\ + .field('[any_application_name_or_well_known_data_type]')\ + .name('[any_application_name_or_well_known_data_type]')\ + .type('dictionary')\ + .comment('()An application data dictionary (see Table 9.7).')\ + .done().done()\ + .done() + + pdfspec.addClass('ApplicationDataDictionary', 'Dictionary', 'Entries in an application data dictionary')\ + .required('NULL')\ + .field('LastModified')\ + .name('LastModified')\ + .type('date')\ + .comment('(Required) The date and time when the contents of the page or form\nwere most recently modified by this application.')\ + .done().done()\ + .optional()\ + .field('Private')\ + .name('Private')\ + .type('(any)')\ + .comment('(Optional) Any private data appropriate to the application, typically\nin the form of a dictionary.')\ + .done().done()\ + .done() + + pdfspec.addClass('StructureTreeRootDictionary', 'Dictionary', 'Entries in the structure tree root')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must\nbe StructTreeRoot for a structure tree root.')\ + .done().done()\ + .optional()\ + .field('K')\ + .name('K')\ + .type('dictionary or array')\ + .comment('(Optional) The immediate child or children of the structure tree root in\nthe structure hierarchy. The value may be either a dictionary represent-\ning a single structure element or an array of such dictionaries.')\ + .done().done()\ + .optional()\ + .field('IDTree')\ + .name('IDTree')\ + .type('name tree')\ + .comment('(Required if any structure elements have element identifiers) A name tree\nthat maps element identifiers (see Table 9.10) to the structure elements\nthey denote.')\ + .done().done()\ + .optional()\ + .field('ParentTree')\ + .name('ParentTree')\ + .type('number tree')\ + .comment('(Required if any structure element contains PDF objects or marked-content\nsequences as content items) A number tree (see Section 3.8.5, "Number\nTrees") used in finding the structure elements to which content items\nbelong. Each integer key in the number tree corresponds to a single page\nof the document or to an individual object (such as an annotation or an\nXObject) that is a content item in its own right. The integer key is given\nas the value of the StructParent or StructParents entry in that object (see\n"Finding Structure Elements from Content Items" on page 600). The\nform of the associated value depends on the nature of the object:\n* For an object that is a content item in its own right, the value is an in-\n direct reference to the object\'s parent element (the structure element\n that contains it as a content item).\n* For a page object or content stream containing marked-content\n sequences that are content items, the value is an array of references to\n the parent elements of those marked-content sequences.\nSee "Finding Structure Elements from Content Items" on page 600 for\nfurther discussion.')\ + .done().done()\ + .optional()\ + .field('ParentTreeNextKey')\ + .name('ParentTreeNextKey')\ + .type('integer')\ + .comment('(Optional) An integer greater than any key in the parent tree, to be used\nas a key for the next entry added to the tree.')\ + .done().done()\ + .optional()\ + .field('RoleMap')\ + .name('RoleMap')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping the names of structure types used in\nthe document to their approximate equivalents in the set of standard\nstructure types (see Section 9.7.4, "Standard Structure Types").')\ + .done().done()\ + .optional()\ + .field('ClassMap')\ + .name('ClassMap')\ + .type('dictionary')\ + .comment('(Optional) A dictionary mapping name objects designating attribute\nclasses to the corresponding attribute objects or arrays of attribute ob-\njects (see "Attribute Classes" on page 605).')\ + .done().done()\ + .done() + + pdfspec.addClass('StructureElementDictionary', 'Dictionary', 'Entries in a structure element dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if\npresent, must be StructElem for a structure element.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The structure type, a name object identifying the nature of the\nstructure element and its role within the document, such as a chapter,\nparagraph, or footnote (see Section 9.6.2, "Structure Types"). Names of\nstructure types must conform to the guidelines described in Appendix E.')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('dictionary')\ + .comment('(Required; must be an indirect reference) The structure element that is the\nimmediate parent of this one in the structure hierarchy.')\ + .done().done()\ + .optional()\ + .field('ID')\ + .name('ID')\ + .type('string')\ + .comment('(Optional) The element identifier, a string designating this structure\nelement. The string must be unique among all elements in the docu-\nment\'s structure hierarchy. The IDTree entry in the structure tree root\n(see Table 9.9) defines the correspondence between element identifiers\nand the structure elements they denote.')\ + .done().done()\ + .optional()\ + .field('Pg')\ + .name('Pg')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) A page object representing a\npage on which some or all of the content items designated by the K entry\nare rendered.')\ + .done().done()\ + .optional()\ + .field('K')\ + .name('K')\ + .type('(various)')\ + .comment('(Optional) The contents of this structure element, which may consist of\none or more marked-content sequences, PDF objects, and other struc-\nture elements. The value of this entry may be any of the following:\n* An integer marked-content identifier denoting a marked-content\n sequence\n* A marked-content reference dictionary denoting a marked-content\n sequence\n* An object reference dictionary denoting a PDF object\n* A structure element dictionary denoting another structure element\n* An array, each of whose elements is one of the objects listed above\nSee Section 9.6.3, "Structure Content" for further discussion of each of\nthese forms of representation.')\ + .done().done()\ + .optional()\ + .field('A')\ + .name('A')\ + .type('(various)')\ + .comment('(Optional) The attribute object or objects, if any, associated with this\nstructure element. Each attribute object is either a dictionary or a\nstream; the value of this entry may be either a single attribute object or\nan array of such objects together with their revision numbers (see\nSection 9.6.4, "Structure Attributes," and "Attribute Revision Numbers"\non page 606).')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('name or array')\ + .comment('(Optional) The attribute class or classes, if any, to which this structure\nelement belongs. The value of this entry may be either a single class\nname or an array of class names together with their revision numbers\n(see "Attribute Classes" on page 605 and "Attribute Revision Numbers"\non page 606).\nNote: If both the A and C entries are present and a given attribute is speci-\nfied by both, the one specified by the A entry takes precedence.')\ + .done().done()\ + .optional()\ + .field('R')\ + .name('R')\ + .type('integer')\ + .comment('(Optional) The current revision number of this structure element (see\n"Attribute Revision Numbers" on page 606). The value must be a non-\nnegative integer. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Optional) The title of the structure element, a text string representing it\nin human-readable form. The title should characterize the specific struc-\nture element, such as Chapter 1, rather than merely a generic element\ntype, such as Chapter.')\ + .done().done()\ + .optional()\ + .field('Lang')\ + .name('Lang')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) A language identifier specifying the natural language\nfor all text in the structure element except where overridden by language\nspecifications for nested structure elements or marked content (see Sec-\ntion 9.8.1, "Natural Language Specification"). If this entry is absent, the\nlanguage (if any) specified in the document catalog applies.')\ + .done().done()\ + .optional()\ + .field('Alt')\ + .name('Alt')\ + .type('text string')\ + .comment('(Optional) An alternate description of the structure element and its\nchildren in human-readable form, useful when extracting the docu-\nment\'s contents in support of accessibility to disabled users or for other\npurposes (see Section 9.8.2, "Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('ActualText')\ + .name('ActualText')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) Text that is an exact replacement for the structure\nelement and its children. This replacement text (which should apply to\nas small a piece of content as possible) is useful when extracting the doc-\nument\'s contents in support of accessibility to disabled users or for other\npurposes (see Section 9.8.3, "Replacement Text").')\ + .done().done()\ + .done() + + pdfspec.addClass('MarkedContentReferenceDictionary', 'Dictionary', 'Entries in a marked-content reference dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be MCR\nfor a marked-content reference.')\ + .done().done()\ + .optional()\ + .field('Pg')\ + .name('Pg')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) The page object representing the page on\nwhich the graphics objects in the marked-content sequence are rendered. This\nentry overrides any Pg entry in the structure element containing the marked-\ncontent reference; it is required if the structure element has no such entry.')\ + .done().done()\ + .optional()\ + .field('Stm')\ + .name('Stm')\ + .type('stream')\ + .comment('(Optional; must be an indirect reference) The content stream containing the\nmarked-content sequence. This entry is needed only if the marked-content\nsequence resides in some other content stream associated with the page-for\nexample, in a form XObject (see Section 4.9, "Form XObjects") or an annota-\ntion\'s appearance stream (Section 8.4.4, "Appearance Streams"). Default value:\nthe content stream of the page identified by Pg.')\ + .done().done()\ + .optional()\ + .field('StmOwn')\ + .name('StmOwn')\ + .type('(any)')\ + .comment('(Optional; must be an indirect reference) The PDF object owning the stream\nidentified by Stm-for example, the annotation to which an appearance stream\nbelongs.')\ + .done().done()\ + .required('NULL')\ + .field('MCID')\ + .name('MCID')\ + .type('integer')\ + .comment('(Required) The marked-content identifier of the marked-content sequence with-\nin its content stream.')\ + .done().done()\ + .done() + + pdfspec.addClass('ObjectReferenceDictionary', 'Dictionary', 'Entries in an object reference dictionary')\ + .required('NULL')\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Required) The type of PDF object that this dictionary describes; must be OBJR for an\nobject reference.')\ + .done().done()\ + .optional()\ + .field('Pg')\ + .name('Pg')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) The page object representing the page on\nwhich the object is rendered. This entry overrides any Pg entry in the structure ele-\nment containing the object reference; it is required if the structure element has no such\nentry.')\ + .done().done()\ + .optional()\ + .field('Obj')\ + .name('Obj')\ + .type('(any)')\ + .comment('(Required; must be an indirect reference) The referenced object.')\ + .done().done()\ + .done() + + pdfspec.addClass('StructureElementAccessDictionary', 'Dictionary', 'Additional dictionary entries for structure element access')\ + .optional()\ + .field('StructParent')\ + .name('StructParent')\ + .type('integer')\ + .comment('(Required for all objects that are structural content items; PDF 1.3) The integer key\nof this object\'s entry in the structural parent tree.')\ + .done().done()\ + .optional()\ + .field('StructParents')\ + .name('StructParents')\ + .type('integer')\ + .comment('(Required for all content streams containing marked-content sequences that are\nstructural content items; PDF 1.3) The integer key of this object\'s entry in the\nstructural parent tree.\nNote: At most one of these two entries may be present in a given object. An object\ncan be either a content item in its entirety or a container for marked-content\nsequences that are content items, but not both.')\ + .done().done()\ + .done() + + pdfspec.addClass('AttributeObjectDictionary', 'Dictionary', 'Entry common to all attribute objects')\ + .required('NULL')\ + .field('O')\ + .name('O')\ + .type('name')\ + .comment('(Required) The name of the application or plug-in extension owning the attribute data.\nThe name must conform to the guidelines described in Appendix E.')\ + .done().done()\ + .done() + + pdfspec.addClass('MarkInformationDictionary', 'Dictionary', 'Entry in the mark information dictionary')\ + .optional()\ + .field('Marked')\ + .name('Marked')\ + .type('boolean')\ + .comment('(Optional) A flag indicating whether the document conforms to Tagged PDF\nconventions. Default value: false.')\ + .done().done()\ + .done() + + pdfspec.addClass('ArtifactsDictionary', 'Dictionary', 'Property list entries for artifacts')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of artifact that this property list describes; if present, must\nbe one of the names Pagination, Layout, or Page.')\ + .done().done()\ + .optional()\ + .field('BBox')\ + .name('BBox')\ + .type('rectangle')\ + .comment('(Optional) An array of four numbers in default user space units giving the coor-\ndinates of the left, bottom, right, and top edges, respectively, of the artifact\'s\nbounding box (the rectangle that completely encloses its visible extent).')\ + .done().done()\ + .optional()\ + .field('Attached')\ + .name('Attached')\ + .type('array')\ + .comment('(Optional; pagination artifacts only) An array of name objects containing one to\nfour of the names Top, Bottom, Left, and Right, specifying the edges of the page, if\nany, to which the artifact is logically attached. Page edges are defined by the\npage\'s crop box (see Section 9.10.1, "Page Boundaries"). The ordering of names\nwithin the array is immaterial. Including both Left and Right or both Top and\nBottom indicates a full-width or full-height artifact, respectively.')\ + .done().done()\ + .done() + + pdfspec.addClass('StandardStructureDictionary', 'Dictionary', 'Standard layout attributes common to all standard structure types')\ + .optional()\ + .field('Placement')\ + .name('Placement')\ + .type('name')\ + .comment('(Optional) The positioning of the element with respect to the enclosing refer-\nence area and other content:\n Block Stacked in the block-progression direction within an enclos-\n ing reference area or parent BLSE.\n Inline Packed in the inline-progression direction within an enclos-\n ing BLSE.\n Before Placed so that the before edge of the element\'s allocation rec-\n tangle (see "Content and Allocation Rectangles" on page\n 648) coincides with that of the nearest enclosing reference\n area. The element may float, if necessary, to achieve the speci-\n fied placement (see note below). The element is treated as a\n block occupying the full extent of the enclosing reference\n area in the inline direction; other content is stacked so as to\n begin at the after edge of the element\'s allocation rectangle.\n Start Placed so that the start edge of the element\'s allocation rec-\n tangle (see "Content and Allocation Rectangles" on page\n 648) coincides with that of the nearest enclosing reference\n area. The element may float, if necessary, to achieve the speci-\n fied placement (see note below). Other content that would\n intrude into the element\'s allocation rectangle is laid out as a\n runaround.\n End Placed so that the end edge of the element\'s allocation rec-\n tangle (see "Content and Allocation Rectangles" on page\n 648) coincides with that of the nearest enclosing reference\n area. The element may float, if necessary, to achieve the speci-\n fied placement (see note below). Other content that would\n intrude into the element\'s allocation rectangle is laid out as a\n runaround.\nWhen applied to an ILSE, any value except Inline causes the element to be\ntreated as a BLSE instead. Default value: Inline.\nNote: Elements with Placement values of Before, Start, or End are removed from\nthe normal stacking or packing process and allowed to "float" to the specified\nedge of the enclosing reference area or parent BLSE. Multiple such floating ele-\nments may be positioned adjacent to one another against the specified edge of the\nreference area, or placed serially against the edge, in the order encountered.\n Complex cases such as floating elements that interfere with each other or do not\n fit on the same page may be handled differently by different layout applications;\n Tagged PDF merely identifies the elements as floating and indicates their desired\n placement.')\ + .done().done()\ + .optional()\ + .field('WritingMode')\ + .name('WritingMode')\ + .type('name')\ + .comment('(Optional) The directions of layout progression for packing of ILSEs (inline\nprogression) and stacking of BLSEs (block progression):\n LrTb Inline progression from left to right; block progression from\n top to bottom. This is the typical writing mode for Western\n writing systems.\n RlTb Inline progression from right to left; block progression from\n top to bottom. This is the typical writing mode for Arabic\n and Hebrew writing systems.\n TbRl Inline progression from top to bottom; block progression\n from right to left. This is the typical writing mode for Chi-\n nese and Japanese writing systems.\nThe specified layout directions apply to the given structure element and all of\nits descendants to any level of nesting. Default value: LrTb.\nFor elements that produce multiple columns, the writing mode defines the\ndirection of column progression within the reference area: the inline direc-\ntion determines the stacking direction for columns and the default flow\norder of text from column to column. For tables, the writing mode controls\nthe layout of rows and columns: table rows (structure type TR) are stacked\nin the block direction, cells within a row (structure type TD) in the inline\ndirection.\nNote: The inline-progression direction specified by the writing mode is subject to\nlocal override within the text being laid out, as described in Unicode Standard\nAnnex #9, The Bidirectional Algorithm, available from the Unicode Consor-\ntium (see the Bibliography).')\ + .done().done()\ + .done() + + pdfspec.addClass('BlockLevelStructureElementsDictionary', 'Dictionary', 'Additional standard layout attributes specific to block-level structure elements')\ + .optional()\ + .field('SpaceBefore')\ + .name('SpaceBefore')\ + .type('number')\ + .comment('(Optional) The amount of extra space preceding the before edge of the BLSE,\nmeasured in default user space units in the block-progression direction. This\nvalue is added to any adjustments induced by the LineHeight attributes of\nILSEs within the first line of the BLSE (see "Layout Attributes for ILSEs" on\npage 646). If the preceding BLSE has a SpaceAfter attribute, the greater of the\ntwo attribute values is used. Default value: 0.\nNote: This attribute is disregarded for the first BLSE placed in a given reference\narea.')\ + .done().done()\ + .optional()\ + .field('SpaceAfter')\ + .name('SpaceAfter')\ + .type('number')\ + .comment('(Optional) The amount of extra space following the after edge of the BLSE,\nmeasured in default user space units in the block-progression direction. This\nvalue is added to any adjustments induced by the LineHeight attributes of\nILSEs within the last line of the BLSE (see "Layout Attributes for ILSEs" on\npage 646). If the following BLSE has a SpaceBefore attribute, the greater of\nthe two attribute values is used. Default value: 0.\nNote: This attribute is disregarded for the last BLSE placed in a given reference\narea.')\ + .done().done()\ + .optional()\ + .field('StartIndent')\ + .name('StartIndent')\ + .type('number')\ + .comment('(Optional) The distance from the start edge of the reference area to that of the\nBLSE, measured in default user space units in the inline-progression direc-\ntion. This attribute applies only to structure elements with a Placement\nattribute of Block or Start (see "General Layout Attributes" on page 640); it is\ndisregarded for those with other Placement values. Default value: 0.\nNote: A negative value for this attribute places the start edge of the BLSE out-\nside that of the reference area. The results are implementation-dependent and\nmay not be supported by all Tagged PDF consumer applications or export\nformats.\nNote: If a structure element with a StartIndent attribute is placed adjacent to a\nfloating element with a Placement attribute of Start, the actual value used for\nthe element\'s starting indent will be its own StartIndent attribute or the inline\nextent of the adjacent floating element, whichever is greater. This value may\nthen be further adjusted by the element\'s TextIndent attribute, if any.')\ + .done().done()\ + .optional()\ + .field('EndIndent')\ + .name('EndIndent')\ + .type('number')\ + .comment('(Optional) The distance from the end edge of the BLSE to that of the ref-\nerence area, measured in default user space units in the inline-progression\ndirection. This attribute applies only to structure elements with a Placement\nattribute of Block or End (see "General Layout Attributes" on page 640); it is\ndisregarded for those with other Placement values. Default value: 0.\nNote: A negative value for this attribute places the end edge of the BLSE outside\nthat of the reference area. The results are implementation-dependent and may\nnot be supported by all Tagged PDF consumer applications or export formats.\nNote: If a structure element with an EndIndent attribute is placed adjacent to a\nfloating element with a Placement attribute of End, the actual value used for the\nelement\'s ending indent will be its own EndIndent attribute or the inline extent\nof the adjacent floating element, whichever is greater.')\ + .done().done()\ + .optional()\ + .field('TextIndent')\ + .name('TextIndent')\ + .type('number')\ + .comment('(Optional; applies only to some BLSEs, as described below) The additional\ndistance, measured in default user space units in the inline-progression\ndirection, from the start edge of the BLSE, as specified by StartIndent\n(above), to that of the first line of text. A negative value indicates a hanging\nindent. Default value: 0.\nThis attribute applies only to paragraphlike BLSEs and those of structure\ntypes Lbl (Label), LBody (List body), TH (Table header), and TD (Table data),\nprovided that they contain content other than nested BLSEs.')\ + .done().done()\ + .optional()\ + .field('TextAlign')\ + .name('TextAlign')\ + .type('name')\ + .comment('(Optional; applies only to BLSEs containing text) The alignment, in the inline-\nprogression direction, of text and other content within lines of the BLSE:\nStart Aligned with the start edge.\nCenter Centered between the start and end edges.\nEnd Aligned with the end edge.\nJustify Aligned with both the start and end edges, with internal\n spacing within each line expanded, if necessary, to achieve\n such alignment. The last (or only) line is aligned with the\n start edge only, as for Start (above).\n Default value: Start.')\ + .done().done()\ + .optional()\ + .field('BBox')\ + .name('BBox')\ + .type('rectangle')\ + .comment('(Illustrations and tables only; required if the element appears in its entirety on a\nsingle page) An array of four numbers in default user space units giving the\ncoordinates of the left, bottom, right, and top edges, respectively, of the ele-\nment\'s bounding box (the rectangle that completely encloses its visible con-\ntent). This attribute applies only to elements of structure type Figure,\nFormula, Form, or Table.')\ + .done().done()\ + .optional()\ + .field('Width')\ + .name('Width')\ + .type('number or name')\ + .comment('(Optional; illustrations, tables, table headers, and table cells only; strongly\nrecommended for table cells) The desired width of the element\'s content\nrectangle (see "Content and Allocation Rectangles" on page 648), measured\nin default user space units in the inline-progression direction. This attribute\napplies only to elements of structure type Figure, Formula, Form, Table, TH\n(Table header), or TD (Table data).\nThe name Auto in place of a numeric value indicates that no specific width\nconstraint is to be imposed; the element\'s width is determined by the intrin-\nsic width of its content. Default value: Auto.')\ + .done().done()\ + .optional()\ + .field('Height')\ + .name('Height')\ + .type('number or name')\ + .comment('(Optional; illustrations, tables, table headers, and table cells only) The desired\nheight of the element\'s content rectangle (see "Content and Allocation\nRectangles" on page 648), measured in default user space units in the block-\nprogression direction. This attribute applies only to elements of structure\ntype Figure, Formula, Form, Table, TH (Table header), or TD (Table data).\nThe name Auto in place of a numeric value indicates that no specific height\nconstraint is to be imposed; the element\'s height is determined by the intrin-\nsic height of its content. Default value: Auto.')\ + .done().done()\ + .optional()\ + .field('BlockAlign')\ + .name('BlockAlign')\ + .type('name')\ + .comment('(Optional; table cells only) The alignment, in the block-progression direction,\nof content within the table cell:\n Before Before edge of the first child\'s allocation rectangle aligned\n with that of the table cell\'s content rectangle.\n Middle Children centered within the table cell, so that the distance\n between the before edge of the first child\'s allocation rec-\n tangle and that of the table cell\'s content rectangle is the same\n as the distance between the after edge of the last child\'s allo-\n cation rectangle and that of the table cell\'s content rectangle.\n After After edge of the last child\'s allocation rectangle aligned with\n that of the table cell\'s content rectangle.\n Justify Children aligned with both the before and after edges of the\n table cell\'s content rectangle. The first child is placed as\n described above for Before and the last child as described for\n After, with equal spacing between the children. If there is only\n one child, it is aligned with the before edge only, as for Before.\n This attribute applies only to elements of structure type TH (Table header) or\n TD (Table data), and controls the placement of all BLSEs that are children of\n the given element. The table cell\'s content rectangle (see "Content and Allo-\n cation Rectangles" on page 648) becomes the reference area for all of its\n descendants. Default value: Before.')\ + .done().done()\ + .optional()\ + .field('InlineAlign')\ + .name('InlineAlign')\ + .type('name')\ + .comment('(Optional; table cells only) The alignment, in the inline-progression direction,\nof content within the table cell:\n Start Start edge of each child\'s allocation rectangle aligned with\n that of the table cell\'s content rectangle\n Center Each child centered within the table cell, so that the distance\n between the start edges of the child\'s allocation rectangle and\n the table cell\'s content rectangle is the same as the distance\n between their end edges\n End End edge of each child\'s allocation rectangle aligned with\n that of the table cell\'s content rectangle\nThis attribute applies only to elements of structure type TH (Table header) or\nTD (Table data), and controls the placement of all BLSEs that are children of\nthe given element. The table cell\'s content rectangle (see "Content and Allo-\ncation Rectangles" on page 648) becomes the reference area for all of its\ndescendants. Default value: Start.')\ + .done().done()\ + .done() + + pdfspec.addClass('InlineLevelStructureElementsDictionary', 'Dictionary', 'Standard layout attributes specific to inline-level structure elements')\ + .optional()\ + .field('LineHeight')\ + .name('LineHeight')\ + .type('number or name')\ + .comment('(Optional) The element\'s preferred height, measured in default user space\nunits in the block-progression direction. The height of a line is deter-\nmined by the largest LineHeight value for any complete or partial ILSE\nthat it contains.\nThe name Normal or Auto in place of a numeric value indicates that no\nspecific height constraint is to be imposed; the element\'s height is set to a\nreasonable value based on the content\'s font size:\n Normal Adjust the line height to include any nonzero value\n specified for BaselineShift (see below).\n Auto Do not adjust for the value of BaselineShift.\nDefault value: Normal.')\ + .done().done()\ + .done() + + pdfspec.addClass('ListAttributeDictionary', 'Dictionary', 'Standard list attribute')\ + .optional()\ + .field('ListNumbering')\ + .name('ListNumbering')\ + .type('name')\ + .comment('(Optional) The numbering system used to generate the content of the Lbl (Label)\nelements in an autonumbered list, or the symbol used to identify each item in an\nunnumbered list:\n None No autonumbering; Lbl elements (if present) contain arbi-\n trary text not subject to any numbering scheme\n Disc Solid circular bullet\n Circle Open circular bullet\n Square Solid square bullet\n Decimal Decimal arabic numerals (1\'9, 10\'99, ...)\n UpperRoman Uppercase roman numerals (I, II, III, IV, ...)\n LowerRoman Lowercase roman numerals (i, ii, iii, iv, ...)\n UpperAlpha Uppercase letters (A, B, C, ...)\n LowerAlpha Lowercase letters (a, b, c, ...)\nDefault value: None.\nNote: The alphabet used for UpperAlpha and LowerAlpha is determined by the pre-\nvailing Lang entry (see Section 9.8.1, "Natural Language Specification").\nNote: The set of possible values may be expanded as Unicode identifies additional\nnumbering systems.')\ + .done().done()\ + .done() + + pdfspec.addClass('TableAttributesDictionary', 'Dictionary', 'Standard table attributes')\ + .optional()\ + .field('RowSpan')\ + .name('RowSpan')\ + .type('integer')\ + .comment('(Optional) The number of rows in the enclosing table that are spanned by the\ncell. The cell expands by adding rows in the block-progression direction speci-\nfied by the table\'s WritingMode attribute. Default value: 1.')\ + .done().done()\ + .optional()\ + .field('ColSpan')\ + .name('ColSpan')\ + .type('integer')\ + .comment('(Optional) The number of columns in the enclosing table that are spanned by\nthe cell. The cell expands by adding columns in the inline-progression direction\nspecified by the table\'s WritingMode attribute. Default value: 1.')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCaptureInformationDictionary', 'Dictionary', 'Entries in the Web Capture information dictionary')\ + .required('NULL')\ + .field('V')\ + .name('V')\ + .type('number')\ + .comment('(Required) The Web Capture version number. For PDF 1.3, the version number is 1.0.\nNote: This value is a single real number, not a major and minor version number. Thus, for\nexample, a version number of 1.2 would be considered greater than 1.15.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('array')\ + .comment('(Optional) An array of indirect references to Web Capture command dictionaries (see\n"Command Dictionaries" on page 672) describing commands that were used in building\nthe PDF file. The commands appear in the array in the order in which they were executed\nin building the file.')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCaptureDictionary', 'Dictionary', 'Entries common to all Web Capture content sets')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes; if present, must be\nSpiderContentSet for a Web Capture content set.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The subtype of content set that this dictionary describes:\n SPS ("Spider page set") A page set\n SIS ("Spider image set") An image set')\ + .done().done()\ + .required('NULL')\ + .field('ID')\ + .name('ID')\ + .type('string')\ + .comment('(Required) The digital identifier of the content set (see "Digital Identifiers" on page\n664). If the content set has been located via the URLS name tree, this allows its related\nentry in the IDS name tree to be found.')\ + .done().done()\ + .required('NULL')\ + .field('O')\ + .name('O')\ + .type('array')\ + .comment('(Required) An array of indirect references to the objects belonging to the content set.\nThe order of objects in the array is undefined in general, but may be restricted by spe-\ncific content set subtypes.')\ + .done().done()\ + .required('NULL')\ + .field('SI')\ + .name('SI')\ + .type('dictionary or array')\ + .comment('(Required) A source information dictionary (see Section 9.9.4, "Source Information"),\nor an array of such dictionaries, describing the sources from which the objects belong-\ning to the content set were created.')\ + .done().done()\ + .optional()\ + .field('CT')\ + .name('CT')\ + .type('string')\ + .comment('(Optional) The content type, a string characterizing the source from which the objects\nbelonging to the content set were created. The string should conform to the content\ntype specification described in Internet RFC 2045, Multipurpose Internet Mail Exten-\nsions (MIME) Part One: Format of Internet Message Bodies (see the Bibliography). For\nexample, for a page set consisting of a group of PDF pages created from an HTML file,\nthe content type would be text/html.')\ + .done().done()\ + .optional()\ + .field('TS')\ + .name('TS')\ + .type('date')\ + .comment('(Optional) A time stamp giving the date and time at which the content set was created.')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCapturePageSetDictionary', 'Dictionary', 'Additional entries specific to a Web Capture page set')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The subtype of content set that this dictionary describes; must be SPS\n("Spider page set") for a page set.')\ + .done().done()\ + .optional()\ + .field('T')\ + .name('T')\ + .type('text string')\ + .comment('(Optional) The title of the page set, a text string representing it in human-readable\nform.')\ + .done().done()\ + .optional()\ + .field('TID')\ + .name('TID')\ + .type('string')\ + .comment('(Optional) A text identifier generated from the text of the page set, as described in\n"Digital Identifiers" on page 664.')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCaptureImageSetDictionary', 'Dictionary', 'Additional entries specific to a Web Capture image set')\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The subtype of content set that this dictionary describes; must be SIS ("Spider\nimage set") for an image set.')\ + .done().done()\ + .required('NULL')\ + .field('R')\ + .name('R')\ + .type('integer or array')\ + .comment('(Required) The reference counts (see below) for the image XObjects belonging to the\nimage set. For an image set containing a single XObject, the value is simply the integer\nreference count for that XObject. If the image set contains multiple XObjects, the value is\nan array of reference counts parallel to the O array (see Table 9.33 on page 668); that is,\neach element in the R array holds the reference count for the image XObject at the corre-\nsponding position in the O array.')\ + .done().done()\ + .done() + + pdfspec.addClass('SourceInformationDictionary', 'Dictionary', 'Entries in a source information dictionary')\ + .required('NULL')\ + .field('AU')\ + .name('AU')\ + .type('string or dictionary')\ + .comment('(Required) A string or URL alias dictionary (see "URL Alias Dictionaries," below)\nidentifying the URLs from which the source data was retrieved.')\ + .done().done()\ + .optional()\ + .field('TS')\ + .name('TS')\ + .type('date')\ + .comment('(Optional) A time stamp giving the most recent date and time at which the content\nset\'s contents were known to be up to date with the source data.')\ + .done().done()\ + .optional()\ + .field('E')\ + .name('E')\ + .type('date')\ + .comment('(Optional) An expiration stamp giving the date and time at which the content set\'s\ncontents should be considered out of date with the source data.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('integer')\ + .comment('(Optional) A code indicating the type of form submission, if any, by which the source\ndata was accessed (see "Submit-Form Actions" on page 550):\n 0 Not accessed via a form submission\n 1 Accessed via an HTTP GET request\n 2 Accessed via an HTTP POST request\nThis entry should be present only in source information dictionaries associated with\npage sets. Default value: 0.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('dictionary')\ + .comment('(Optional; must be an indirect reference) A command dictionary (see "Command Dic-\ntionaries" on page 672) describing the command that caused the source data to be\nretrieved. This entry should be present only in source information dictionaries associ-\nated with page sets.')\ + .done().done()\ + .done() + + pdfspec.addClass('URLAliasDictionary', 'Dictionary', 'Entries in a URL alias dictionary')\ + .required('NULL')\ + .field('U')\ + .name('U')\ + .type('string')\ + .comment('(Required) The destination URL to which all of the chains specified by the C entry lead.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('array')\ + .comment('(Optional) An array of one or more arrays of strings, each representing a chain of URLs\nleading to the common destination specified by U.')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCaptureCommandDictionary', 'Dictionary', 'Entries in a Web Capture command dictionary')\ + .required('NULL')\ + .field('URL')\ + .name('URL')\ + .type('string')\ + .comment('(Required) The initial URL from which source data was requested.')\ + .done().done()\ + .optional()\ + .field('L')\ + .name('L')\ + .type('integer')\ + .comment('(Optional) The number of levels of pages retrieved from the initial URL. Default\nvalue: 1.')\ + .done().done()\ + .optional()\ + .field('F')\ + .name('F')\ + .type('integer')\ + .comment('(Optional) A set of flags specifying various characteristics of the command (see\nTable 9.39). Default value: 0.')\ + .done().done()\ + .optional()\ + .field('P')\ + .name('P')\ + .type('string or stream')\ + .comment('(Optional) Data that was posted to the URL.')\ + .done().done()\ + .optional()\ + .field('CT')\ + .name('CT')\ + .type('string')\ + .comment('(Optional) A content type describing the data posted to the URL. Default value:\napplication/x-www-form-urlencoded.')\ + .done().done()\ + .optional()\ + .field('H')\ + .name('H')\ + .type('string')\ + .comment('(Optional) Additional HTTP request headers sent to the URL.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('dictionary')\ + .comment('(Optional) A command settings dictionary containing settings used in the con-\nversion process (see "Command Settings" on page 674).')\ + .done().done()\ + .done() + + pdfspec.addClass('WebCaptureCommandSettingsDictionary', 'Dictionary', 'Entries in a Web Capture command settings dictionary')\ + .optional()\ + .field('G')\ + .name('G')\ + .type('dictionary')\ + .comment('(Optional) A dictionary containing global conversion engine settings relevant to all con-\nversion engines. If this key is absent, default settings will be used.')\ + .done().done()\ + .optional()\ + .field('C')\ + .name('C')\ + .type('dictionary')\ + .comment('(Optional) Settings for specific conversion engines. Each key in this dictionary is the\ninternal name of a conversion engine (see below). The associated value is a dictionary\ncontaining the settings associated with that conversion engine. If the settings for a par-\nticular conversion engine are not found in the dictionary, default settings will be used.')\ + .done().done()\ + .done() + + pdfspec.addClass('BoxColorInformationDictionary', 'Dictionary', 'Entries in a box color information dictionary')\ + .optional()\ + .field('CropBox')\ + .name('CropBox')\ + .type('dictionary')\ + .comment('(Optional) A box style dictionary (see Table 9.42) specifying the visual characteris-\ntics for displaying guidelines for the page\'s crop box. This entry is ignored if no crop\nbox is defined in the page object.')\ + .done().done()\ + .optional()\ + .field('BleedBox')\ + .name('BleedBox')\ + .type('dictionary')\ + .comment('(Optional) A box style dictionary (see Table 9.42) specifying the visual characteris-\ntics for displaying guidelines for the page\'s bleed box. This entry is ignored if no\nbleed box is defined in the page object.')\ + .done().done()\ + .optional()\ + .field('TrimBox')\ + .name('TrimBox')\ + .type('dictionary')\ + .comment('(Optional) A box style dictionary (see Table 9.42) specifying the visual characteris-\ntics for displaying guidelines for the page\'s trim box. This entry is ignored if no trim\nbox is defined in the page object.')\ + .done().done()\ + .optional()\ + .field('ArtBox')\ + .name('ArtBox')\ + .type('dictionary')\ + .comment('(Optional) A box style dictionary (see Table 9.42) specifying the visual characteris-\ntics for displaying guidelines for the page\'s art box. This entry is ignored if no art\nbox is defined in the page object.')\ + .done().done()\ + .done() + + pdfspec.addClass('BoxStyleDictionary', 'Dictionary', 'Entries in a box style dictionary')\ + .required('NULL')\ + .field('C')\ + .name('C')\ + .type('array')\ + .comment('(Required) An array of three numbers in the range 0.0 to 1.0, representing the com-\nponents in the DeviceRGB color space of the color to be used for displaying the\nguidelines. Default value: [0.0 0.0 0.0].')\ + .done().done()\ + .optional()\ + .field('W')\ + .name('W')\ + .type('number')\ + .comment('(Optional) The guideline width in default user space units. Default value: 1.')\ + .done().done()\ + .optional()\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Optional) The guideline style:\n S (Solid) A solid rectangle.\n D (Dashed) A dashed rectangle. The dash pattern is specified by the D entry\n (see below).\nOther guideline styles may be defined in the future. Default value: S.')\ + .done().done()\ + .optional()\ + .field('D')\ + .name('D')\ + .type('array')\ + .comment('(Optional) A dash array defining a pattern of dashes and gaps to be used in drawing\ndashed guidelines (guideline style D above). The dash array is specified in default\nuser space units, in the same format as in the line dash pattern parameter of the\ngraphics state (see "Line Dash Pattern" on page 155). The dash phase is not speci-\nfied and is assumed to be 0. For example, a D entry of [3 2] specifies guidelines\ndrawn with 3-point dashes alternating with 2-point gaps. Default value: [3].')\ + .done().done()\ + .done() + + pdfspec.addClass('PrinterMarkAnnotationDictionary', 'Dictionary', 'Additional entries specific to a printer\'s mark annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be Printer-\nMark for a printer\'s mark annotation.')\ + .done().done()\ + .optional()\ + .field('MN')\ + .name('MN')\ + .type('name')\ + .comment('(Optional) An arbitrary name identifying the type of printer\'s mark, such as Color-\nBar or RegistrationTarget.')\ + .done().done()\ + .done() + + pdfspec.addClass('PrinterMarkFormDictionary', 'Dictionary', 'Additional entries specific to a printer\'s mark form dictionary')\ + .optional()\ + .field('MarkStyle')\ + .name('MarkStyle')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) A text string representing the printer\'s mark in\nhuman-readable form, suitable for presentation to the user on the screen.')\ + .done().done()\ + .optional()\ + .field('Colorants')\ + .name('Colorants')\ + .type('dictionary')\ + .comment('(Optional; PDF 1.4) A dictionary identifying the individual colorants\nassociated with a printer\'s mark such as a color bar. For each entry in this\ndictionary, the key is a colorant name and the value is an array defining a\nSeparation color space for that colorant (see "Separation Color Spaces"\non page 201). The key must match the colorant name given in that color\nspace.')\ + .done().done()\ + .done() + + pdfspec.addClass('SeparationDictionary', 'Dictionary', 'Entries in a separation dictionary')\ + .required('NULL')\ + .field('Pages')\ + .name('Pages')\ + .type('array')\ + .comment('(Required) An array of indirect references to page objects representing separa-\ntions of the same document page. One of the page objects in the array must be\nthe one with which this separation dictionary is associated, and all of them must\nhave separation dictionaries (SeparationInfo entries) containing Pages arrays\nidentical to this one.')\ + .done().done()\ + .required('NULL')\ + .field('DeviceColorant')\ + .name('DeviceColorant')\ + .type('name or string')\ + .comment('(Required) The name of the device colorant to be used in rendering this\nseparation, such as Cyan or PANTONE 35 CV.')\ + .done().done()\ + .optional()\ + .field('ColorSpace')\ + .name('ColorSpace')\ + .type('array')\ + .comment('(Optional) An array defining a Separation or DeviceN color space (see "Separa-\ntion Color Spaces" on page 201 and "DeviceN Color Spaces" on page 205). This\nprovides additional information about the color specified by DeviceColorant-\nin particular, the alternate color space and tint transformation function that\nwould be used to represent the colorant as a process color. This information\nenables a viewer application to preview the separation in a color that approxi-\nmates the device colorant.\nThe value of DeviceColorant must match the space\'s colorant name (if it is a\nSeparation space) or be one of the space\'s colorant names (if it is a DeviceN\nspace).')\ + .done().done()\ + .done() + + pdfspec.addClass('PDF_XOutputIntentDictionary', 'Dictionary', 'Entries in a PDF/X output intent dictionary')\ + .optional()\ + .field('Type')\ + .name('Type')\ + .type('name')\ + .comment('(Optional) The type of PDF object that this dictionary describes;\nif present, must be OutputIntent for an output intent dictionary.')\ + .done().done()\ + .required('NULL')\ + .field('S')\ + .name('S')\ + .type('name')\ + .comment('(Required) The output intent subtype; must be GTS_PDFX for a\nPDF/X output intent.')\ + .done().done()\ + .optional()\ + .field('OutputCondition')\ + .name('OutputCondition')\ + .type('text string')\ + .comment('(Optional) A text string concisely identifying the intended out-\nput device or production condition in human-readable form.\nThis is the preferred method of defining such a string for pre-\nsentation to the user.')\ + .done().done()\ + .required('NULL')\ + .field('OutputConditionIdentifier')\ + .name('OutputConditionIdentifier')\ + .type('string')\ + .comment('(Required) A string identifying the intended output device or\nproduction condition in human- or machine-readable form. If\nhuman-readable, this string may be used in lieu of an Output-\nCondition string for presentation to the user.\nA typical value for this entry would be the name of a production\ncondition maintained in an industry-standard registry such as\nthe ICC Characterization Data Registry (see the Bibliography). If\nthe designated condition matches that in effect at production\ntime, it is the responsibility of the production software to pro-\nvide the corresponding ICC profile as defined in the registry.\nIf the intended production condition is not a recognized\nstandard, the value Custom is recommended for this entry; the\nDestOutputProfile entry defines the ICC profile and the Info\nentry is used for further human-readable identification.')\ + .done().done()\ + .optional()\ + .field('RegistryName')\ + .name('RegistryName')\ + .type('string')\ + .comment('(Optional) A string (conventionally a uniform resource identifi-\ner, or URI) identifying the registry in which the condition desig-\nnated by OutputConditionIdentifier is defined.')\ + .done().done()\ + .optional()\ + .field('Info')\ + .name('Info')\ + .type('text string')\ + .comment('(Required if OutputConditionIdentifier does not specify a standard\nproduction condition; optional otherwise) A human-readable text\nstring containing additional information or comments about\nthe intended target device or production condition.')\ + .done().done()\ + .optional()\ + .field('DestOutputProfile')\ + .name('DestOutputProfile')\ + .type('stream')\ + .comment('(Required if OutputConditionIdentifier does not specify a standard\nproduction condition; optional otherwise) An ICC profile stream\ndefining the transformation from the PDF document\'s source\ncolors to output device colorants.\nThe format of the profile stream is the same as that used in speci-\nfying an ICCBased color space (see "ICCBased Color Spaces" on\npage 189). The output transformation uses the profile\'s "from\nCIE" information (BToA in ICC terminology); the "to CIE"\n(AToB) information can optionally be used to remap source\ncolor values to some other destination color space, such as for\nscreen preview or hardcopy proofing. (See implementation note\n111 in Appendix H.)')\ + .done().done()\ + .done() + + pdfspec.addClass('TrapNetworkAnnotationDictionary', 'Dictionary', 'Additional entries specific to a trap network annotation')\ + .required('NULL')\ + .field('Subtype')\ + .name('Subtype')\ + .type('name')\ + .comment('(Required) The type of annotation that this dictionary describes; must be\nTrapNet for a trap network annotation.')\ + .done().done()\ + .optional()\ + .field('Contents')\ + .name('Contents')\ + .type('text string')\ + .comment('(Optional; PDF 1.4) An alternate description of the annotation\'s contents in\nhuman-readable form, useful when extracting the document\'s contents in\nsupport of accessibility to disabled users or for other purposes (see Section\n9.8.2, "Alternate Descriptions").')\ + .done().done()\ + .optional()\ + .field('LastModified')\ + .name('LastModified')\ + .type('date')\ + .comment('(Required if Version and AnnotStates are absent; must be absent if Version and\nAnnotStates are present; PDF 1.4) The date and time (see Section 3.8.2,\n"Dates") when the trap network was most recently modified.')\ + .done().done()\ + .optional()\ + .field('Version')\ + .name('Version')\ + .type('array')\ + .comment('(Required if AnnotStates is present; must be absent if LastModified is present)\nAn unordered array of all objects present in the page description at the time\nthe trap networks were generated and that, if changed, could affect the\nappearance of the page. If present, the array must include the following\nobjects:\n* All content streams identified in the page object\'s Contents entry (see\n "Page Objects" on page 87)\n* All resource objects (other than procedure sets) in the page\'s resource dic-\n tionary (see Section 3.7.2, "Resource Dictionaries")\n* All resource objects (other than procedure sets) in the resource diction-\n aries of any form XObjects on the page (see Section 4.9, "Form XObjects")\n* All OPI dictionaries associated with XObjects on the page (see Section\n 9.10.6, "Open Prepress Interface (OPI)")')\ + .done().done()\ + .optional()\ + .field('AnnotStates')\ + .name('AnnotStates')\ + .type('array')\ + .comment('(Required if Version is present; must be absent if LastModified is present) An\narray of name objects representing the appearance states (value of the AS\nentry) for annotations associated with the page. The appearance states must\nbe listed in the same order as the annotations in the page\'s Annots array (see\n"Page Objects" on page 87). For an annotation with no AS entry, the corre-\nsponding array element should be null. No appearance state should be\nincluded for the trap network annotation itself.')\ + .done().done()\ + .optional()\ + .field('FontFauxing')\ + .name('FontFauxing')\ + .type('array')\ + .comment('(Optional) An array of font dictionaries representing fonts that were "fauxed"\n(replaced by substitute fonts) during the generation of trap networks for the\npage.')\ + .done().done()\ + .done() + + pdfspec.addClass('TrapNetworkAppearanceStreamDictionary', 'Dictionary', 'Additional entries specific to a trap network appearance stream')\ + .required('NULL')\ + .field('PCM')\ + .name('PCM')\ + .type('name')\ + .comment('(Required) The name of the process color model that was assumed\nwhen this trap network was created; equivalent to the PostScript\npage device parameter ProcessColorModel (see Section 6.2.5 of the\nPostScript Language Reference, Third Edition). Valid values are\nDeviceGray, DeviceRGB, DeviceCMYK, DeviceCMY, DeviceRGBK,\nand DeviceN.')\ + .done().done()\ + .optional()\ + .field('SeparationColorNames')\ + .name('SeparationColorNames')\ + .type('array')\ + .comment('(Optional) An array of names identifying the colorants that were\nassumed when this network was created; equivalent to the Post-\nScript page device parameter of the same name (see Section 6.2.5 of\nthe PostScript Language Reference, Third Edition). Colorants im-\nplied by the process color model PCM are available automatically\nand need not be explicitly declared. If this entry is absent, the\ncolorants implied by PCM are assumed.')\ + .done().done()\ + .optional()\ + .field('TrapRegions')\ + .name('TrapRegions')\ + .type('array')\ + .comment('(Optional) An array of indirect references to TrapRegion objects\ndefining the page\'s trapping zones and the associated trapping\nparameters, as described in Adobe Technical Note #5620, Portable\nJob Ticket Format. These references are to objects comprising\nportions of a PJTF job ticket that is embedded in the PDF file.\nWhen the trapping zones and parameters are defined by an external\njob ticket (or by some other means, such as with JDF), this entry is\nabsent.')\ + .done().done()\ + .optional()\ + .field('TrapStyles')\ + .name('TrapStyles')\ + .type('text string')\ + .comment('(Optional) A human-readable text string that applications can use\nto describe this trap network to the user (for example, to allow\nswitching between trap networks).')\ + .done().done()\ + .done() + + pdfspec.addClass('OpiVersionDictionary', 'Dictionary', 'Entry in an OPI version dictionary')\ + .required('NULL')\ + .field('version_number')\ + .name('version_number')\ + .type('dictionary')\ + .comment('(Required; PDF 1.2) An OPI dictionary specifying the attributes of this proxy\n(see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2.0,\nidentifying the version of OPI to which the proxy corresponds.')\ + .done().done()\ + .done() + + +def addDictionaryTypesTo(knowTypes): + knowTypes['GoToActionDictionary'] = ['SkPdfGoToActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SoundObjectDictionary'] = ['SkPdfSoundObjectDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['LaunchActionDictionary'] = ['SkPdfLaunchActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['RemoteGoToActionDictionary'] = ['SkPdfRemoteGoToActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PageObjectActionsDictionary'] = ['SkPdfPageObjectActionsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AnnotationActionsDictionary'] = ['SkPdfAnnotationActionsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['DocumentCatalogActionsDictionary'] = ['SkPdfDocumentCatalogActionsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FormFieldActionsDictionary'] = ['SkPdfFormFieldActionsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['JavascriptDictionary'] = ['SkPdfJavascriptDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EncryptedEmbeddedFileStreamDictionary'] = ['SkPdfEncryptedEmbeddedFileStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['IconFitDictionary'] = ['SkPdfIconFitDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFFieldDictionary'] = ['SkPdfFDFFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ThreadActionDictionary'] = ['SkPdfThreadActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WindowsLaunchActionDictionary'] = ['SkPdfWindowsLaunchActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FileAttachmentAnnotationDictionary'] = ['SkPdfFileAttachmentAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFNamedPageReferenceDictionary'] = ['SkPdfFDFNamedPageReferenceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FileTrailerDictionary'] = ['SkPdfFileTrailerDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EncryptionCommonDictionary'] = ['SkPdfEncryptionCommonDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Jbig2DecodeFilterDictionary'] = ['SkPdfJbig2DecodeFilterDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['DctdecodeFilterDictionary'] = ['SkPdfDctdecodeFilterDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CatalogDictionary'] = ['SkPdfCatalogDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PageTreeNodeDictionary'] = ['SkPdfPageTreeNodeDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StandardSecurityHandlerDictionary'] = ['SkPdfStandardSecurityHandlerDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PageObjectDictionary'] = ['SkPdfPageObjectDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['NameDictionary'] = ['SkPdfNameDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['VariableTextFieldDictionary'] = ['SkPdfVariableTextFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ObjectReferenceDictionary'] = ['SkPdfObjectReferenceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TrapNetworkAppearanceStreamDictionary'] = ['SkPdfTrapNetworkAppearanceStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ImageDictionary'] = ['SkPdfImageDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['OpiVersionDictionary'] = ['SkPdfOpiVersionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type1FontDictionary'] = ['SkPdfType1FontDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type3FontDictionary'] = ['SkPdfType3FontDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EncodingDictionary'] = ['SkPdfEncodingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CIDSystemInfoDictionary'] = ['SkPdfCIDSystemInfoDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CIDFontDictionary'] = ['SkPdfCIDFontDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CMapDictionary'] = ['SkPdfCMapDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type0FontDictionary'] = ['SkPdfType0FontDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FontDescriptorDictionary'] = ['SkPdfFontDescriptorDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ResetFormActionDictionary'] = ['SkPdfResetFormActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFPageDictionary'] = ['SkPdfFDFPageDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ChoiceFieldDictionary'] = ['SkPdfChoiceFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StructureElementAccessDictionary'] = ['SkPdfStructureElementAccessDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CalgrayColorSpaceDictionary'] = ['SkPdfCalgrayColorSpaceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCaptureCommandDictionary'] = ['SkPdfWebCaptureCommandDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['IccProfileStreamDictionary'] = ['SkPdfIccProfileStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['LabColorSpaceDictionary'] = ['SkPdfLabColorSpaceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CalrgbColorSpaceDictionary'] = ['SkPdfCalrgbColorSpaceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['HideActionDictionary'] = ['SkPdfHideActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFTemplateDictionary'] = ['SkPdfFDFTemplateDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['NamedActionsDictionary'] = ['SkPdfNamedActionsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['InteractiveFormDictionary'] = ['SkPdfInteractiveFormDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['URIActionDictionary'] = ['SkPdfURIActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['URIDictionary'] = ['SkPdfURIDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SoundActionDictionary'] = ['SkPdfSoundActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MovieActionDictionary'] = ['SkPdfMovieActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SourceInformationDictionary'] = ['SkPdfSourceInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFFileAnnotationDictionary'] = ['SkPdfFDFFileAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TransitionDictionary'] = ['SkPdfTransitionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['BeadDictionary'] = ['SkPdfBeadDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ThreadDictionary'] = ['SkPdfThreadDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PageLabelDictionary'] = ['SkPdfPageLabelDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['OutlineItemDictionary'] = ['SkPdfOutlineItemDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['OutlineDictionary'] = ['SkPdfOutlineDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ViewerPreferencesDictionary'] = ['SkPdfViewerPreferencesDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MarkInformationDictionary'] = ['SkPdfMarkInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['URLAliasDictionary'] = ['SkPdfURLAliasDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCaptureDictionary'] = ['SkPdfWebCaptureDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AttributeObjectDictionary'] = ['SkPdfAttributeObjectDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ArtifactsDictionary'] = ['SkPdfArtifactsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCaptureInformationDictionary'] = ['SkPdfWebCaptureInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TrapNetworkAnnotationDictionary'] = ['SkPdfTrapNetworkAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type1FormDictionary'] = ['SkPdfType1FormDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['GroupAttributesDictionary'] = ['SkPdfGroupAttributesDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ReferenceDictionary'] = ['SkPdfReferenceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PSXobjectDictionary'] = ['SkPdfPSXobjectDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['BoxStyleDictionary'] = ['SkPdfBoxStyleDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['BoxColorInformationDictionary'] = ['SkPdfBoxColorInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCaptureCommandSettingsDictionary'] = ['SkPdfWebCaptureCommandSettingsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['InlineLevelStructureElementsDictionary'] = ['SkPdfInlineLevelStructureElementsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AppearanceCharacteristicsDictionary'] = ['SkPdfAppearanceCharacteristicsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type3ShadingDictionary'] = ['SkPdfType3ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type4ShadingDictionary'] = ['SkPdfType4ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TextFieldDictionary'] = ['SkPdfTextFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['RadioButtonFieldDictionary'] = ['SkPdfRadioButtonFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CheckboxFieldDictionary'] = ['SkPdfCheckboxFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type1PatternDictionary'] = ['SkPdfType1PatternDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type2PatternDictionary'] = ['SkPdfType2PatternDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['DeviceNColorSpaceDictionary'] = ['SkPdfDeviceNColorSpaceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type1ShadingDictionary'] = ['SkPdfType1ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type2ShadingDictionary'] = ['SkPdfType2ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StandardStructureDictionary'] = ['SkPdfStandardStructureDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ShadingDictionary'] = ['SkPdfShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EmbeddedFileParameterDictionary'] = ['SkPdfEmbeddedFileParameterDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MacOsFileInformationDictionary'] = ['SkPdfMacOsFileInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCaptureImageSetDictionary'] = ['SkPdfWebCaptureImageSetDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['GraphicsStateDictionary'] = ['SkPdfGraphicsStateDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FileSpecificationDictionary'] = ['SkPdfFileSpecificationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EmbeddedFileStreamDictionary'] = ['SkPdfEmbeddedFileStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MovieDictionary'] = ['SkPdfMovieDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FieldDictionary'] = ['SkPdfFieldDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MovieActivationDictionary'] = ['SkPdfMovieActivationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TableAttributesDictionary'] = ['SkPdfTableAttributesDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ListAttributeDictionary'] = ['SkPdfListAttributeDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SeparationDictionary'] = ['SkPdfSeparationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['BlockLevelStructureElementsDictionary'] = ['SkPdfBlockLevelStructureElementsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFCatalogDictionary'] = ['SkPdfFDFCatalogDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type1HalftoneDictionary'] = ['SkPdfType1HalftoneDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type10HalftoneDictionary'] = ['SkPdfType10HalftoneDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type6HalftoneDictionary'] = ['SkPdfType6HalftoneDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type5HalftoneDictionary'] = ['SkPdfType5HalftoneDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type16HalftoneDictionary'] = ['SkPdfType16HalftoneDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type6ShadingDictionary'] = ['SkPdfType6ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StreamCommonDictionary'] = ['SkPdfStreamCommonDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFDictionary'] = ['SkPdfFDFDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['LzwdecodeAndFlatedecodeFiltersDictionary'] = ['SkPdfLzwdecodeAndFlatedecodeFiltersDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CcittfaxdecodeFilterDictionary'] = ['SkPdfCcittfaxdecodeFilterDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MarkedContentReferenceDictionary'] = ['SkPdfMarkedContentReferenceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SignatureDictionary'] = ['SkPdfSignatureDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SoundAnnotationDictionary'] = ['SkPdfSoundAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MovieAnnotationDictionary'] = ['SkPdfMovieAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type3FunctionDictionary'] = ['SkPdfType3FunctionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type2FunctionDictionary'] = ['SkPdfType2FunctionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['RubberStampAnnotationDictionary'] = ['SkPdfRubberStampAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['InkAnnotationDictionary'] = ['SkPdfInkAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SquareOrCircleAnnotation'] = ['SkPdfSquareOrCircleAnnotation*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MarkupAnnotationsDictionary'] = ['SkPdfMarkupAnnotationsDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['NameTreeNodeDictionary'] = ['SkPdfNameTreeNodeDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type5ShadingDictionary'] = ['SkPdfType5ShadingDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ResourceDictionary'] = ['SkPdfResourceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SubmitFormActionDictionary'] = ['SkPdfSubmitFormActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['Type0FunctionDictionary'] = ['SkPdfType0FunctionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FunctionCommonDictionary'] = ['SkPdfFunctionCommonDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['NumberTreeNodeDictionary'] = ['SkPdfNumberTreeNodeDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ActionDictionary'] = ['SkPdfActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WidgetAnnotationDictionary'] = ['SkPdfWidgetAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StructureTreeRootDictionary'] = ['SkPdfStructureTreeRootDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['JavascriptActionDictionary'] = ['SkPdfJavascriptActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AlternateImageDictionary'] = ['SkPdfAlternateImageDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PDF_XOutputIntentDictionary'] = ['SkPdfPDF_XOutputIntentDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['DocumentInformationDictionary'] = ['SkPdfDocumentInformationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['MetadataStreamDictionary'] = ['SkPdfMetadataStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ImportDataActionDictionary'] = ['SkPdfImportDataActionDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PagePieceDictionary'] = ['SkPdfPagePieceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ApplicationDataDictionary'] = ['SkPdfApplicationDataDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ComponentsWithMetadataDictionary'] = ['SkPdfComponentsWithMetadataDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PrinterMarkFormDictionary'] = ['SkPdfPrinterMarkFormDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['StructureElementDictionary'] = ['SkPdfStructureElementDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PrinterMarkAnnotationDictionary'] = ['SkPdfPrinterMarkAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SoftMaskImageDictionary'] = ['SkPdfSoftMaskImageDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TransparencyGroupDictionary'] = ['SkPdfTransparencyGroupDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['SoftMaskDictionary'] = ['SkPdfSoftMaskDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['BorderStyleDictionary'] = ['SkPdfBorderStyleDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['PopUpAnnotationDictionary'] = ['SkPdfPopUpAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FDFTrailerDictionary'] = ['SkPdfFDFTrailerDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['LineAnnotationDictionary'] = ['SkPdfLineAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['FreeTextAnnotationDictionary'] = ['SkPdfFreeTextAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['ALinkAnnotationDictionary'] = ['SkPdfALinkAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['TextAnnotationDictionary'] = ['SkPdfTextAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['WebCapturePageSetDictionary'] = ['SkPdfWebCapturePageSetDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AppearanceDictionary'] = ['SkPdfAppearanceDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['CIDFontDescriptorDictionary'] = ['SkPdfCIDFontDescriptorDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['EmbeddedFontStreamDictionary'] = ['SkPdfEmbeddedFontStreamDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + knowTypes['AnnotationDictionary'] = ['SkPdfAnnotationDictionary*', 'DictionaryFromDictionary2', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] + + -- cgit v1.2.3