spire-presentation 11.2.0__py3-none-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spire/__init__.py +0 -0
- spire/presentation/ActiveSlide.py +215 -0
- spire/presentation/AppException.py +14 -0
- spire/presentation/AudioCD.py +85 -0
- spire/presentation/AudioPlayMode.py +23 -0
- spire/presentation/AudioVolumeType.py +25 -0
- spire/presentation/BaseShapeLocking.py +25 -0
- spire/presentation/Camera.py +127 -0
- spire/presentation/ClickHyperlink.py +476 -0
- spire/presentation/Comment.py +214 -0
- spire/presentation/ConnectorLocking.py +14 -0
- spire/presentation/DefaultTextRangeProperties.py +526 -0
- spire/presentation/Direction.py +19 -0
- spire/presentation/Field.py +57 -0
- spire/presentation/FieldType.py +282 -0
- spire/presentation/FileFormat.py +64 -0
- spire/presentation/FontAlignmentType.py +27 -0
- spire/presentation/FontCollectionIndex.py +21 -0
- spire/presentation/FontScheme.py +78 -0
- spire/presentation/FormatAndVersion.py +73 -0
- spire/presentation/GroupShape.py +73 -0
- spire/presentation/GroupShapeLocking.py +122 -0
- spire/presentation/HyperlinkActionType.py +47 -0
- spire/presentation/IActivePresentation.py +29 -0
- spire/presentation/IActiveSlide.py +27 -0
- spire/presentation/IAudio.py +608 -0
- spire/presentation/IAudioData.py +63 -0
- spire/presentation/IAutoShape.py +622 -0
- spire/presentation/ICommentAuthor.py +119 -0
- spire/presentation/IDigitalSignature.py +72 -0
- spire/presentation/IDigitalSignatures.py +34 -0
- spire/presentation/IDocumentProperty.py +533 -0
- spire/presentation/IEmbedImage.py +546 -0
- spire/presentation/ILayout.py +143 -0
- spire/presentation/IMasterSlide.py +281 -0
- spire/presentation/INoteMasterSlide.py +179 -0
- spire/presentation/IOleObject.py +661 -0
- spire/presentation/IShape.py +670 -0
- spire/presentation/ISlide.py +826 -0
- spire/presentation/ITextFrameProperties.py +566 -0
- spire/presentation/IVideo.py +809 -0
- spire/presentation/ImportDataFormat.py +21 -0
- spire/presentation/InsertPlaceholderType.py +22 -0
- spire/presentation/KnownColors.py +155 -0
- spire/presentation/LightRig.py +112 -0
- spire/presentation/LightingDirectionType.py +24 -0
- spire/presentation/LineCapStyle.py +23 -0
- spire/presentation/LineDashStyleType.py +41 -0
- spire/presentation/LineEndLength.py +23 -0
- spire/presentation/LineEndType.py +29 -0
- spire/presentation/LineEndWidth.py +23 -0
- spire/presentation/LineFillFormat.py +142 -0
- spire/presentation/LineJoinType.py +23 -0
- spire/presentation/LineText.py +48 -0
- spire/presentation/LinearGradientFill.py +64 -0
- spire/presentation/LocaleFonts.py +113 -0
- spire/presentation/MasterTheme.py +92 -0
- spire/presentation/MetaCharacterType.py +27 -0
- spire/presentation/NotesSlide.py +98 -0
- spire/presentation/NumberedBulletStyle.py +56 -0
- spire/presentation/OleObject.py +128 -0
- spire/presentation/Order.py +16 -0
- spire/presentation/PageSlideCount.py +20 -0
- spire/presentation/ParagraphProperties.py +632 -0
- spire/presentation/PictureShape.py +124 -0
- spire/presentation/Placeholder.py +101 -0
- spire/presentation/PlaceholderSize.py +23 -0
- spire/presentation/PlaceholderType.py +49 -0
- spire/presentation/PptObject.py +39 -0
- spire/presentation/Presentation.py +1389 -0
- spire/presentation/PresetCameraType.py +76 -0
- spire/presentation/PresetLightRigType.py +61 -0
- spire/presentation/PresetMaterialType.py +47 -0
- spire/presentation/PresetShadowValue.py +36 -0
- spire/presentation/RectangleAlignment.py +25 -0
- spire/presentation/RelativeRectangle.py +207 -0
- spire/presentation/Section.py +187 -0
- spire/presentation/SectionList.py +197 -0
- spire/presentation/Shape.py +631 -0
- spire/presentation/ShapeAdjust.py +65 -0
- spire/presentation/ShapeAlignment.py +34 -0
- spire/presentation/ShapeArrange.py +26 -0
- spire/presentation/ShapeBevelStyle.py +89 -0
- spire/presentation/ShapeCollection.py +75 -0
- spire/presentation/ShapeElementFillSource.py +29 -0
- spire/presentation/ShapeElementStrokeSource.py +21 -0
- spire/presentation/ShapeLocking.py +43 -0
- spire/presentation/ShapeNode.py +99 -0
- spire/presentation/ShapeStyle.py +221 -0
- spire/presentation/ShapeThreeD.py +201 -0
- spire/presentation/ShapeType.py +202 -0
- spire/presentation/SimpleShapeBaseLocking.py +223 -0
- spire/presentation/SlideBackground.py +169 -0
- spire/presentation/SlideColorScheme.py +61 -0
- spire/presentation/SlideLayoutType.py +87 -0
- spire/presentation/SlideList.py +355 -0
- spire/presentation/SlideOrienation.py +19 -0
- spire/presentation/SlidePicture.py +97 -0
- spire/presentation/SlidePictureLocking.py +39 -0
- spire/presentation/SlideShowType.py +21 -0
- spire/presentation/SlideSize.py +121 -0
- spire/presentation/SlideSizeType.py +49 -0
- spire/presentation/SystemColorType.py +46 -0
- spire/presentation/TabAlignmentType.py +20 -0
- spire/presentation/TabData.py +61 -0
- spire/presentation/TabStop.py +88 -0
- spire/presentation/TextAlignmentType.py +27 -0
- spire/presentation/TextAnchorType.py +31 -0
- spire/presentation/TextAutofitType.py +23 -0
- spire/presentation/TextBulletType.py +25 -0
- spire/presentation/TextCapType.py +23 -0
- spire/presentation/TextCharacterProperties.py +662 -0
- spire/presentation/TextFont.py +106 -0
- spire/presentation/TextHighLightingOptions.py +83 -0
- spire/presentation/TextHorizontalOverflowType.py +21 -0
- spire/presentation/TextLineFormat.py +403 -0
- spire/presentation/TextLineStyle.py +27 -0
- spire/presentation/TextParagraph.py +132 -0
- spire/presentation/TextParagraphProperties.py +517 -0
- spire/presentation/TextRange.py +160 -0
- spire/presentation/TextShapeType.py +101 -0
- spire/presentation/TextStrikethroughType.py +23 -0
- spire/presentation/TextStyle.py +85 -0
- spire/presentation/TextUnderlineType.py +53 -0
- spire/presentation/TextVerticalOverflowType.py +23 -0
- spire/presentation/Theme.py +119 -0
- spire/presentation/TileFlipMode.py +25 -0
- spire/presentation/TriState.py +17 -0
- spire/presentation/VerticalTextType.py +31 -0
- spire/presentation/VideoData.py +98 -0
- spire/presentation/VideoPlayMode.py +23 -0
- spire/presentation/_Presentation.py +171 -0
- spire/presentation/__init__.py +431 -0
- spire/presentation/animation/AnimateType.py +24 -0
- spire/presentation/animation/AnimationCalculationMode.py +23 -0
- spire/presentation/animation/AnimationColorBehavior.py +146 -0
- spire/presentation/animation/AnimationColorDirection.py +21 -0
- spire/presentation/animation/AnimationColorTransform.py +86 -0
- spire/presentation/animation/AnimationColorspace.py +21 -0
- spire/presentation/animation/AnimationCommandBehavior.py +82 -0
- spire/presentation/animation/AnimationCommandType.py +23 -0
- spire/presentation/animation/AnimationEffect.py +341 -0
- spire/presentation/animation/AnimationEffectCollection.py +178 -0
- spire/presentation/animation/AnimationEffectSubtype.py +164 -0
- spire/presentation/animation/AnimationEffectType.py +466 -0
- spire/presentation/animation/AnimationFilterEffect.py +92 -0
- spire/presentation/animation/AnimationMotion.py +192 -0
- spire/presentation/animation/AnimationMotionOrigin.py +21 -0
- spire/presentation/animation/AnimationMotionPathEditMode.py +21 -0
- spire/presentation/animation/AnimationProperty.py +173 -0
- spire/presentation/animation/AnimationRepeatType.py +21 -0
- spire/presentation/animation/AnimationRestartType.py +23 -0
- spire/presentation/animation/AnimationRotation.py +60 -0
- spire/presentation/animation/AnimationScale.py +121 -0
- spire/presentation/animation/AnimationSet.py +35 -0
- spire/presentation/animation/AnimationTriggerType.py +25 -0
- spire/presentation/animation/BehaviorAccumulateType.py +21 -0
- spire/presentation/animation/BehaviorAdditiveType.py +27 -0
- spire/presentation/animation/CommonBehavior.py +110 -0
- spire/presentation/animation/CommonBehaviorCollection.py +211 -0
- spire/presentation/animation/FilterEffectSubtype.py +70 -0
- spire/presentation/animation/FilterEffectType.py +71 -0
- spire/presentation/animation/FilterEffectsType.py +21 -0
- spire/presentation/animation/FilterRevealType.py +23 -0
- spire/presentation/animation/GraphicAnimation.py +60 -0
- spire/presentation/animation/GraphicAnimationCollection.py +134 -0
- spire/presentation/animation/GraphicBuildType.py +25 -0
- spire/presentation/animation/MotionCmdPath.py +115 -0
- spire/presentation/animation/MotionCommandPathType.py +25 -0
- spire/presentation/animation/MotionPath.py +120 -0
- spire/presentation/animation/MotionPathPointsType.py +33 -0
- spire/presentation/animation/ParagraphBuildType.py +31 -0
- spire/presentation/animation/PropertyValueType.py +23 -0
- spire/presentation/animation/SequenceCollection.py +111 -0
- spire/presentation/animation/TextAnimation.py +81 -0
- spire/presentation/animation/TextAnimationCollection.py +162 -0
- spire/presentation/animation/TimeAnimationValue.py +73 -0
- spire/presentation/animation/TimeAnimationValueCollection.py +54 -0
- spire/presentation/animation/TimeLine.py +78 -0
- spire/presentation/animation/TimeNode.py +62 -0
- spire/presentation/animation/TimeNodeAudio.py +128 -0
- spire/presentation/animation/TimeNodeMedia.py +30 -0
- spire/presentation/animation/TimeNodePresetClassType.py +29 -0
- spire/presentation/animation/TimeNodes.py +109 -0
- spire/presentation/animation/Timing.py +249 -0
- spire/presentation/animation/__init__.py +0 -0
- spire/presentation/charts/AxisPositionType.py +23 -0
- spire/presentation/charts/AxisType.py +21 -0
- spire/presentation/charts/CellRange.py +200 -0
- spire/presentation/charts/CellRanges.py +126 -0
- spire/presentation/charts/ChartAxis.py +828 -0
- spire/presentation/charts/ChartBaseUnitType.py +18 -0
- spire/presentation/charts/ChartCategory.py +40 -0
- spire/presentation/charts/ChartCategoryCollection.py +195 -0
- spire/presentation/charts/ChartCrossesType.py +21 -0
- spire/presentation/charts/ChartData.py +267 -0
- spire/presentation/charts/ChartDataLabel.py +481 -0
- spire/presentation/charts/ChartDataLabelCollection.py +464 -0
- spire/presentation/charts/ChartDataLabelPosition.py +35 -0
- spire/presentation/charts/ChartDataPoint.py +246 -0
- spire/presentation/charts/ChartDataPointCollection.py +75 -0
- spire/presentation/charts/ChartDataTable.py +164 -0
- spire/presentation/charts/ChartDisplayUnitType.py +37 -0
- spire/presentation/charts/ChartEffectFormat.py +76 -0
- spire/presentation/charts/ChartLegend.py +260 -0
- spire/presentation/charts/ChartLegendPositionType.py +27 -0
- spire/presentation/charts/ChartMarkerType.py +39 -0
- spire/presentation/charts/ChartPlotArea.py +150 -0
- spire/presentation/charts/ChartRotationThreeD.py +72 -0
- spire/presentation/charts/ChartSeriesDataFormat.py +600 -0
- spire/presentation/charts/ChartSeriesFormatCollection.py +238 -0
- spire/presentation/charts/ChartShapeType.py +29 -0
- spire/presentation/charts/ChartStyle.py +61 -0
- spire/presentation/charts/ChartTextArea.py +158 -0
- spire/presentation/charts/ChartType.py +95 -0
- spire/presentation/charts/ChartWallsOrFloor.py +114 -0
- spire/presentation/charts/CrossBetweenType.py +20 -0
- spire/presentation/charts/DataLabelShapeType.py +28 -0
- spire/presentation/charts/DisplayBlanksAsType.py +17 -0
- spire/presentation/charts/ErrorBarSimpleType.py +21 -0
- spire/presentation/charts/ErrorValueType.py +25 -0
- spire/presentation/charts/Geography.py +12 -0
- spire/presentation/charts/HistogramAxisFormat.py +26 -0
- spire/presentation/charts/IChart.py +905 -0
- spire/presentation/charts/IChartAxis.py +826 -0
- spire/presentation/charts/IChartEffectFormat.py +87 -0
- spire/presentation/charts/IChartGridLine.py +337 -0
- spire/presentation/charts/IErrorBarsFormat.py +128 -0
- spire/presentation/charts/ITrendlineLabel.py +73 -0
- spire/presentation/charts/ITrendlines.py +285 -0
- spire/presentation/charts/InteriorColorPattern.py +35 -0
- spire/presentation/charts/LayoutProperty.py +124 -0
- spire/presentation/charts/LegendEntry.py +30 -0
- spire/presentation/charts/LegendEntryCollection.py +52 -0
- spire/presentation/charts/PictureType.py +23 -0
- spire/presentation/charts/ProjectionType.py +22 -0
- spire/presentation/charts/QuartileCalculation.py +17 -0
- spire/presentation/charts/TickLabelPositionType.py +23 -0
- spire/presentation/charts/TickMarkType.py +23 -0
- spire/presentation/charts/TreeMapLabelOption.py +21 -0
- spire/presentation/charts/TrendlinesType.py +27 -0
- spire/presentation/charts/__init__.py +0 -0
- spire/presentation/collections/CommentAuthorCollection.py +60 -0
- spire/presentation/collections/CommentAuthorList.py +168 -0
- spire/presentation/collections/CommentCollection.py +44 -0
- spire/presentation/collections/CommentList.py +167 -0
- spire/presentation/collections/EffectDataCollection.py +101 -0
- spire/presentation/collections/EffectStyleCollection.py +73 -0
- spire/presentation/collections/EffectStyleList.py +69 -0
- spire/presentation/collections/EmbedImageList.py +121 -0
- spire/presentation/collections/FillFormatCollection.py +45 -0
- spire/presentation/collections/FillFormatList.py +13 -0
- spire/presentation/collections/FillListBase.py +78 -0
- spire/presentation/collections/FillStyleCollection.py +76 -0
- spire/presentation/collections/FillStyleList.py +32 -0
- spire/presentation/collections/GradientStopCollection.py +40 -0
- spire/presentation/collections/GradientStopDataCollection.py +76 -0
- spire/presentation/collections/GradientStopList.py +171 -0
- spire/presentation/collections/IMasterLayouts.py +78 -0
- spire/presentation/collections/ImageCollection.py +39 -0
- spire/presentation/collections/ImageTransformEffectCollection.py +39 -0
- spire/presentation/collections/LineStyleCollection.py +62 -0
- spire/presentation/collections/LineStyleList.py +79 -0
- spire/presentation/collections/MasterSlideCollection.py +40 -0
- spire/presentation/collections/MasterSlideList.py +140 -0
- spire/presentation/collections/OleObjectCollection.py +120 -0
- spire/presentation/collections/OleObjectProperties.py +154 -0
- spire/presentation/collections/ParagraphCollection.py +90 -0
- spire/presentation/collections/ParagraphList.py +195 -0
- spire/presentation/collections/ShapeAdjustCollection.py +57 -0
- spire/presentation/collections/ShapeAdjustmentList.py +43 -0
- spire/presentation/collections/ShapeList.py +1132 -0
- spire/presentation/collections/SlideCollection.py +56 -0
- spire/presentation/collections/SlideColorSchemeCollection.py +122 -0
- spire/presentation/collections/TabStopCollection.py +57 -0
- spire/presentation/collections/TabStopList.py +127 -0
- spire/presentation/collections/TagCollection.py +58 -0
- spire/presentation/collections/TagList.py +174 -0
- spire/presentation/collections/TextLineFormatCollection.py +43 -0
- spire/presentation/collections/TextLineFormatList.py +61 -0
- spire/presentation/collections/TextRangeCollection.py +60 -0
- spire/presentation/collections/TextRangeList.py +145 -0
- spire/presentation/collections/VideoCollection.py +112 -0
- spire/presentation/collections/WavAudioCollection.py +110 -0
- spire/presentation/collections/__init__.py +0 -0
- spire/presentation/common/Boolean.py +194 -0
- spire/presentation/common/Byte.py +258 -0
- spire/presentation/common/Char.py +742 -0
- spire/presentation/common/Color.py +2189 -0
- spire/presentation/common/Common.py +163 -0
- spire/presentation/common/CultureInfo.py +567 -0
- spire/presentation/common/DateTime.py +1163 -0
- spire/presentation/common/Double.py +440 -0
- spire/presentation/common/EmfType.py +25 -0
- spire/presentation/common/Encoding.py +930 -0
- spire/presentation/common/FontStyle.py +27 -0
- spire/presentation/common/GraphicsUnit.py +29 -0
- spire/presentation/common/ICollection.py +73 -0
- spire/presentation/common/IDictionary.py +124 -0
- spire/presentation/common/IEnumerable.py +44 -0
- spire/presentation/common/IEnumerator.py +62 -0
- spire/presentation/common/IList.py +148 -0
- spire/presentation/common/Int16.py +274 -0
- spire/presentation/common/Int32.py +282 -0
- spire/presentation/common/Int64.py +258 -0
- spire/presentation/common/License.py +187 -0
- spire/presentation/common/PixelFormat.py +45 -0
- spire/presentation/common/Point.py +300 -0
- spire/presentation/common/PointF.py +276 -0
- spire/presentation/common/Rectangle.py +451 -0
- spire/presentation/common/RectangleF.py +438 -0
- spire/presentation/common/Regex.py +964 -0
- spire/presentation/common/RegexOptions.py +31 -0
- spire/presentation/common/Single.py +418 -0
- spire/presentation/common/Size.py +273 -0
- spire/presentation/common/SizeF.py +261 -0
- spire/presentation/common/SpireObject.py +81 -0
- spire/presentation/common/Stream.py +552 -0
- spire/presentation/common/String.py +1880 -0
- spire/presentation/common/TimeSpan.py +874 -0
- spire/presentation/common/UInt16.py +274 -0
- spire/presentation/common/UInt32.py +274 -0
- spire/presentation/common/UInt64.py +274 -0
- spire/presentation/common/__init__.py +383 -0
- spire/presentation/diagrams/ISmartArt.py +142 -0
- spire/presentation/diagrams/ISmartArtNode.py +347 -0
- spire/presentation/diagrams/ISmartArtNodeCollection.py +196 -0
- spire/presentation/diagrams/SmartArtColorType.py +51 -0
- spire/presentation/diagrams/SmartArtLayoutType.py +99 -0
- spire/presentation/diagrams/SmartArtStyleType.py +43 -0
- spire/presentation/diagrams/__init__.py +0 -0
- spire/presentation/drawing/Backdrop.py +96 -0
- spire/presentation/drawing/BackgroundType.py +21 -0
- spire/presentation/drawing/BevelColorType.py +19 -0
- spire/presentation/drawing/BevelPresetType.py +41 -0
- spire/presentation/drawing/BlackWhiteMode.py +39 -0
- spire/presentation/drawing/BlendEffect.py +60 -0
- spire/presentation/drawing/BlendMode.py +27 -0
- spire/presentation/drawing/BlurNode.py +29 -0
- spire/presentation/drawing/ColorFormat.py +341 -0
- spire/presentation/drawing/ColorScheme.py +274 -0
- spire/presentation/drawing/ColorSchemeIndex.py +25 -0
- spire/presentation/drawing/ColorType.py +27 -0
- spire/presentation/drawing/EffectDag.py +200 -0
- spire/presentation/drawing/EffectFillType.py +25 -0
- spire/presentation/drawing/EffectNode.py +13 -0
- spire/presentation/drawing/EffectStyle.py +60 -0
- spire/presentation/drawing/ExtensionList.py +25 -0
- spire/presentation/drawing/FillFormat.py +195 -0
- spire/presentation/drawing/FillFormatType.py +29 -0
- spire/presentation/drawing/FillOverlayEffect.py +85 -0
- spire/presentation/drawing/FormatScheme.py +126 -0
- spire/presentation/drawing/FormatThreeD.py +91 -0
- spire/presentation/drawing/GlowEffect.py +67 -0
- spire/presentation/drawing/GlowNode.py +36 -0
- spire/presentation/drawing/GradientFillFormat.py +132 -0
- spire/presentation/drawing/GradientShapeType.py +25 -0
- spire/presentation/drawing/GradientStop.py +40 -0
- spire/presentation/drawing/GradientStopData.py +36 -0
- spire/presentation/drawing/GradientStyle.py +26 -0
- spire/presentation/drawing/GraphicFrame.py +185 -0
- spire/presentation/drawing/GraphicalNodeLocking.py +121 -0
- spire/presentation/drawing/IImageData.py +105 -0
- spire/presentation/drawing/ImageTransform.py +134 -0
- spire/presentation/drawing/ImageTransformBase.py +13 -0
- spire/presentation/drawing/InnerShadowEffect.py +95 -0
- spire/presentation/drawing/InnerShadowNode.py +55 -0
- spire/presentation/drawing/OuterShadowEffect.py +227 -0
- spire/presentation/drawing/OuterShadowNode.py +157 -0
- spire/presentation/drawing/PatternFillFormat.py +97 -0
- spire/presentation/drawing/PatternFillType.py +127 -0
- spire/presentation/drawing/PenAlignmentType.py +21 -0
- spire/presentation/drawing/PictureData.py +61 -0
- spire/presentation/drawing/PictureFillFormat.py +257 -0
- spire/presentation/drawing/PictureFillType.py +19 -0
- spire/presentation/drawing/PresetShadow.py +115 -0
- spire/presentation/drawing/PresetShadowNode.py +72 -0
- spire/presentation/drawing/ReflectionEffect.py +301 -0
- spire/presentation/drawing/ReflectionNode.py +197 -0
- spire/presentation/drawing/SchemeColor.py +32 -0
- spire/presentation/drawing/SoftEdgeEffect.py +48 -0
- spire/presentation/drawing/SoftEdgeNode.py +25 -0
- spire/presentation/drawing/__init__.py +0 -0
- spire/presentation/export/PdfConformanceLevel.py +30 -0
- spire/presentation/export/SaveToHtmlOption.py +37 -0
- spire/presentation/export/SaveToPdfOption.py +109 -0
- spire/presentation/export/SaveToPptxOption.py +37 -0
- spire/presentation/export/__init__.py +0 -0
- spire/presentation/lib/Spire.Presentation.Base.dylib +0 -0
- spire/presentation/lib/__init__.py +0 -0
- spire/presentation/lib/libSkiaSharp.dylib +0 -0
- spire/presentation/license/LicenseProvider.py +112 -0
- spire/presentation/license/__init__.py +0 -0
- spire/presentation/table/Cell.py +475 -0
- spire/presentation/table/CellCollection.py +158 -0
- spire/presentation/table/ColumnCollection.py +42 -0
- spire/presentation/table/ColumnList.py +119 -0
- spire/presentation/table/ITable.py +689 -0
- spire/presentation/table/RowList.py +126 -0
- spire/presentation/table/TableBorderType.py +39 -0
- spire/presentation/table/TableColumn.py +39 -0
- spire/presentation/table/TableRow.py +39 -0
- spire/presentation/table/TableRowCollection.py +45 -0
- spire/presentation/table/TableStylePreset.py +88 -0
- spire/presentation/table/__init__.py +0 -0
- spire/presentation/transition/BlindsSlideTransition.py +45 -0
- spire/presentation/transition/CoverSlideTransition.py +58 -0
- spire/presentation/transition/FlythroughTransition.py +51 -0
- spire/presentation/transition/GlitterTransition.py +49 -0
- spire/presentation/transition/GlitterTransitionDirection.py +31 -0
- spire/presentation/transition/InvXTransition.py +47 -0
- spire/presentation/transition/LRTransition.py +47 -0
- spire/presentation/transition/OptionalBlackTransition.py +52 -0
- spire/presentation/transition/RevealTransition.py +51 -0
- spire/presentation/transition/ShredTransition.py +52 -0
- spire/presentation/transition/SideDirectionTransition.py +50 -0
- spire/presentation/transition/SlideShowTransition.py +262 -0
- spire/presentation/transition/SplitSlideTransition.py +53 -0
- spire/presentation/transition/StripsSlideTransition.py +52 -0
- spire/presentation/transition/Transition.py +33 -0
- spire/presentation/transition/TransitionCornerDirection.py +25 -0
- spire/presentation/transition/TransitionDirection.py +21 -0
- spire/presentation/transition/TransitionEightDirection.py +33 -0
- spire/presentation/transition/TransitionFlythroughInOutDirection.py +23 -0
- spire/presentation/transition/TransitionInOutDirection.py +21 -0
- spire/presentation/transition/TransitionRevealLRDirection.py +23 -0
- spire/presentation/transition/TransitionShredInOutDirection.py +23 -0
- spire/presentation/transition/TransitionSideDirectionType.py +23 -0
- spire/presentation/transition/TransitionSoundMode.py +21 -0
- spire/presentation/transition/TransitionSpeed.py +23 -0
- spire/presentation/transition/TransitionSplitDirection.py +23 -0
- spire/presentation/transition/TransitionTwoDirection.py +19 -0
- spire/presentation/transition/TransitionType.py +127 -0
- spire/presentation/transition/WheelSlideTransition.py +46 -0
- spire/presentation/transition/ZoomSlideTransition.py +48 -0
- spire/presentation/transition/__init__.py +0 -0
- spire_presentation-11.2.0.dist-info/METADATA +138 -0
- spire_presentation-11.2.0.dist-info/RECORD +440 -0
- spire_presentation-11.2.0.dist-info/WHEEL +5 -0
- spire_presentation-11.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1389 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
from spire.presentation.common import *
|
|
5
|
+
from spire.presentation import *
|
|
6
|
+
from spire.presentation import _Presentation
|
|
7
|
+
from ctypes import *
|
|
8
|
+
import abc
|
|
9
|
+
|
|
10
|
+
class Presentation (_Presentation) :
|
|
11
|
+
"""
|
|
12
|
+
Represents a PowerPoint presentation document. Provides comprehensive functionality
|
|
13
|
+
for creating, loading, manipulating, saving, and presenting slideshow documents.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
@dispatch
|
|
17
|
+
def __init__(self):
|
|
18
|
+
"""
|
|
19
|
+
Initializes a new empty Presentation instance.
|
|
20
|
+
"""
|
|
21
|
+
GetDllLibPpt().Presentation_CreatePresentation.restype = c_void_p
|
|
22
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_CreatePresentation)
|
|
23
|
+
super(Presentation, self).__init__(intPtr)
|
|
24
|
+
def __del__(self):
|
|
25
|
+
"""
|
|
26
|
+
Destructor that releases resources associated with the Presentation instance.
|
|
27
|
+
"""
|
|
28
|
+
GetDllLibPpt().Presentation_Dispose.argtypes = [c_void_p]
|
|
29
|
+
CallCFunction(GetDllLibPpt().Presentation_Dispose,self.Ptr)
|
|
30
|
+
super(Presentation, self).__del__()
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
|
|
34
|
+
def SlideSize(self)->'SlideSize':
|
|
35
|
+
"""
|
|
36
|
+
Gets the current slide size configuration.
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
SlideSize: Object representing slide dimensions and orientation.
|
|
40
|
+
"""
|
|
41
|
+
GetDllLibPpt().Presentation_get_SlideSize.argtypes=[c_void_p]
|
|
42
|
+
GetDllLibPpt().Presentation_get_SlideSize.restype=c_void_p
|
|
43
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_SlideSize,self.Ptr)
|
|
44
|
+
ret = None if intPtr==None else SlideSize(intPtr)
|
|
45
|
+
return ret
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
|
|
50
|
+
def SectionList(self)->'SectionList':
|
|
51
|
+
"""
|
|
52
|
+
Gets the collection of sections organizing slides in the presentation.
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
SectionList: Collection of presentation sections.
|
|
56
|
+
"""
|
|
57
|
+
GetDllLibPpt().Presentation_get_SectionList.argtypes=[c_void_p]
|
|
58
|
+
GetDllLibPpt().Presentation_get_SectionList.restype=c_void_p
|
|
59
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_SectionList,self.Ptr)
|
|
60
|
+
ret = None if intPtr==None else SectionList(intPtr)
|
|
61
|
+
return ret
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def SetPageSize(self ,w:float,h:float,IsRatio:bool):
|
|
66
|
+
"""
|
|
67
|
+
Configures the page/slide dimensions.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
w: Width value or width ratio
|
|
71
|
+
h: Height value or height ratio
|
|
72
|
+
IsRatio: True if values represent ratios, False for absolute units
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
GetDllLibPpt().Presentation_SetPageSize.argtypes=[c_void_p ,c_float,c_float,c_bool]
|
|
76
|
+
CallCFunction(GetDllLibPpt().Presentation_SetPageSize,self.Ptr, w,h,IsRatio)
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def StrictFirstAndLastCharacters(self)->bool:
|
|
80
|
+
"""
|
|
81
|
+
Gets or sets whether to use strict typography rules for first/last characters.
|
|
82
|
+
|
|
83
|
+
This property controls typographic rules regarding line breaks and character positioning.
|
|
84
|
+
"""
|
|
85
|
+
GetDllLibPpt().Presentation_get_StrictFirstAndLastCharacters.argtypes=[c_void_p]
|
|
86
|
+
GetDllLibPpt().Presentation_get_StrictFirstAndLastCharacters.restype=c_bool
|
|
87
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_StrictFirstAndLastCharacters,self.Ptr)
|
|
88
|
+
return ret
|
|
89
|
+
|
|
90
|
+
@StrictFirstAndLastCharacters.setter
|
|
91
|
+
def StrictFirstAndLastCharacters(self, value:bool):
|
|
92
|
+
GetDllLibPpt().Presentation_set_StrictFirstAndLastCharacters.argtypes=[c_void_p, c_bool]
|
|
93
|
+
CallCFunction(GetDllLibPpt().Presentation_set_StrictFirstAndLastCharacters,self.Ptr, value)
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
|
|
97
|
+
def WavAudios(self)->'WavAudioCollection':
|
|
98
|
+
"""
|
|
99
|
+
Gets the collection of all embedded audio files in the presentation.
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
WavAudioCollection: Collection of audio objects.
|
|
103
|
+
"""
|
|
104
|
+
GetDllLibPpt().Presentation_get_WavAudios.argtypes=[c_void_p]
|
|
105
|
+
GetDllLibPpt().Presentation_get_WavAudios.restype=c_void_p
|
|
106
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_WavAudios,self.Ptr)
|
|
107
|
+
ret = None if intPtr==None else WavAudioCollection(intPtr)
|
|
108
|
+
return ret
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
|
|
113
|
+
def Videos(self)->'VideoCollection':
|
|
114
|
+
"""
|
|
115
|
+
Gets the collection of all embedded video files in the presentation.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
VideoCollection: Collection of video objects.
|
|
119
|
+
"""
|
|
120
|
+
GetDllLibPpt().Presentation_get_Videos.argtypes=[c_void_p]
|
|
121
|
+
GetDllLibPpt().Presentation_get_Videos.restype=c_void_p
|
|
122
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_Videos,self.Ptr)
|
|
123
|
+
ret = None if intPtr==None else VideoCollection(intPtr)
|
|
124
|
+
return ret
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
|
|
129
|
+
def TagsList(self)->'TagCollection':
|
|
130
|
+
"""
|
|
131
|
+
Gets the collection of document tags/metadata.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
TagCollection: Collection of tag objects.
|
|
135
|
+
"""
|
|
136
|
+
GetDllLibPpt().Presentation_get_TagsList.argtypes=[c_void_p]
|
|
137
|
+
GetDllLibPpt().Presentation_get_TagsList.restype=c_void_p
|
|
138
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_TagsList,self.Ptr)
|
|
139
|
+
ret = None if intPtr==None else TagCollection(intPtr)
|
|
140
|
+
return ret
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
|
|
145
|
+
def Images(self)->'ImageCollection':
|
|
146
|
+
"""
|
|
147
|
+
Gets the collection of all images used in the presentation.
|
|
148
|
+
|
|
149
|
+
Returns:
|
|
150
|
+
ImageCollection: Collection of image objects.
|
|
151
|
+
"""
|
|
152
|
+
GetDllLibPpt().Presentation_get_Images.argtypes=[c_void_p]
|
|
153
|
+
GetDllLibPpt().Presentation_get_Images.restype=c_void_p
|
|
154
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_Images,self.Ptr)
|
|
155
|
+
ret = None if intPtr==None else ImageCollection(intPtr)
|
|
156
|
+
return ret
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
|
|
161
|
+
def DocumentProperty(self)->'IDocumentProperty':
|
|
162
|
+
"""
|
|
163
|
+
Gets standard and custom document properties.
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
IDocumentProperty: Interface for accessing document properties.
|
|
167
|
+
"""
|
|
168
|
+
GetDllLibPpt().Presentation_get_DocumentProperty.argtypes=[c_void_p]
|
|
169
|
+
GetDllLibPpt().Presentation_get_DocumentProperty.restype=c_void_p
|
|
170
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_DocumentProperty,self.Ptr)
|
|
171
|
+
ret = None if intPtr==None else IDocumentProperty(intPtr)
|
|
172
|
+
return ret
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
|
|
177
|
+
def CommentAuthors(self)->'CommentAuthorCollection':
|
|
178
|
+
"""
|
|
179
|
+
Gets the collection of comment authors in the presentation.
|
|
180
|
+
|
|
181
|
+
Returns:
|
|
182
|
+
CommentAuthorCollection: Collection of comment author objects.
|
|
183
|
+
"""
|
|
184
|
+
GetDllLibPpt().Presentation_get_CommentAuthors.argtypes=[c_void_p]
|
|
185
|
+
GetDllLibPpt().Presentation_get_CommentAuthors.restype=c_void_p
|
|
186
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_CommentAuthors,self.Ptr)
|
|
187
|
+
ret = None if intPtr==None else CommentAuthorCollection(intPtr)
|
|
188
|
+
return ret
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def DFlag(self)->bool:
|
|
193
|
+
"""
|
|
194
|
+
Gets or sets the document flag status (internal use).
|
|
195
|
+
|
|
196
|
+
This property is used internally for document state tracking.
|
|
197
|
+
"""
|
|
198
|
+
GetDllLibPpt().Presentation_get_DFlag.argtypes=[c_void_p]
|
|
199
|
+
GetDllLibPpt().Presentation_get_DFlag.restype=c_bool
|
|
200
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_DFlag,self.Ptr)
|
|
201
|
+
return ret
|
|
202
|
+
|
|
203
|
+
@DFlag.setter
|
|
204
|
+
def DFlag(self, value:bool):
|
|
205
|
+
GetDllLibPpt().Presentation_set_DFlag.argtypes=[c_void_p, c_bool]
|
|
206
|
+
CallCFunction(GetDllLibPpt().Presentation_set_DFlag,self.Ptr, value)
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
|
|
210
|
+
def FormatAndVersion(self)->'FormatAndVersion':
|
|
211
|
+
"""
|
|
212
|
+
Gets the file format and version of the presentation (read-only).
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
FormatAndVersion: Enumeration value representing file format and version.
|
|
216
|
+
"""
|
|
217
|
+
GetDllLibPpt().Presentation_get_FormatAndVersion.argtypes=[c_void_p]
|
|
218
|
+
GetDllLibPpt().Presentation_get_FormatAndVersion.restype=c_int
|
|
219
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_FormatAndVersion,self.Ptr)
|
|
220
|
+
objwraped = FormatAndVersion(ret)
|
|
221
|
+
return objwraped
|
|
222
|
+
|
|
223
|
+
#
|
|
224
|
+
# def AddDigitalSignature(self ,certificate:'X509Certificate2',comments:str,signTime:'DateTime')->'IDigitalSignatures':
|
|
225
|
+
# """
|
|
226
|
+
# <summary>
|
|
227
|
+
# Add a DigitalSignature.
|
|
228
|
+
# </summary>
|
|
229
|
+
# <param name="certificate">Certificate object that was used to sign</param>
|
|
230
|
+
# <param name="comments">Signature Comments</param>
|
|
231
|
+
# <param name="signTime">Sign Time</param>
|
|
232
|
+
# <returns>Collection of DigitalSignature</returns>
|
|
233
|
+
# """
|
|
234
|
+
# intPtrcertificate:c_void_p = certificate.Ptr
|
|
235
|
+
# intPtrsignTime:c_void_p = signTime.Ptr
|
|
236
|
+
#
|
|
237
|
+
# GetDllLibPpt().Presentation_AddDigitalSignature.argtypes=[c_void_p ,c_void_p,c_wchar_p,c_void_p]
|
|
238
|
+
# GetDllLibPpt().Presentation_AddDigitalSignature.restype=c_void_p
|
|
239
|
+
# intPtr = CallCFunction(GetDllLibPpt().Presentation_AddDigitalSignature,self.Ptr, intPtrcertificate,comments,intPtrsignTime)
|
|
240
|
+
# ret = None if intPtr==None else IDigitalSignatures(intPtr)
|
|
241
|
+
# return ret
|
|
242
|
+
#
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
def GetDigitalSignatures(self)->'IDigitalSignatures':
|
|
247
|
+
"""
|
|
248
|
+
Gets the collection of digital signatures applied to the document.
|
|
249
|
+
|
|
250
|
+
Returns:
|
|
251
|
+
IDigitalSignatures: Collection of digital signature objects.
|
|
252
|
+
"""
|
|
253
|
+
GetDllLibPpt().Presentation_GetDigitalSignatures.argtypes=[c_void_p]
|
|
254
|
+
GetDllLibPpt().Presentation_GetDigitalSignatures.restype=c_void_p
|
|
255
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_GetDigitalSignatures,self.Ptr)
|
|
256
|
+
ret = None if intPtr==None else IDigitalSignatures(intPtr)
|
|
257
|
+
return ret
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def RemoveAllDigitalSignatures(self):
|
|
261
|
+
"""
|
|
262
|
+
Removes all digital signatures from the document.
|
|
263
|
+
"""
|
|
264
|
+
GetDllLibPpt().Presentation_RemoveAllDigitalSignatures.argtypes=[c_void_p]
|
|
265
|
+
CallCFunction(GetDllLibPpt().Presentation_RemoveAllDigitalSignatures,self.Ptr)
|
|
266
|
+
|
|
267
|
+
@property
|
|
268
|
+
def IsDigitallySigned(self)->bool:
|
|
269
|
+
"""
|
|
270
|
+
Indicates whether the presentation contains digital signatures.
|
|
271
|
+
|
|
272
|
+
Returns:
|
|
273
|
+
bool: True if digitally signed, False otherwise.
|
|
274
|
+
"""
|
|
275
|
+
GetDllLibPpt().Presentation_get_IsDigitallySigned.argtypes=[c_void_p]
|
|
276
|
+
GetDllLibPpt().Presentation_get_IsDigitallySigned.restype=c_bool
|
|
277
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_IsDigitallySigned,self.Ptr)
|
|
278
|
+
return ret
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def SetCustomFontsFolder(self ,fontsFolder:str):
|
|
282
|
+
"""
|
|
283
|
+
Sets the folder path for custom fonts used in the presentation.
|
|
284
|
+
|
|
285
|
+
Args:
|
|
286
|
+
fontsFolder: Path to the folder containing custom fonts
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
fontsFolderPtr = StrToPtr(fontsFolder)
|
|
290
|
+
GetDllLibPpt().Presentation_SetCustomFontsFolder.argtypes=[c_void_p ,c_char_p]
|
|
291
|
+
CallCFunction(GetDllLibPpt().Presentation_SetCustomFontsFolder,self.Ptr,fontsFolderPtr)
|
|
292
|
+
|
|
293
|
+
@dispatch
|
|
294
|
+
|
|
295
|
+
def IsPasswordProtected(self ,fileName:str)->bool:
|
|
296
|
+
"""
|
|
297
|
+
Determines if a file is password protected.
|
|
298
|
+
|
|
299
|
+
Args:
|
|
300
|
+
fileName: Path to the file to check
|
|
301
|
+
|
|
302
|
+
Returns:
|
|
303
|
+
bool: True if password protected, False otherwise
|
|
304
|
+
"""
|
|
305
|
+
|
|
306
|
+
fileNamePtr = StrToPtr(fileName)
|
|
307
|
+
GetDllLibPpt().Presentation_IsPasswordProtected.argtypes=[c_void_p ,c_char_p]
|
|
308
|
+
GetDllLibPpt().Presentation_IsPasswordProtected.restype=c_bool
|
|
309
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_IsPasswordProtected,self.Ptr,fileNamePtr)
|
|
310
|
+
return ret
|
|
311
|
+
|
|
312
|
+
@dispatch
|
|
313
|
+
|
|
314
|
+
def IsPasswordProtected(self ,stream:Stream)->bool:
|
|
315
|
+
"""
|
|
316
|
+
Determines if a stream contains a password protected presentation.
|
|
317
|
+
|
|
318
|
+
Args:
|
|
319
|
+
stream: Input stream containing presentation data
|
|
320
|
+
|
|
321
|
+
Returns:
|
|
322
|
+
bool: True if password protected, False otherwise
|
|
323
|
+
"""
|
|
324
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
325
|
+
|
|
326
|
+
GetDllLibPpt().Presentation_IsPasswordProtectedS.argtypes=[c_void_p ,c_void_p]
|
|
327
|
+
GetDllLibPpt().Presentation_IsPasswordProtectedS.restype=c_bool
|
|
328
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_IsPasswordProtectedS,self.Ptr, intPtrstream)
|
|
329
|
+
return ret
|
|
330
|
+
|
|
331
|
+
@property
|
|
332
|
+
def HighQualityImage(self)->bool:
|
|
333
|
+
"""
|
|
334
|
+
Gets or sets whether to use high-quality image rendering.
|
|
335
|
+
|
|
336
|
+
When True, images will be rendered at higher quality at the cost of performance.
|
|
337
|
+
"""
|
|
338
|
+
GetDllLibPpt().Presentation_get_HighQualityImage.argtypes=[c_void_p]
|
|
339
|
+
GetDllLibPpt().Presentation_get_HighQualityImage.restype=c_bool
|
|
340
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_HighQualityImage,self.Ptr)
|
|
341
|
+
return ret
|
|
342
|
+
|
|
343
|
+
@HighQualityImage.setter
|
|
344
|
+
def HighQualityImage(self, value:bool):
|
|
345
|
+
GetDllLibPpt().Presentation_set_HighQualityImage.argtypes=[c_void_p, c_bool]
|
|
346
|
+
CallCFunction(GetDllLibPpt().Presentation_set_HighQualityImage,self.Ptr, value)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
def SlideSizeAutoFit(self, value:bool):
|
|
350
|
+
"""
|
|
351
|
+
Enables or disables automatic slide size fitting.
|
|
352
|
+
|
|
353
|
+
Args:
|
|
354
|
+
value: True to enable auto-fitting, False to disable
|
|
355
|
+
"""
|
|
356
|
+
GetDllLibPpt().Presentation_set_SlideSizeAutoFit.argtypes=[c_void_p, c_bool]
|
|
357
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SlideSizeAutoFit,self.Ptr, value)
|
|
358
|
+
|
|
359
|
+
def Dispose(self):
|
|
360
|
+
"""
|
|
361
|
+
Releases all resources used by the Presentation object.
|
|
362
|
+
"""
|
|
363
|
+
GetDllLibPpt().Presentation_Dispose.argtypes=[c_void_p]
|
|
364
|
+
CallCFunction(GetDllLibPpt().Presentation_Dispose,self.Ptr)
|
|
365
|
+
|
|
366
|
+
@property
|
|
367
|
+
|
|
368
|
+
def SaveToPdfOption(self)->'SaveToPdfOption':
|
|
369
|
+
"""
|
|
370
|
+
Gets or sets options for saving to PDF format.
|
|
371
|
+
|
|
372
|
+
Returns:
|
|
373
|
+
SaveToPdfOption: Configuration object for PDF export.
|
|
374
|
+
"""
|
|
375
|
+
GetDllLibPpt().Presentation_get_SaveToPdfOption.argtypes=[c_void_p]
|
|
376
|
+
GetDllLibPpt().Presentation_get_SaveToPdfOption.restype=c_void_p
|
|
377
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_SaveToPdfOption,self.Ptr)
|
|
378
|
+
ret = None if intPtr==None else SaveToPdfOption(intPtr)
|
|
379
|
+
return ret
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
@SaveToPdfOption.setter
|
|
383
|
+
def SaveToPdfOption(self, value:'SaveToPdfOption'):
|
|
384
|
+
GetDllLibPpt().Presentation_set_SaveToPdfOption.argtypes=[c_void_p, c_void_p]
|
|
385
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SaveToPdfOption,self.Ptr, value.Ptr)
|
|
386
|
+
|
|
387
|
+
@property
|
|
388
|
+
|
|
389
|
+
def SaveToHtmlOption(self)->'SaveToHtmlOption':
|
|
390
|
+
"""
|
|
391
|
+
Gets or sets options for saving to HTML format.
|
|
392
|
+
|
|
393
|
+
Returns:
|
|
394
|
+
SaveToHtmlOption: Configuration object for HTML export.
|
|
395
|
+
"""
|
|
396
|
+
GetDllLibPpt().Presentation_get_SaveToHtmlOption.argtypes=[c_void_p]
|
|
397
|
+
GetDllLibPpt().Presentation_get_SaveToHtmlOption.restype=c_void_p
|
|
398
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_SaveToHtmlOption,self.Ptr)
|
|
399
|
+
ret = None if intPtr==None else SaveToHtmlOption(intPtr)
|
|
400
|
+
return ret
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
@SaveToHtmlOption.setter
|
|
404
|
+
def SaveToHtmlOption(self, value:'SaveToHtmlOption'):
|
|
405
|
+
GetDllLibPpt().Presentation_set_SaveToHtmlOption.argtypes=[c_void_p, c_void_p]
|
|
406
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SaveToHtmlOption,self.Ptr, value.Ptr)
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
|
|
410
|
+
def SaveToPptxOption(self)->'SaveToPptxOption':
|
|
411
|
+
"""
|
|
412
|
+
Gets or sets options for saving to PPTX format.
|
|
413
|
+
|
|
414
|
+
Returns:
|
|
415
|
+
SaveToPptxOption: Configuration object for PPTX export.
|
|
416
|
+
"""
|
|
417
|
+
GetDllLibPpt().Presentation_get_SaveToPptxOption.argtypes=[c_void_p]
|
|
418
|
+
GetDllLibPpt().Presentation_get_SaveToPptxOption.restype=c_void_p
|
|
419
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_SaveToPptxOption,self.Ptr)
|
|
420
|
+
ret = None if intPtr==None else SaveToPptxOption(intPtr)
|
|
421
|
+
return ret
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
@SaveToPptxOption.setter
|
|
425
|
+
def SaveToPptxOption(self, value:'SaveToPptxOption'):
|
|
426
|
+
GetDllLibPpt().Presentation_set_SaveToPptxOption.argtypes=[c_void_p, c_void_p]
|
|
427
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SaveToPptxOption,self.Ptr, value.Ptr)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def FindSlide(self ,id:int)->'ISlide':
|
|
431
|
+
"""
|
|
432
|
+
Finds a slide by its unique identifier.
|
|
433
|
+
|
|
434
|
+
Args:
|
|
435
|
+
id: Slide identifier to locate
|
|
436
|
+
|
|
437
|
+
Returns:
|
|
438
|
+
ISlide: Found slide object or None if not found
|
|
439
|
+
"""
|
|
440
|
+
|
|
441
|
+
GetDllLibPpt().Presentation_FindSlide.argtypes=[c_void_p ,c_int]
|
|
442
|
+
GetDllLibPpt().Presentation_FindSlide.restype=c_void_p
|
|
443
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_FindSlide,self.Ptr, id)
|
|
444
|
+
ret = None if intPtr==None else ISlide(intPtr)
|
|
445
|
+
return ret
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
#
|
|
449
|
+
# def GetBytes(self)->List['Byte']:
|
|
450
|
+
# """
|
|
451
|
+
# <summary>
|
|
452
|
+
# Converts the document to an array of bytes.
|
|
453
|
+
# </summary>
|
|
454
|
+
# <returns>An array of bytes.</returns>
|
|
455
|
+
# """
|
|
456
|
+
# GetDllLibPpt().Presentation_GetBytes.argtypes=[c_void_p]
|
|
457
|
+
# GetDllLibPpt().Presentation_GetBytes.restype=IntPtrArray
|
|
458
|
+
# intPtrArray = CallCFunction(GetDllLibPpt().Presentation_GetBytes,self.Ptr)
|
|
459
|
+
# ret = GetVectorFromArray(intPtrArray, Byte)
|
|
460
|
+
# return ret
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
def GetStream(self)->'Stream':
|
|
465
|
+
"""
|
|
466
|
+
Gets the presentation content as a readable stream.
|
|
467
|
+
|
|
468
|
+
Returns:
|
|
469
|
+
Stream: Readable stream containing presentation data
|
|
470
|
+
"""
|
|
471
|
+
GetDllLibPpt().Presentation_GetStream.argtypes=[c_void_p]
|
|
472
|
+
GetDllLibPpt().Presentation_GetStream.restype=c_void_p
|
|
473
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_GetStream,self.Ptr)
|
|
474
|
+
ret = None if intPtr==None else Stream(intPtr)
|
|
475
|
+
return ret
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
@dispatch
|
|
479
|
+
|
|
480
|
+
def LoadFromStream(self ,stream:Stream,fileFormat:FileFormat):
|
|
481
|
+
"""
|
|
482
|
+
Loads presentation content from a stream.
|
|
483
|
+
|
|
484
|
+
Args:
|
|
485
|
+
stream: Stream containing presentation data
|
|
486
|
+
fileFormat: Format of the presentation data
|
|
487
|
+
"""
|
|
488
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
489
|
+
enumfileFormat:c_int = fileFormat.value
|
|
490
|
+
|
|
491
|
+
GetDllLibPpt().Presentation_LoadFromStream.argtypes=[c_void_p ,c_void_p,c_int]
|
|
492
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromStream,self.Ptr, intPtrstream,enumfileFormat)
|
|
493
|
+
|
|
494
|
+
@dispatch
|
|
495
|
+
|
|
496
|
+
def LoadFromStream(self ,stream:Stream,fileFormat:FileFormat,password:str):
|
|
497
|
+
"""
|
|
498
|
+
Loads password-protected presentation content from a stream.
|
|
499
|
+
|
|
500
|
+
Args:
|
|
501
|
+
stream: Stream containing presentation data
|
|
502
|
+
fileFormat: Format of the presentation data
|
|
503
|
+
password: Password to unlock the presentation
|
|
504
|
+
"""
|
|
505
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
506
|
+
enumfileFormat:c_int = fileFormat.value
|
|
507
|
+
|
|
508
|
+
passwordPtr = StrToPtr(password)
|
|
509
|
+
GetDllLibPpt().Presentation_LoadFromStreamSFP.argtypes=[c_void_p ,c_void_p,c_int,c_char_p]
|
|
510
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromStreamSFP,self.Ptr, intPtrstream,enumfileFormat,passwordPtr)
|
|
511
|
+
|
|
512
|
+
@dispatch
|
|
513
|
+
|
|
514
|
+
def LoadFromFile(self ,file:str):
|
|
515
|
+
"""
|
|
516
|
+
Loads presentation content from a file.
|
|
517
|
+
|
|
518
|
+
Args:
|
|
519
|
+
file: Path to the presentation file
|
|
520
|
+
"""
|
|
521
|
+
filePtr = StrToPtr(file)
|
|
522
|
+
GetDllLibPpt().Presentation_LoadFromFile.argtypes=[c_void_p ,c_char_p]
|
|
523
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromFile,self.Ptr,filePtr)
|
|
524
|
+
|
|
525
|
+
@dispatch
|
|
526
|
+
|
|
527
|
+
def LoadFromFile(self ,file:str,password:str):
|
|
528
|
+
"""
|
|
529
|
+
Loads password-protected presentation content from a file.
|
|
530
|
+
|
|
531
|
+
Args:
|
|
532
|
+
file: Path to the presentation file
|
|
533
|
+
password: Password to unlock the presentation
|
|
534
|
+
"""
|
|
535
|
+
|
|
536
|
+
filePtr = StrToPtr(file)
|
|
537
|
+
passwordPtr = StrToPtr(password)
|
|
538
|
+
GetDllLibPpt().Presentation_LoadFromFileFP.argtypes=[c_void_p ,c_char_p,c_char_p]
|
|
539
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromFileFP,self.Ptr,filePtr,passwordPtr)
|
|
540
|
+
|
|
541
|
+
@dispatch
|
|
542
|
+
|
|
543
|
+
def LoadFromFile(self ,file:str,fileFormat:FileFormat):
|
|
544
|
+
"""
|
|
545
|
+
Loads presentation content from a file with specific format.
|
|
546
|
+
|
|
547
|
+
Args:
|
|
548
|
+
file: Path to the presentation file
|
|
549
|
+
fileFormat: Format of the presentation file
|
|
550
|
+
"""
|
|
551
|
+
enumfileFormat:c_int = fileFormat.value
|
|
552
|
+
|
|
553
|
+
filePtr = StrToPtr(file)
|
|
554
|
+
GetDllLibPpt().Presentation_LoadFromFileFF.argtypes=[c_void_p ,c_char_p,c_int]
|
|
555
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromFileFF,self.Ptr,filePtr,enumfileFormat)
|
|
556
|
+
|
|
557
|
+
@dispatch
|
|
558
|
+
|
|
559
|
+
def LoadFromFile(self ,file:str,fileFormat:FileFormat,password:str):
|
|
560
|
+
"""
|
|
561
|
+
Loads password-protected presentation content from a file with specific format.
|
|
562
|
+
|
|
563
|
+
Args:
|
|
564
|
+
file: Path to the presentation file
|
|
565
|
+
fileFormat: Format of the presentation file
|
|
566
|
+
password: Password to unlock the presentation
|
|
567
|
+
"""
|
|
568
|
+
enumfileFormat:c_int = fileFormat.value
|
|
569
|
+
|
|
570
|
+
filePtr = StrToPtr(file)
|
|
571
|
+
passwordPtr = StrToPtr(password)
|
|
572
|
+
GetDllLibPpt().Presentation_LoadFromFileFFP.argtypes=[c_void_p ,c_char_p,c_int,c_char_p]
|
|
573
|
+
CallCFunction(GetDllLibPpt().Presentation_LoadFromFileFFP,self.Ptr,filePtr,enumfileFormat,passwordPtr)
|
|
574
|
+
|
|
575
|
+
@dispatch
|
|
576
|
+
|
|
577
|
+
def SaveToFile(self ,stream:Stream,fileFormat:FileFormat):
|
|
578
|
+
"""
|
|
579
|
+
Saves the presentation to a stream.
|
|
580
|
+
|
|
581
|
+
Args:
|
|
582
|
+
stream: Output stream to write presentation data
|
|
583
|
+
fileFormat: Format to save the presentation in
|
|
584
|
+
"""
|
|
585
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
586
|
+
enumfileFormat:c_int = fileFormat.value
|
|
587
|
+
|
|
588
|
+
GetDllLibPpt().Presentation_SaveToFile.argtypes=[c_void_p ,c_void_p,c_int]
|
|
589
|
+
CallCFunction(GetDllLibPpt().Presentation_SaveToFile,self.Ptr, intPtrstream,enumfileFormat)
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
def SaveToSVG(self)->List[Stream]:
|
|
593
|
+
"""
|
|
594
|
+
Saves the presentation as SVG images (one per slide).
|
|
595
|
+
|
|
596
|
+
Returns:
|
|
597
|
+
List[Stream]: Collection of streams containing SVG data for each slide
|
|
598
|
+
"""
|
|
599
|
+
GetDllLibPpt().Presentation_SaveToSVG.argtypes=[c_void_p]
|
|
600
|
+
GetDllLibPpt().Presentation_SaveToSVG.restype=IntPtrArray
|
|
601
|
+
intPtrArray = CallCFunction(GetDllLibPpt().Presentation_SaveToSVG,self.Ptr)
|
|
602
|
+
ret = GetObjVectorFromArray(intPtrArray,Stream)
|
|
603
|
+
return ret
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
def OnlineSaveToFile(self ,file:str,fileFormat:'FileFormat')->bool:
|
|
609
|
+
"""
|
|
610
|
+
Saves the presentation for online/cloud use.
|
|
611
|
+
|
|
612
|
+
Args:
|
|
613
|
+
file: Output file path
|
|
614
|
+
fileFormat: Format to save the presentation in
|
|
615
|
+
|
|
616
|
+
Returns:
|
|
617
|
+
bool: True if save succeeded, False otherwise
|
|
618
|
+
"""
|
|
619
|
+
enumfileFormat:c_int = fileFormat.value
|
|
620
|
+
|
|
621
|
+
filePtr = StrToPtr(file)
|
|
622
|
+
GetDllLibPpt().Presentation_OnlineSaveToFile.argtypes=[c_void_p ,c_char_p,c_int]
|
|
623
|
+
GetDllLibPpt().Presentation_OnlineSaveToFile.restype=c_bool
|
|
624
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_OnlineSaveToFile,self.Ptr,filePtr,enumfileFormat)
|
|
625
|
+
return ret
|
|
626
|
+
|
|
627
|
+
@dispatch
|
|
628
|
+
|
|
629
|
+
def SaveToFile(self ,file:str,fileFormat:FileFormat):
|
|
630
|
+
"""
|
|
631
|
+
Saves the presentation to a file.
|
|
632
|
+
|
|
633
|
+
Args:
|
|
634
|
+
file: Output file path
|
|
635
|
+
fileFormat: Format to save the presentation in
|
|
636
|
+
"""
|
|
637
|
+
enumfileFormat:c_int = fileFormat.value
|
|
638
|
+
|
|
639
|
+
filePtr = StrToPtr(file)
|
|
640
|
+
GetDllLibPpt().Presentation_SaveToFileFF.argtypes=[c_void_p ,c_char_p,c_int]
|
|
641
|
+
CallCFunction(GetDllLibPpt().Presentation_SaveToFileFF,self.Ptr,filePtr,enumfileFormat)
|
|
642
|
+
|
|
643
|
+
# @dispatch
|
|
644
|
+
#
|
|
645
|
+
# def SaveToHttpResponse(self ,FileName:str,fileFormat:FileFormat,response:'HttpResponse'):
|
|
646
|
+
# """
|
|
647
|
+
# <summary>
|
|
648
|
+
# Save Presation to the http response.
|
|
649
|
+
# </summary>
|
|
650
|
+
# <param name="FileName">File Name</param>
|
|
651
|
+
# <param name="response">Http response</param>
|
|
652
|
+
# <param name="saveType">Save type : attachment or inline mode</param>
|
|
653
|
+
# """
|
|
654
|
+
# enumfileFormat:c_int = fileFormat.value
|
|
655
|
+
# intPtrresponse:c_void_p = response.Ptr
|
|
656
|
+
#
|
|
657
|
+
# GetDllLibPpt().Presentation_SaveToHttpResponse.argtypes=[c_void_p ,c_wchar_p,c_int,c_void_p]
|
|
658
|
+
# CallCFunction(GetDllLibPpt().Presentation_SaveToHttpResponse,self.Ptr, FileName,enumfileFormat,intPtrresponse)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
# @dispatch
|
|
662
|
+
#
|
|
663
|
+
# def SaveToHttpResponse(self ,FileName:str,fileFormat:FileFormat,response:'HttpResponse',isInlineMode:bool):
|
|
664
|
+
# """
|
|
665
|
+
# <summary>
|
|
666
|
+
# Save Presation to the http response.
|
|
667
|
+
# </summary>
|
|
668
|
+
# <param name="FileName">File name</param>
|
|
669
|
+
# <param name="response">Http response.</param>
|
|
670
|
+
# <param name="isInlineMode">True - inline mode, False - Attachment mode.</param>
|
|
671
|
+
# """
|
|
672
|
+
# enumfileFormat:c_int = fileFormat.value
|
|
673
|
+
# intPtrresponse:c_void_p = response.Ptr
|
|
674
|
+
#
|
|
675
|
+
# GetDllLibPpt().Presentation_SaveToHttpResponseFFRI.argtypes=[c_void_p ,c_wchar_p,c_int,c_void_p,c_bool]
|
|
676
|
+
# CallCFunction(GetDllLibPpt().Presentation_SaveToHttpResponseFFRI,self.Ptr, FileName,enumfileFormat,intPtrresponse,isInlineMode)
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
def Encrypt(self ,password:str):
|
|
681
|
+
"""
|
|
682
|
+
Encrypts the presentation with a password.
|
|
683
|
+
|
|
684
|
+
Args:
|
|
685
|
+
password: Encryption password
|
|
686
|
+
"""
|
|
687
|
+
|
|
688
|
+
passwordPtr = StrToPtr(password)
|
|
689
|
+
GetDllLibPpt().Presentation_Encrypt.argtypes=[c_void_p ,c_char_p]
|
|
690
|
+
CallCFunction(GetDllLibPpt().Presentation_Encrypt,self.Ptr,passwordPtr)
|
|
691
|
+
|
|
692
|
+
def RemoveEncryption(self):
|
|
693
|
+
"""
|
|
694
|
+
Removes encryption from the presentation.
|
|
695
|
+
"""
|
|
696
|
+
GetDllLibPpt().Presentation_RemoveEncryption.argtypes=[c_void_p]
|
|
697
|
+
CallCFunction(GetDllLibPpt().Presentation_RemoveEncryption,self.Ptr)
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
def Protect(self ,password:str):
|
|
701
|
+
"""
|
|
702
|
+
Protects the presentation from modification.
|
|
703
|
+
|
|
704
|
+
Args:
|
|
705
|
+
password: Protection password
|
|
706
|
+
"""
|
|
707
|
+
passwordPtr = StrToPtr(password)
|
|
708
|
+
GetDllLibPpt().Presentation_Protect.argtypes=[c_void_p ,c_char_p]
|
|
709
|
+
CallCFunction(GetDllLibPpt().Presentation_Protect,self.Ptr,passwordPtr)
|
|
710
|
+
|
|
711
|
+
def RemoveProtect(self):
|
|
712
|
+
"""
|
|
713
|
+
Removes protection from the presentation.
|
|
714
|
+
"""
|
|
715
|
+
GetDllLibPpt().Presentation_RemoveProtect.argtypes=[c_void_p]
|
|
716
|
+
CallCFunction(GetDllLibPpt().Presentation_RemoveProtect,self.Ptr)
|
|
717
|
+
|
|
718
|
+
#@dispatch
|
|
719
|
+
|
|
720
|
+
#def Print(self ,presentationPrintDocument:PresentationPrintDocument):
|
|
721
|
+
# """
|
|
722
|
+
|
|
723
|
+
# """
|
|
724
|
+
# intPtrpresentationPrintDocument:c_void_p = presentationPrintDocument.Ptr
|
|
725
|
+
|
|
726
|
+
# GetDllLibPpt().Presentation_Print.argtypes=[c_void_p ,c_void_p]
|
|
727
|
+
# CallCFunction(GetDllLibPpt().Presentation_Print,self.Ptr, intPtrpresentationPrintDocument)
|
|
728
|
+
|
|
729
|
+
# @dispatch
|
|
730
|
+
#
|
|
731
|
+
# def Print(self ,printerSettings:'PrinterSettings'):
|
|
732
|
+
# """
|
|
733
|
+
# <summary>
|
|
734
|
+
# Prints the presentation according to the specified printer settings.
|
|
735
|
+
# </summary>
|
|
736
|
+
# <param name="printerSettings">Printer settings to use.</param>
|
|
737
|
+
# """
|
|
738
|
+
# intPtrprinterSettings:c_void_p = printerSettings.Ptr
|
|
739
|
+
#
|
|
740
|
+
# GetDllLibPpt().Presentation_PrintP.argtypes=[c_void_p ,c_void_p]
|
|
741
|
+
# CallCFunction(GetDllLibPpt().Presentation_PrintP,self.Ptr, intPtrprinterSettings)
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
# @dispatch
|
|
745
|
+
#
|
|
746
|
+
# def Print(self ,printerSettings:'PrinterSettings',presName:str):
|
|
747
|
+
# """
|
|
748
|
+
# <summary>
|
|
749
|
+
# Prints the document according to the specified printer settings, using
|
|
750
|
+
# the standard (no User Interface) print controller and a presentation name.
|
|
751
|
+
# </summary>
|
|
752
|
+
# <param name="printerSettings">The .NET printer settings to use.</param>
|
|
753
|
+
# <param name="presName">The presentation name to display (for example, in a print
|
|
754
|
+
# status dialog box or printer queue) while printing the presentation.</param>
|
|
755
|
+
# """
|
|
756
|
+
# intPtrprinterSettings:c_void_p = printerSettings.Ptr
|
|
757
|
+
#
|
|
758
|
+
# GetDllLibPpt().Presentation_PrintPP.argtypes=[c_void_p ,c_void_p,c_wchar_p]
|
|
759
|
+
# CallCFunction(GetDllLibPpt().Presentation_PrintPP,self.Ptr, intPtrprinterSettings,presName)
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
#@dispatch
|
|
763
|
+
|
|
764
|
+
#def Print(self ,Name:str):
|
|
765
|
+
# """
|
|
766
|
+
#<summary>
|
|
767
|
+
# Print the whole presentation to the specified printer.
|
|
768
|
+
#</summary>
|
|
769
|
+
#<param name="Name">The name of the printer.</param>
|
|
770
|
+
# """
|
|
771
|
+
|
|
772
|
+
# GetDllLibPpt().Presentation_PrintN.argtypes=[c_void_p ,c_wchar_p]
|
|
773
|
+
# CallCFunction(GetDllLibPpt().Presentation_PrintN,self.Ptr, Name)
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
def SetFooterText(self ,text:str):
|
|
777
|
+
"""
|
|
778
|
+
Sets the footer text for all slides.
|
|
779
|
+
|
|
780
|
+
Args:
|
|
781
|
+
text: Footer text to apply
|
|
782
|
+
"""
|
|
783
|
+
|
|
784
|
+
textPtr = StrToPtr(text)
|
|
785
|
+
GetDllLibPpt().Presentation_SetFooterText.argtypes=[c_void_p ,c_char_p]
|
|
786
|
+
CallCFunction(GetDllLibPpt().Presentation_SetFooterText,self.Ptr,textPtr)
|
|
787
|
+
|
|
788
|
+
@dispatch
|
|
789
|
+
|
|
790
|
+
def SetDateTime(self ,dateTime:DateTime):
|
|
791
|
+
"""
|
|
792
|
+
Sets the date/time for all slides using default format.
|
|
793
|
+
|
|
794
|
+
Args:
|
|
795
|
+
dateTime: DateTime object containing the date/time value
|
|
796
|
+
"""
|
|
797
|
+
intPtrdateTime:c_void_p = dateTime.Ptr
|
|
798
|
+
|
|
799
|
+
GetDllLibPpt().Presentation_SetDateTime.argtypes=[c_void_p ,c_void_p]
|
|
800
|
+
CallCFunction(GetDllLibPpt().Presentation_SetDateTime,self.Ptr, intPtrdateTime)
|
|
801
|
+
|
|
802
|
+
@dispatch
|
|
803
|
+
|
|
804
|
+
def SetDateTime(self ,dateTime:DateTime,format:str):
|
|
805
|
+
"""
|
|
806
|
+
Sets the date/time for all slides with custom formatting.
|
|
807
|
+
|
|
808
|
+
Args:
|
|
809
|
+
dateTime: DateTime object containing the date/time value
|
|
810
|
+
format: Custom format string for date/time display
|
|
811
|
+
"""
|
|
812
|
+
intPtrdateTime:c_void_p = dateTime.Ptr
|
|
813
|
+
|
|
814
|
+
formatPtr = StrToPtr(format)
|
|
815
|
+
GetDllLibPpt().Presentation_SetDateTimeDF.argtypes=[c_void_p ,c_void_p,c_char_p]
|
|
816
|
+
CallCFunction(GetDllLibPpt().Presentation_SetDateTimeDF,self.Ptr, intPtrdateTime,formatPtr)
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
def SetFooterVisible(self ,visible:bool):
|
|
820
|
+
"""
|
|
821
|
+
Shows or hides the footer on all slides.
|
|
822
|
+
|
|
823
|
+
Args:
|
|
824
|
+
visible: True to show footer, False to hide
|
|
825
|
+
"""
|
|
826
|
+
|
|
827
|
+
GetDllLibPpt().Presentation_SetFooterVisible.argtypes=[c_void_p ,c_bool]
|
|
828
|
+
CallCFunction(GetDllLibPpt().Presentation_SetFooterVisible,self.Ptr, visible)
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
def SetDateTimeVisible(self ,visible:bool):
|
|
832
|
+
"""
|
|
833
|
+
Shows or hides the date/time on all slides.
|
|
834
|
+
|
|
835
|
+
Args:
|
|
836
|
+
visible: True to show date/time, False to hide
|
|
837
|
+
"""
|
|
838
|
+
|
|
839
|
+
GetDllLibPpt().Presentation_SetDateTimeVisible.argtypes=[c_void_p ,c_bool]
|
|
840
|
+
CallCFunction(GetDllLibPpt().Presentation_SetDateTimeVisible,self.Ptr, visible)
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
def SetSlideNoVisible(self ,visible:bool):
|
|
844
|
+
"""
|
|
845
|
+
Shows or hides slide numbers on all slides.
|
|
846
|
+
|
|
847
|
+
Args:
|
|
848
|
+
visible: True to show slide numbers, False to hide
|
|
849
|
+
"""
|
|
850
|
+
|
|
851
|
+
GetDllLibPpt().Presentation_SetSlideNoVisible.argtypes=[c_void_p ,c_bool]
|
|
852
|
+
CallCFunction(GetDllLibPpt().Presentation_SetSlideNoVisible,self.Ptr, visible)
|
|
853
|
+
|
|
854
|
+
@property
|
|
855
|
+
def SlideNumberVisible(self)->bool:
|
|
856
|
+
"""
|
|
857
|
+
Gets or sets whether slide numbers are visible.
|
|
858
|
+
|
|
859
|
+
When True, slide numbers will be displayed on slides.
|
|
860
|
+
"""
|
|
861
|
+
GetDllLibPpt().Presentation_get_SlideNumberVisible.argtypes=[c_void_p]
|
|
862
|
+
GetDllLibPpt().Presentation_get_SlideNumberVisible.restype=c_bool
|
|
863
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_SlideNumberVisible,self.Ptr)
|
|
864
|
+
return ret
|
|
865
|
+
|
|
866
|
+
@SlideNumberVisible.setter
|
|
867
|
+
def SlideNumberVisible(self, value:bool):
|
|
868
|
+
GetDllLibPpt().Presentation_set_SlideNumberVisible.argtypes=[c_void_p, c_bool]
|
|
869
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SlideNumberVisible,self.Ptr, value)
|
|
870
|
+
|
|
871
|
+
@property
|
|
872
|
+
def DateTimeVisible(self)->bool:
|
|
873
|
+
"""
|
|
874
|
+
Gets or sets whether date/time is visible on slides.
|
|
875
|
+
|
|
876
|
+
When True, date/time will be displayed on slides.
|
|
877
|
+
"""
|
|
878
|
+
GetDllLibPpt().Presentation_get_DateTimeVisible.argtypes=[c_void_p]
|
|
879
|
+
GetDllLibPpt().Presentation_get_DateTimeVisible.restype=c_bool
|
|
880
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_DateTimeVisible,self.Ptr)
|
|
881
|
+
return ret
|
|
882
|
+
|
|
883
|
+
@DateTimeVisible.setter
|
|
884
|
+
def DateTimeVisible(self, value:bool):
|
|
885
|
+
GetDllLibPpt().Presentation_set_DateTimeVisible.argtypes=[c_void_p, c_bool]
|
|
886
|
+
CallCFunction(GetDllLibPpt().Presentation_set_DateTimeVisible,self.Ptr, value)
|
|
887
|
+
|
|
888
|
+
@property
|
|
889
|
+
def FooterVisible(self)->bool:
|
|
890
|
+
"""
|
|
891
|
+
Gets or sets whether footer is visible on slides.
|
|
892
|
+
|
|
893
|
+
When True, footer will be displayed on slides.
|
|
894
|
+
"""
|
|
895
|
+
GetDllLibPpt().Presentation_get_FooterVisible.argtypes=[c_void_p]
|
|
896
|
+
GetDllLibPpt().Presentation_get_FooterVisible.restype=c_bool
|
|
897
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_FooterVisible,self.Ptr)
|
|
898
|
+
return ret
|
|
899
|
+
|
|
900
|
+
@FooterVisible.setter
|
|
901
|
+
def FooterVisible(self, value:bool):
|
|
902
|
+
GetDllLibPpt().Presentation_set_FooterVisible.argtypes=[c_void_p, c_bool]
|
|
903
|
+
CallCFunction(GetDllLibPpt().Presentation_set_FooterVisible,self.Ptr, value)
|
|
904
|
+
|
|
905
|
+
@property
|
|
906
|
+
def AutoCompressPictures(self)->bool:
|
|
907
|
+
"""
|
|
908
|
+
Gets or sets automatic picture compression.
|
|
909
|
+
|
|
910
|
+
When True, images will be automatically compressed to reduce file size.
|
|
911
|
+
"""
|
|
912
|
+
GetDllLibPpt().Presentation_get_AutoCompressPictures.argtypes=[c_void_p]
|
|
913
|
+
GetDllLibPpt().Presentation_get_AutoCompressPictures.restype=c_bool
|
|
914
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_AutoCompressPictures,self.Ptr)
|
|
915
|
+
return ret
|
|
916
|
+
|
|
917
|
+
@AutoCompressPictures.setter
|
|
918
|
+
def AutoCompressPictures(self, value:bool):
|
|
919
|
+
GetDllLibPpt().Presentation_set_AutoCompressPictures.argtypes=[c_void_p, c_bool]
|
|
920
|
+
CallCFunction(GetDllLibPpt().Presentation_set_AutoCompressPictures,self.Ptr, value)
|
|
921
|
+
|
|
922
|
+
@property
|
|
923
|
+
def BookmarkIdSeed(self)->int:
|
|
924
|
+
"""
|
|
925
|
+
Gets or sets the starting ID for bookmarks.
|
|
926
|
+
|
|
927
|
+
This value determines the starting point for bookmark ID generation.
|
|
928
|
+
"""
|
|
929
|
+
GetDllLibPpt().Presentation_get_BookmarkIdSeed.argtypes=[c_void_p]
|
|
930
|
+
GetDllLibPpt().Presentation_get_BookmarkIdSeed.restype=c_int
|
|
931
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_BookmarkIdSeed,self.Ptr)
|
|
932
|
+
return ret
|
|
933
|
+
|
|
934
|
+
@BookmarkIdSeed.setter
|
|
935
|
+
def BookmarkIdSeed(self, value:int):
|
|
936
|
+
GetDllLibPpt().Presentation_set_BookmarkIdSeed.argtypes=[c_void_p, c_int]
|
|
937
|
+
CallCFunction(GetDllLibPpt().Presentation_set_BookmarkIdSeed,self.Ptr, value)
|
|
938
|
+
|
|
939
|
+
@property
|
|
940
|
+
|
|
941
|
+
def DefaultTextStyle(self)->'TextStyle':
|
|
942
|
+
"""
|
|
943
|
+
Gets the default text style for the presentation.
|
|
944
|
+
|
|
945
|
+
Returns:
|
|
946
|
+
TextStyle: Default text formatting properties
|
|
947
|
+
"""
|
|
948
|
+
GetDllLibPpt().Presentation_get_DefaultTextStyle.argtypes=[c_void_p]
|
|
949
|
+
GetDllLibPpt().Presentation_get_DefaultTextStyle.restype=c_void_p
|
|
950
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_DefaultTextStyle,self.Ptr)
|
|
951
|
+
ret = None if intPtr==None else TextStyle(intPtr)
|
|
952
|
+
return ret
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
@property
|
|
956
|
+
def ShowNarration(self)->bool:
|
|
957
|
+
"""
|
|
958
|
+
Gets or sets whether narration is played during slide shows.
|
|
959
|
+
|
|
960
|
+
When True, audio narration will play during presentations.
|
|
961
|
+
"""
|
|
962
|
+
GetDllLibPpt().Presentation_get_ShowNarration.argtypes=[c_void_p]
|
|
963
|
+
GetDllLibPpt().Presentation_get_ShowNarration.restype=c_bool
|
|
964
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_ShowNarration,self.Ptr)
|
|
965
|
+
return ret
|
|
966
|
+
|
|
967
|
+
@ShowNarration.setter
|
|
968
|
+
def ShowNarration(self, value:bool):
|
|
969
|
+
GetDllLibPpt().Presentation_set_ShowNarration.argtypes=[c_void_p, c_bool]
|
|
970
|
+
CallCFunction(GetDllLibPpt().Presentation_set_ShowNarration,self.Ptr, value)
|
|
971
|
+
|
|
972
|
+
@property
|
|
973
|
+
def ShowAnimation(self)->bool:
|
|
974
|
+
"""
|
|
975
|
+
Gets or sets whether animations are played during slide shows.
|
|
976
|
+
|
|
977
|
+
When True, slide animations will play during presentations.
|
|
978
|
+
"""
|
|
979
|
+
GetDllLibPpt().Presentation_get_ShowAnimation.argtypes=[c_void_p]
|
|
980
|
+
GetDllLibPpt().Presentation_get_ShowAnimation.restype=c_bool
|
|
981
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_ShowAnimation,self.Ptr)
|
|
982
|
+
return ret
|
|
983
|
+
|
|
984
|
+
@ShowAnimation.setter
|
|
985
|
+
def ShowAnimation(self, value:bool):
|
|
986
|
+
GetDllLibPpt().Presentation_set_ShowAnimation.argtypes=[c_void_p, c_bool]
|
|
987
|
+
CallCFunction(GetDllLibPpt().Presentation_set_ShowAnimation,self.Ptr, value)
|
|
988
|
+
|
|
989
|
+
@property
|
|
990
|
+
def ShowLoop(self)->bool:
|
|
991
|
+
"""
|
|
992
|
+
Gets or sets whether slide shows loop continuously.
|
|
993
|
+
|
|
994
|
+
When True, presentations will restart automatically after completion.
|
|
995
|
+
"""
|
|
996
|
+
GetDllLibPpt().Presentation_get_ShowLoop.argtypes=[c_void_p]
|
|
997
|
+
GetDllLibPpt().Presentation_get_ShowLoop.restype=c_bool
|
|
998
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_ShowLoop,self.Ptr)
|
|
999
|
+
return ret
|
|
1000
|
+
|
|
1001
|
+
@ShowLoop.setter
|
|
1002
|
+
def ShowLoop(self, value:bool):
|
|
1003
|
+
GetDllLibPpt().Presentation_set_ShowLoop.argtypes=[c_void_p, c_bool]
|
|
1004
|
+
CallCFunction(GetDllLibPpt().Presentation_set_ShowLoop,self.Ptr, value)
|
|
1005
|
+
|
|
1006
|
+
@property
|
|
1007
|
+
def HasMacros(self)->bool:
|
|
1008
|
+
"""
|
|
1009
|
+
Indicates whether the presentation contains VBA macros.
|
|
1010
|
+
|
|
1011
|
+
Returns:
|
|
1012
|
+
bool: True if macros are present, False otherwise
|
|
1013
|
+
"""
|
|
1014
|
+
GetDllLibPpt().Presentation_get_HasMacros.argtypes=[c_void_p]
|
|
1015
|
+
GetDllLibPpt().Presentation_get_HasMacros.restype=c_bool
|
|
1016
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_HasMacros,self.Ptr)
|
|
1017
|
+
return ret
|
|
1018
|
+
|
|
1019
|
+
def DeleteMacros(self):
|
|
1020
|
+
"""
|
|
1021
|
+
Deletes all VBA macros from the presentation.
|
|
1022
|
+
"""
|
|
1023
|
+
GetDllLibPpt().Presentation_DeleteMacros.argtypes=[c_void_p]
|
|
1024
|
+
CallCFunction(GetDllLibPpt().Presentation_DeleteMacros,self.Ptr)
|
|
1025
|
+
|
|
1026
|
+
@property
|
|
1027
|
+
|
|
1028
|
+
def ShowType(self)->'SlideShowType':
|
|
1029
|
+
"""
|
|
1030
|
+
Gets or sets the slide show presentation type.
|
|
1031
|
+
|
|
1032
|
+
Returns:
|
|
1033
|
+
SlideShowType: Enumeration value representing presentation mode
|
|
1034
|
+
"""
|
|
1035
|
+
GetDllLibPpt().Presentation_get_ShowType.argtypes=[c_void_p]
|
|
1036
|
+
GetDllLibPpt().Presentation_get_ShowType.restype=c_int
|
|
1037
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_ShowType,self.Ptr)
|
|
1038
|
+
objwraped = SlideShowType(ret)
|
|
1039
|
+
return objwraped
|
|
1040
|
+
|
|
1041
|
+
@ShowType.setter
|
|
1042
|
+
def ShowType(self, value:'SlideShowType'):
|
|
1043
|
+
GetDllLibPpt().Presentation_set_ShowType.argtypes=[c_void_p, c_int]
|
|
1044
|
+
CallCFunction(GetDllLibPpt().Presentation_set_ShowType,self.Ptr, value.value)
|
|
1045
|
+
|
|
1046
|
+
@property
|
|
1047
|
+
def UseTimings(self)->bool:
|
|
1048
|
+
"""
|
|
1049
|
+
Gets or sets whether slide timings are used during presentations.
|
|
1050
|
+
|
|
1051
|
+
When True, slide transitions will follow preset timing settings.
|
|
1052
|
+
"""
|
|
1053
|
+
GetDllLibPpt().Presentation_get_UseTimings.argtypes=[c_void_p]
|
|
1054
|
+
GetDllLibPpt().Presentation_get_UseTimings.restype=c_bool
|
|
1055
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_UseTimings,self.Ptr)
|
|
1056
|
+
return ret
|
|
1057
|
+
|
|
1058
|
+
@UseTimings.setter
|
|
1059
|
+
def UseTimings(self, value:bool):
|
|
1060
|
+
GetDllLibPpt().Presentation_set_UseTimings.argtypes=[c_void_p, c_bool]
|
|
1061
|
+
CallCFunction(GetDllLibPpt().Presentation_set_UseTimings,self.Ptr, value)
|
|
1062
|
+
|
|
1063
|
+
@property
|
|
1064
|
+
def EmbedTrueTypeFonts(self)->bool:
|
|
1065
|
+
"""
|
|
1066
|
+
Gets or sets whether TrueType fonts are embedded in the document.
|
|
1067
|
+
|
|
1068
|
+
When True, fonts will be embedded to ensure consistent rendering.
|
|
1069
|
+
"""
|
|
1070
|
+
GetDllLibPpt().Presentation_get_EmbedTrueTypeFonts.argtypes=[c_void_p]
|
|
1071
|
+
GetDllLibPpt().Presentation_get_EmbedTrueTypeFonts.restype=c_bool
|
|
1072
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_EmbedTrueTypeFonts,self.Ptr)
|
|
1073
|
+
return ret
|
|
1074
|
+
|
|
1075
|
+
@EmbedTrueTypeFonts.setter
|
|
1076
|
+
def EmbedTrueTypeFonts(self, value:bool):
|
|
1077
|
+
GetDllLibPpt().Presentation_set_EmbedTrueTypeFonts.argtypes=[c_void_p, c_bool]
|
|
1078
|
+
CallCFunction(GetDllLibPpt().Presentation_set_EmbedTrueTypeFonts,self.Ptr, value)
|
|
1079
|
+
|
|
1080
|
+
@property
|
|
1081
|
+
def FirstSlideNumber(self)->int:
|
|
1082
|
+
"""
|
|
1083
|
+
Gets or sets the starting slide number.
|
|
1084
|
+
|
|
1085
|
+
This value determines the number shown on the first slide.
|
|
1086
|
+
"""
|
|
1087
|
+
GetDllLibPpt().Presentation_get_FirstSlideNumber.argtypes=[c_void_p]
|
|
1088
|
+
GetDllLibPpt().Presentation_get_FirstSlideNumber.restype=c_int
|
|
1089
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_FirstSlideNumber,self.Ptr)
|
|
1090
|
+
return ret
|
|
1091
|
+
|
|
1092
|
+
@FirstSlideNumber.setter
|
|
1093
|
+
def FirstSlideNumber(self, value:int):
|
|
1094
|
+
GetDllLibPpt().Presentation_set_FirstSlideNumber.argtypes=[c_void_p, c_int]
|
|
1095
|
+
CallCFunction(GetDllLibPpt().Presentation_set_FirstSlideNumber,self.Ptr, value)
|
|
1096
|
+
|
|
1097
|
+
@property
|
|
1098
|
+
|
|
1099
|
+
def HandoutMaster(self)->'INoteMasterSlide':
|
|
1100
|
+
"""
|
|
1101
|
+
Gets the handout master slide.
|
|
1102
|
+
|
|
1103
|
+
Returns:
|
|
1104
|
+
INoteMasterSlide: Master slide for handout layouts
|
|
1105
|
+
"""
|
|
1106
|
+
GetDllLibPpt().Presentation_get_HandoutMaster.argtypes=[c_void_p]
|
|
1107
|
+
GetDllLibPpt().Presentation_get_HandoutMaster.restype=c_void_p
|
|
1108
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_HandoutMaster,self.Ptr)
|
|
1109
|
+
ret = None if intPtr==None else INoteMasterSlide(intPtr)
|
|
1110
|
+
return ret
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
@property
|
|
1114
|
+
|
|
1115
|
+
def NotesMaster(self)->'INoteMasterSlide':
|
|
1116
|
+
"""
|
|
1117
|
+
Gets the notes master slide.
|
|
1118
|
+
|
|
1119
|
+
Returns:
|
|
1120
|
+
INoteMasterSlide: Master slide for speaker notes layouts
|
|
1121
|
+
"""
|
|
1122
|
+
GetDllLibPpt().Presentation_get_NotesMaster.argtypes=[c_void_p]
|
|
1123
|
+
GetDllLibPpt().Presentation_get_NotesMaster.restype=c_void_p
|
|
1124
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_NotesMaster,self.Ptr)
|
|
1125
|
+
ret = None if intPtr==None else INoteMasterSlide(intPtr)
|
|
1126
|
+
return ret
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
@property
|
|
1130
|
+
|
|
1131
|
+
def NotesSlideSize(self)->'SizeF':
|
|
1132
|
+
"""
|
|
1133
|
+
Gets the size of notes slides.
|
|
1134
|
+
|
|
1135
|
+
Returns:
|
|
1136
|
+
SizeF: Dimensions of notes slides
|
|
1137
|
+
"""
|
|
1138
|
+
GetDllLibPpt().Presentation_get_NotesSlideSize.argtypes=[c_void_p]
|
|
1139
|
+
GetDllLibPpt().Presentation_get_NotesSlideSize.restype=c_void_p
|
|
1140
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_NotesSlideSize,self.Ptr)
|
|
1141
|
+
ret = None if intPtr==None else SizeF(intPtr)
|
|
1142
|
+
return ret
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
@property
|
|
1146
|
+
def SaveSubsetFonts(self)->bool:
|
|
1147
|
+
"""
|
|
1148
|
+
Gets or sets whether to embed font subsets.
|
|
1149
|
+
|
|
1150
|
+
When True, only used characters from fonts will be embedded.
|
|
1151
|
+
"""
|
|
1152
|
+
GetDllLibPpt().Presentation_get_SaveSubsetFonts.argtypes=[c_void_p]
|
|
1153
|
+
GetDllLibPpt().Presentation_get_SaveSubsetFonts.restype=c_bool
|
|
1154
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_SaveSubsetFonts,self.Ptr)
|
|
1155
|
+
return ret
|
|
1156
|
+
|
|
1157
|
+
@SaveSubsetFonts.setter
|
|
1158
|
+
def SaveSubsetFonts(self, value:bool):
|
|
1159
|
+
GetDllLibPpt().Presentation_set_SaveSubsetFonts.argtypes=[c_void_p, c_bool]
|
|
1160
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SaveSubsetFonts,self.Ptr, value)
|
|
1161
|
+
|
|
1162
|
+
@property
|
|
1163
|
+
def ServerZoom(self)->float:
|
|
1164
|
+
"""
|
|
1165
|
+
Gets or sets the server-side zoom level.
|
|
1166
|
+
|
|
1167
|
+
This property affects how the presentation is rendered on servers.
|
|
1168
|
+
"""
|
|
1169
|
+
GetDllLibPpt().Presentation_get_ServerZoom.argtypes=[c_void_p]
|
|
1170
|
+
GetDllLibPpt().Presentation_get_ServerZoom.restype=c_float
|
|
1171
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_ServerZoom,self.Ptr)
|
|
1172
|
+
return ret
|
|
1173
|
+
|
|
1174
|
+
@ServerZoom.setter
|
|
1175
|
+
def ServerZoom(self, value:float):
|
|
1176
|
+
GetDllLibPpt().Presentation_set_ServerZoom.argtypes=[c_void_p, c_float]
|
|
1177
|
+
CallCFunction(GetDllLibPpt().Presentation_set_ServerZoom,self.Ptr, value)
|
|
1178
|
+
|
|
1179
|
+
@property
|
|
1180
|
+
|
|
1181
|
+
def Masters(self)->'MasterSlideCollection':
|
|
1182
|
+
"""
|
|
1183
|
+
Gets the collection of master slides.
|
|
1184
|
+
|
|
1185
|
+
Returns:
|
|
1186
|
+
MasterSlideCollection: Collection of master slide objects
|
|
1187
|
+
"""
|
|
1188
|
+
GetDllLibPpt().Presentation_get_Masters.argtypes=[c_void_p]
|
|
1189
|
+
GetDllLibPpt().Presentation_get_Masters.restype=c_void_p
|
|
1190
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_Masters,self.Ptr)
|
|
1191
|
+
ret = None if intPtr==None else MasterSlideCollection(intPtr)
|
|
1192
|
+
return ret
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
@property
|
|
1196
|
+
|
|
1197
|
+
def Slides(self)->'SlideCollection':
|
|
1198
|
+
"""
|
|
1199
|
+
Gets the collection of slides.
|
|
1200
|
+
|
|
1201
|
+
Returns:
|
|
1202
|
+
SlideCollection: Collection of slide objects
|
|
1203
|
+
"""
|
|
1204
|
+
GetDllLibPpt().Presentation_get_Slides.argtypes=[c_void_p]
|
|
1205
|
+
GetDllLibPpt().Presentation_get_Slides.restype=c_void_p
|
|
1206
|
+
intPtr = CallCFunction(GetDllLibPpt().Presentation_get_Slides,self.Ptr)
|
|
1207
|
+
ret = None if intPtr==None else SlideCollection(intPtr)
|
|
1208
|
+
return ret
|
|
1209
|
+
|
|
1210
|
+
@property
|
|
1211
|
+
|
|
1212
|
+
def SlideCountPerPageForPrint(self)->'PageSlideCount':
|
|
1213
|
+
"""
|
|
1214
|
+
Gets or sets the number of slides per printed page.
|
|
1215
|
+
|
|
1216
|
+
Returns:
|
|
1217
|
+
PageSlideCount: Enumeration value representing slides per page
|
|
1218
|
+
"""
|
|
1219
|
+
GetDllLibPpt().Presentation_get_SlideCountPerPageForPrint.argtypes=[c_void_p]
|
|
1220
|
+
GetDllLibPpt().Presentation_get_SlideCountPerPageForPrint.restype=c_int
|
|
1221
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_SlideCountPerPageForPrint,self.Ptr)
|
|
1222
|
+
objwraped = PageSlideCount(ret)
|
|
1223
|
+
return objwraped
|
|
1224
|
+
|
|
1225
|
+
@SlideCountPerPageForPrint.setter
|
|
1226
|
+
def SlideCountPerPageForPrint(self, value:'PageSlideCount'):
|
|
1227
|
+
GetDllLibPpt().Presentation_set_SlideCountPerPageForPrint.argtypes=[c_void_p, c_int]
|
|
1228
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SlideCountPerPageForPrint,self.Ptr, value.value)
|
|
1229
|
+
|
|
1230
|
+
def SelectSlidesForPrint(self ,selectSlidesForPrint:List[str]):
|
|
1231
|
+
"""
|
|
1232
|
+
Selects specific slides for printing.
|
|
1233
|
+
|
|
1234
|
+
Args:
|
|
1235
|
+
selectSlidesForPrint: List of slide identifiers to print
|
|
1236
|
+
"""
|
|
1237
|
+
#arrayselectSlidesForPrint:ArrayTypeselectSlidesForPrint = ""
|
|
1238
|
+
countselectSlidesForPrint = len(selectSlidesForPrint)
|
|
1239
|
+
ArrayTypeselectSlidesForPrint = c_wchar_p * countselectSlidesForPrint
|
|
1240
|
+
arrayselectSlidesForPrint = ArrayTypeselectSlidesForPrint()
|
|
1241
|
+
for i in range(0, countselectSlidesForPrint):
|
|
1242
|
+
arrayselectSlidesForPrint[i] = selectSlidesForPrint[i]
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
GetDllLibPpt().Presentation_SelectSlidesForPrint.argtypes=[c_void_p ,ArrayTypeselectSlidesForPrint]
|
|
1246
|
+
CallCFunction(GetDllLibPpt().Presentation_SelectSlidesForPrint,self.Ptr, arrayselectSlidesForPrint)
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
@property
|
|
1250
|
+
|
|
1251
|
+
def OrderForPrint(self)->'Order':
|
|
1252
|
+
"""
|
|
1253
|
+
Gets or sets the printing order (horizontal/vertical).
|
|
1254
|
+
|
|
1255
|
+
Returns:
|
|
1256
|
+
Order: Enumeration value representing print order
|
|
1257
|
+
"""
|
|
1258
|
+
GetDllLibPpt().Presentation_get_OrderForPrint.argtypes=[c_void_p]
|
|
1259
|
+
GetDllLibPpt().Presentation_get_OrderForPrint.restype=c_int
|
|
1260
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_OrderForPrint,self.Ptr)
|
|
1261
|
+
objwraped = Order(ret)
|
|
1262
|
+
return objwraped
|
|
1263
|
+
|
|
1264
|
+
@OrderForPrint.setter
|
|
1265
|
+
def OrderForPrint(self, value:'Order'):
|
|
1266
|
+
GetDllLibPpt().Presentation_set_OrderForPrint.argtypes=[c_void_p, c_int]
|
|
1267
|
+
CallCFunction(GetDllLibPpt().Presentation_set_OrderForPrint,self.Ptr, value.value)
|
|
1268
|
+
|
|
1269
|
+
@property
|
|
1270
|
+
def SlideFrameForPrint(self)->bool:
|
|
1271
|
+
"""
|
|
1272
|
+
Gets or sets whether to print slide frames.
|
|
1273
|
+
|
|
1274
|
+
When True, a border will be printed around each slide.
|
|
1275
|
+
"""
|
|
1276
|
+
GetDllLibPpt().Presentation_get_SlideFrameForPrint.argtypes=[c_void_p]
|
|
1277
|
+
GetDllLibPpt().Presentation_get_SlideFrameForPrint.restype=c_bool
|
|
1278
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_SlideFrameForPrint,self.Ptr)
|
|
1279
|
+
return ret
|
|
1280
|
+
|
|
1281
|
+
@SlideFrameForPrint.setter
|
|
1282
|
+
def SlideFrameForPrint(self, value:bool):
|
|
1283
|
+
GetDllLibPpt().Presentation_set_SlideFrameForPrint.argtypes=[c_void_p, c_bool]
|
|
1284
|
+
CallCFunction(GetDllLibPpt().Presentation_set_SlideFrameForPrint,self.Ptr, value)
|
|
1285
|
+
|
|
1286
|
+
@property
|
|
1287
|
+
def GrayLevelForPrint(self)->bool:
|
|
1288
|
+
"""
|
|
1289
|
+
Gets or sets whether to print in grayscale.
|
|
1290
|
+
|
|
1291
|
+
When True, printed output will be in grayscale.
|
|
1292
|
+
"""
|
|
1293
|
+
GetDllLibPpt().Presentation_get_GrayLevelForPrint.argtypes=[c_void_p]
|
|
1294
|
+
GetDllLibPpt().Presentation_get_GrayLevelForPrint.restype=c_bool
|
|
1295
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_GrayLevelForPrint,self.Ptr)
|
|
1296
|
+
return ret
|
|
1297
|
+
|
|
1298
|
+
@GrayLevelForPrint.setter
|
|
1299
|
+
def GrayLevelForPrint(self, value:bool):
|
|
1300
|
+
GetDllLibPpt().Presentation_set_GrayLevelForPrint.argtypes=[c_void_p, c_bool]
|
|
1301
|
+
CallCFunction(GetDllLibPpt().Presentation_set_GrayLevelForPrint,self.Ptr, value)
|
|
1302
|
+
|
|
1303
|
+
@property
|
|
1304
|
+
def IsNoteRetained(self)->bool:
|
|
1305
|
+
"""
|
|
1306
|
+
Gets or sets whether speaker notes are retained.
|
|
1307
|
+
|
|
1308
|
+
When True, speaker notes will be preserved during operations.
|
|
1309
|
+
"""
|
|
1310
|
+
GetDllLibPpt().Presentation_get_IsNoteRetained.argtypes=[c_void_p]
|
|
1311
|
+
GetDllLibPpt().Presentation_get_IsNoteRetained.restype=c_bool
|
|
1312
|
+
ret = CallCFunction(GetDllLibPpt().Presentation_get_IsNoteRetained,self.Ptr)
|
|
1313
|
+
return ret
|
|
1314
|
+
|
|
1315
|
+
@IsNoteRetained.setter
|
|
1316
|
+
def IsNoteRetained(self, value:bool):
|
|
1317
|
+
GetDllLibPpt().Presentation_set_IsNoteRetained.argtypes=[c_void_p, c_bool]
|
|
1318
|
+
CallCFunction(GetDllLibPpt().Presentation_set_IsNoteRetained,self.Ptr, value)
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
def AddEmbeddedFont(self,pathName:str)->str:
|
|
1323
|
+
"""
|
|
1324
|
+
Embeds a font file into the presentation.
|
|
1325
|
+
|
|
1326
|
+
Args:
|
|
1327
|
+
pathName: Path to the font file
|
|
1328
|
+
|
|
1329
|
+
Returns:
|
|
1330
|
+
str: Identifier for the embedded font
|
|
1331
|
+
"""
|
|
1332
|
+
pathNamePtr = StrToPtr(pathName)
|
|
1333
|
+
GetDllLibPpt().Presentation_AddEmbeddedFont.argtypes=[c_void_p,c_char_p]
|
|
1334
|
+
GetDllLibPpt().Presentation_AddEmbeddedFont.restype=c_void_p
|
|
1335
|
+
ret = PtrToStr(CallCFunction(GetDllLibPpt().Presentation_AddEmbeddedFont,self.Ptr,pathNamePtr))
|
|
1336
|
+
return ret
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
@staticmethod
|
|
1340
|
+
def SetDefaultFontName(value:str):
|
|
1341
|
+
"""
|
|
1342
|
+
Sets the default font name for new presentations.
|
|
1343
|
+
|
|
1344
|
+
Args:
|
|
1345
|
+
value: Font name to use as default
|
|
1346
|
+
"""
|
|
1347
|
+
valuePtr = StrToPtr(value)
|
|
1348
|
+
GetDllLibPpt().Presentation_set_DefaultFontName.argtypes=[c_char_p]
|
|
1349
|
+
GetDllLibPpt().Presentation_set_DefaultFontName.restype=c_void_p
|
|
1350
|
+
CallCFunction(GetDllLibPpt().Presentation_set_DefaultFontName,valuePtr)
|
|
1351
|
+
|
|
1352
|
+
@staticmethod
|
|
1353
|
+
def ResetDefaultFontName():
|
|
1354
|
+
"""
|
|
1355
|
+
Resets the default font name to system default.
|
|
1356
|
+
"""
|
|
1357
|
+
GetDllLibPpt().Presentation_Reset_DefaultFontName.argtypes=[c_void_p]
|
|
1358
|
+
GetDllLibPpt().Presentation_Reset_DefaultFontName.restype=c_void_p
|
|
1359
|
+
CallCFunction(GetDllLibPpt().Presentation_Reset_DefaultFontName)
|
|
1360
|
+
|
|
1361
|
+
@staticmethod
|
|
1362
|
+
def SetCustomFontsDirctory(value:str):
|
|
1363
|
+
"""
|
|
1364
|
+
Sets the directory for custom fonts.
|
|
1365
|
+
|
|
1366
|
+
Args:
|
|
1367
|
+
value: Path to directory containing custom fonts
|
|
1368
|
+
"""
|
|
1369
|
+
valuePtr = StrToPtr(value)
|
|
1370
|
+
GetDllLibPpt().Presentation_set_CustomFontsDirctory.argtypes=[c_char_p]
|
|
1371
|
+
GetDllLibPpt().Presentation_set_CustomFontsDirctory.restype=c_void_p
|
|
1372
|
+
CallCFunction(GetDllLibPpt().Presentation_set_CustomFontsDirctory,valuePtr)
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
def ReplaceAndFormatText(self,value1:str,value2:str,format:DefaultTextRangeProperties):
|
|
1376
|
+
"""
|
|
1377
|
+
Replaces text and applies formatting.
|
|
1378
|
+
|
|
1379
|
+
Args:
|
|
1380
|
+
value1: Text to find
|
|
1381
|
+
value2: Replacement text
|
|
1382
|
+
format: Formatting to apply to the replacement text
|
|
1383
|
+
"""
|
|
1384
|
+
value1Ptr = StrToPtr(value1)
|
|
1385
|
+
value2Ptr = StrToPtr(value2)
|
|
1386
|
+
GetDllLibPpt().Presentation_ReplaceAndFormatText.argtypes=[c_void_p,c_char_p,c_char_p,c_void_p]
|
|
1387
|
+
GetDllLibPpt().Presentation_ReplaceAndFormatText.restype=c_void_p
|
|
1388
|
+
CallCFunction(GetDllLibPpt().Presentation_ReplaceAndFormatText,self.Ptr,value1Ptr,value2Ptr,format.Ptr)
|
|
1389
|
+
|