spire-presentation 10.6.4__py3-none-win_amd64.whl → 10.7.1__py3-none-win_amd64.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/presentation/ActiveSlide.py +52 -44
- spire/presentation/AppException.py +3 -3
- spire/presentation/AudioCD.py +7 -12
- spire/presentation/AudioPlayMode.py +7 -3
- spire/presentation/AudioVolumeType.py +8 -3
- spire/presentation/BaseShapeLocking.py +7 -6
- spire/presentation/Camera.py +44 -21
- spire/presentation/ClickHyperlink.py +127 -91
- spire/presentation/Comment.py +75 -36
- spire/presentation/ConnectorLocking.py +3 -3
- spire/presentation/DefaultTextRangeProperties.py +58 -99
- spire/presentation/Direction.py +5 -3
- spire/presentation/Field.py +18 -8
- spire/presentation/FieldType.py +45 -47
- spire/presentation/FileFormat.py +23 -3
- spire/presentation/FontAlignmentType.py +9 -3
- spire/presentation/FontCollectionIndex.py +6 -3
- spire/presentation/FontScheme.py +12 -13
- spire/presentation/FormatAndVersion.py +32 -3
- spire/presentation/GroupShape.py +11 -13
- spire/presentation/GroupShapeLocking.py +6 -17
- spire/presentation/HyperlinkActionType.py +19 -3
- spire/presentation/IActivePresentation.py +5 -3
- spire/presentation/IActiveSlide.py +4 -4
- spire/presentation/IAudio.py +51 -116
- spire/presentation/IAudioData.py +11 -33
- spire/presentation/IAutoShape.py +186 -124
- spire/presentation/ICommentAuthor.py +20 -8
- spire/presentation/IDigitalSignature.py +13 -34
- spire/presentation/IDigitalSignatures.py +2 -3
- spire/presentation/IDocumentProperty.py +41 -86
- spire/presentation/IEmbedImage.py +167 -114
- spire/presentation/ILayout.py +40 -17
- spire/presentation/IMasterSlide.py +67 -58
- spire/presentation/INoteMasterSlide.py +25 -41
- spire/presentation/IOleObject.py +216 -141
- spire/presentation/IShape.py +185 -146
- spire/presentation/ISlide.py +212 -153
- spire/presentation/ITextFrameProperties.py +203 -96
- spire/presentation/IVideo.py +280 -153
- spire/presentation/ImportDataFormat.py +6 -3
- spire/presentation/KnownColors.py +2 -3
- spire/presentation/LightRig.py +40 -23
- spire/presentation/LightingDirectionType.py +3 -3
- spire/presentation/LineCapStyle.py +7 -3
- spire/presentation/LineDashStyleType.py +16 -3
- spire/presentation/LineEndLength.py +7 -3
- spire/presentation/LineEndType.py +10 -3
- spire/presentation/LineEndWidth.py +7 -3
- spire/presentation/LineFillFormat.py +38 -19
- spire/presentation/LineJoinType.py +7 -3
- spire/presentation/LinearGradientFill.py +22 -8
- spire/presentation/LocaleFonts.py +40 -16
- spire/presentation/MasterTheme.py +24 -23
- spire/presentation/MetaCharacterType.py +9 -3
- spire/presentation/NotesSlide.py +16 -14
- spire/presentation/NumberedBulletStyle.py +2 -3
- spire/presentation/OleObject.py +39 -27
- spire/presentation/Order.py +2 -3
- spire/presentation/PageSlideCount.py +2 -3
- spire/presentation/ParagraphProperties.py +210 -110
- spire/presentation/PictureShape.py +41 -20
- spire/presentation/Placeholder.py +34 -20
- spire/presentation/PlaceholderSize.py +7 -3
- spire/presentation/PlaceholderType.py +20 -3
- spire/presentation/PptObject.py +10 -7
- spire/presentation/Presentation.py +310 -209
- spire/presentation/PresetCameraType.py +1 -3
- spire/presentation/PresetLightRigType.py +21 -3
- spire/presentation/PresetMaterialType.py +19 -3
- spire/presentation/PresetShadowValue.py +4 -3
- spire/presentation/RectangleAlignment.py +3 -3
- spire/presentation/RelativeRectangle.py +56 -11
- spire/presentation/Section.py +50 -36
- spire/presentation/SectionList.py +69 -59
- spire/presentation/Shape.py +152 -137
- spire/presentation/ShapeAdjust.py +17 -10
- spire/presentation/ShapeAlignment.py +14 -3
- spire/presentation/ShapeArrange.py +10 -3
- spire/presentation/ShapeBevelStyle.py +34 -12
- spire/presentation/ShapeCollection.py +16 -11
- spire/presentation/ShapeElementFillSource.py +10 -3
- spire/presentation/ShapeElementStrokeSource.py +6 -3
- spire/presentation/ShapeLocking.py +18 -6
- spire/presentation/ShapeNode.py +21 -0
- spire/presentation/ShapeStyle.py +58 -39
- spire/presentation/ShapeThreeD.py +58 -36
- spire/presentation/ShapeType.py +1 -3
- spire/presentation/SimpleShapeBaseLocking.py +72 -31
- spire/presentation/SlideBackground.py +31 -36
- spire/presentation/SlideColorScheme.py +15 -10
- spire/presentation/SlideLayoutType.py +39 -3
- spire/presentation/SlideList.py +110 -55
- spire/presentation/SlideOrienation.py +5 -3
- spire/presentation/SlidePicture.py +22 -19
- spire/presentation/SlidePictureLocking.py +14 -6
- spire/presentation/SlideShowType.py +6 -1
- spire/presentation/SlideSize.py +43 -18
- spire/presentation/SlideSizeType.py +20 -3
- spire/presentation/SystemColorType.py +3 -3
- spire/presentation/TabAlignmentType.py +3 -3
- spire/presentation/TabData.py +18 -18
- spire/presentation/TabStop.py +33 -16
- spire/presentation/TextAlignmentType.py +9 -3
- spire/presentation/TextAnchorType.py +11 -3
- spire/presentation/TextAutofitType.py +7 -3
- spire/presentation/TextBulletType.py +8 -3
- spire/presentation/TextCapType.py +7 -3
- spire/presentation/TextCharacterProperties.py +145 -130
- spire/presentation/TextFont.py +35 -21
- spire/presentation/TextHighLightingOptions.py +37 -6
- spire/presentation/TextHorizontalOverflowType.py +6 -3
- spire/presentation/TextLineFormat.py +75 -90
- spire/presentation/TextLineStyle.py +9 -3
- spire/presentation/TextParagraph.py +53 -24
- spire/presentation/TextParagraphProperties.py +124 -103
- spire/presentation/TextRange.py +40 -12
- spire/presentation/TextShapeType.py +46 -3
- spire/presentation/TextStrikethroughType.py +7 -3
- spire/presentation/TextStyle.py +29 -19
- spire/presentation/TextUnderlineType.py +22 -3
- spire/presentation/TextVerticalOverflowType.py +7 -3
- spire/presentation/Theme.py +31 -23
- spire/presentation/TileFlipMode.py +8 -3
- spire/presentation/TriState.py +2 -3
- spire/presentation/VerticalTextType.py +11 -3
- spire/presentation/VideoData.py +17 -18
- spire/presentation/VideoPlayMode.py +7 -3
- spire/presentation/_Presentation.py +40 -9
- spire/presentation/__init__.py +253 -358
- spire/presentation/animation/AnimateType.py +24 -0
- spire/presentation/{AnimationCalculationMode.py → animation/AnimationCalculationMode.py} +7 -3
- spire/presentation/{AnimationColorBehavior.py → animation/AnimationColorBehavior.py} +52 -23
- spire/presentation/{AnimationColorDirection.py → animation/AnimationColorDirection.py} +6 -3
- spire/presentation/{AnimationColorTransform.py → animation/AnimationColorTransform.py} +33 -15
- spire/presentation/{AnimationColorspace.py → animation/AnimationColorspace.py} +6 -3
- spire/presentation/{AnimationCommandBehavior.py → animation/AnimationCommandBehavior.py} +26 -15
- spire/presentation/{AnimationCommandType.py → animation/AnimationCommandType.py} +7 -3
- spire/presentation/{AnimationEffect.py → animation/AnimationEffect.py} +115 -53
- spire/presentation/{AnimationEffectCollection.py → animation/AnimationEffectCollection.py} +64 -38
- spire/presentation/animation/AnimationEffectSubtype.py +164 -0
- spire/presentation/animation/AnimationEffectType.py +466 -0
- spire/presentation/{AnimationFilterEffect.py → animation/AnimationFilterEffect.py} +33 -15
- spire/presentation/{AnimationMotion.py → animation/AnimationMotion.py} +38 -10
- spire/presentation/{AnimationMotionOrigin.py → animation/AnimationMotionOrigin.py} +6 -3
- spire/presentation/{AnimationMotionPathEditMode.py → animation/AnimationMotionPathEditMode.py} +6 -3
- spire/presentation/{AnimationProperty.py → animation/AnimationProperty.py} +63 -28
- spire/presentation/{AnimationRepeatType.py → animation/AnimationRepeatType.py} +6 -3
- spire/presentation/{AnimationRestartType.py → animation/AnimationRestartType.py} +7 -3
- spire/presentation/{AnimationRotation.py → animation/AnimationRotation.py} +7 -15
- spire/presentation/{AnimationScale.py → animation/AnimationScale.py} +43 -18
- spire/presentation/{AnimationSet.py → animation/AnimationSet.py} +7 -7
- spire/presentation/{AnimationTriggerType.py → animation/AnimationTriggerType.py} +8 -3
- spire/presentation/{BehaviorAccumulateType.py → animation/BehaviorAccumulateType.py} +6 -3
- spire/presentation/animation/BehaviorAdditiveType.py +27 -0
- spire/presentation/{CommonBehavior.py → animation/CommonBehavior.py} +41 -18
- spire/presentation/{CommonBehaviorCollection.py → animation/CommonBehaviorCollection.py} +76 -47
- spire/presentation/animation/FilterEffectSubtype.py +70 -0
- spire/presentation/animation/FilterEffectType.py +71 -0
- spire/presentation/animation/FilterEffectsType.py +21 -0
- spire/presentation/{FilterRevealType.py → animation/FilterRevealType.py} +7 -3
- spire/presentation/{GraphicAnimation.py → animation/GraphicAnimation.py} +10 -6
- spire/presentation/{GraphicAnimationCollection.py → animation/GraphicAnimationCollection.py} +20 -17
- spire/presentation/animation/GraphicBuildType.py +25 -0
- spire/presentation/{MotionCmdPath.py → animation/MotionCmdPath.py} +35 -7
- spire/presentation/animation/MotionCommandPathType.py +25 -0
- spire/presentation/{MotionPath.py → animation/MotionPath.py} +43 -21
- spire/presentation/animation/MotionPathPointsType.py +33 -0
- spire/presentation/animation/ParagraphBuildType.py +31 -0
- spire/presentation/animation/PropertyValueType.py +23 -0
- spire/presentation/{SequenceCollection.py → animation/SequenceCollection.py} +32 -30
- spire/presentation/{TextAnimation.py → animation/TextAnimation.py} +14 -11
- spire/presentation/{TextAnimationCollection.py → animation/TextAnimationCollection.py} +41 -20
- spire/presentation/{TimeAnimationValue.py → animation/TimeAnimationValue.py} +14 -14
- spire/presentation/{TimeAnimationValueCollection.py → animation/TimeAnimationValueCollection.py} +11 -15
- spire/presentation/{TimeLine.py → animation/TimeLine.py} +20 -11
- spire/presentation/{TimeNode.py → animation/TimeNode.py} +16 -4
- spire/presentation/{TimeNodeAudio.py → animation/TimeNodeAudio.py} +31 -19
- spire/presentation/{TimeNodeMedia.py → animation/TimeNodeMedia.py} +9 -3
- spire/presentation/animation/TimeNodePresetClassType.py +29 -0
- spire/presentation/{TimeNodes.py → animation/TimeNodes.py} +32 -8
- spire/presentation/{Timing.py → animation/Timing.py} +67 -47
- spire/presentation/animation/__init__.py +0 -0
- spire/presentation/{AxisPositionType.py → charts/AxisPositionType.py} +7 -3
- spire/presentation/{AxisType.py → charts/AxisType.py} +6 -3
- spire/presentation/{CellRange.py → charts/CellRange.py} +54 -51
- spire/presentation/{CellRanges.py → charts/CellRanges.py} +43 -27
- spire/presentation/{ChartAxis.py → charts/ChartAxis.py} +109 -124
- spire/presentation/{ChartBaseUnitType.py → charts/ChartBaseUnitType.py} +2 -3
- spire/presentation/{ChartCategory.py → charts/ChartCategory.py} +12 -6
- spire/presentation/{ChartCategoryCollection.py → charts/ChartCategoryCollection.py} +65 -44
- spire/presentation/{ChartCrossesType.py → charts/ChartCrossesType.py} +6 -3
- spire/presentation/{ChartData.py → charts/ChartData.py} +111 -62
- spire/presentation/{ChartDataLabel.py → charts/ChartDataLabel.py} +95 -89
- spire/presentation/{ChartDataLabelCollection.py → charts/ChartDataLabelCollection.py} +105 -82
- spire/presentation/charts/ChartDataLabelPosition.py +35 -0
- spire/presentation/{ChartDataPoint.py → charts/ChartDataPoint.py} +62 -48
- spire/presentation/{ChartDataPointCollection.py → charts/ChartDataPointCollection.py} +21 -18
- spire/presentation/{ChartDataTable.py → charts/ChartDataTable.py} +37 -34
- spire/presentation/charts/ChartDisplayUnitType.py +37 -0
- spire/presentation/{ChartEffectFormat.py → charts/ChartEffectFormat.py} +13 -14
- spire/presentation/{ChartLegend.py → charts/ChartLegend.py} +63 -59
- spire/presentation/{ChartLegendPositionType.py → charts/ChartLegendPositionType.py} +9 -3
- spire/presentation/charts/ChartMarkerType.py +39 -0
- spire/presentation/{ChartPlotArea.py → charts/ChartPlotArea.py} +35 -34
- spire/presentation/{ChartRotationThreeD.py → charts/ChartRotationThreeD.py} +4 -18
- spire/presentation/{ChartSeriesDataFormat.py → charts/ChartSeriesDataFormat.py} +52 -130
- spire/presentation/{ChartSeriesFormatCollection.py → charts/ChartSeriesFormatCollection.py} +69 -43
- spire/presentation/{ChartShapeType.py → charts/ChartShapeType.py} +10 -3
- spire/presentation/{ChartStyle.py → charts/ChartStyle.py} +1 -3
- spire/presentation/{ChartTextArea.py → charts/ChartTextArea.py} +14 -38
- spire/presentation/{ChartType.py → charts/ChartType.py} +2 -3
- spire/presentation/{ChartWallsOrFloor.py → charts/ChartWallsOrFloor.py} +25 -24
- spire/presentation/{CrossBetweenType.py → charts/CrossBetweenType.py} +4 -0
- spire/presentation/{DataLabelShapeType.py → charts/DataLabelShapeType.py} +1 -3
- spire/presentation/{DisplayBlanksAsType.py → charts/DisplayBlanksAsType.py} +2 -3
- spire/presentation/{ErrorBarSimpleType.py → charts/ErrorBarSimpleType.py} +6 -1
- spire/presentation/charts/ErrorValueType.py +25 -0
- spire/presentation/{HistogramAxisFormat.py → charts/HistogramAxisFormat.py} +3 -7
- spire/presentation/{IChart.py → charts/IChart.py} +69 -174
- spire/presentation/{IChartAxis.py → charts/IChartAxis.py} +95 -133
- spire/presentation/{IChartEffectFormat.py → charts/IChartEffectFormat.py} +9 -21
- spire/presentation/{IChartGridLine.py → charts/IChartGridLine.py} +23 -57
- spire/presentation/{IErrorBarsFormat.py → charts/IErrorBarsFormat.py} +9 -21
- spire/presentation/{ITrendlineLabel.py → charts/ITrendlineLabel.py} +23 -16
- spire/presentation/{ITrendlines.py → charts/ITrendlines.py} +107 -49
- spire/presentation/{InteriorColorPattern.py → charts/InteriorColorPattern.py} +1 -1
- spire/presentation/{LayoutProperty.py → charts/LayoutProperty.py} +26 -25
- spire/presentation/{LegendEntry.py → charts/LegendEntry.py} +7 -6
- spire/presentation/{LegendEntryCollection.py → charts/LegendEntryCollection.py} +17 -7
- spire/presentation/{PictureType.py → charts/PictureType.py} +7 -3
- spire/presentation/charts/ProjectionType.py +22 -0
- spire/presentation/{QuartileCalculation.py → charts/QuartileCalculation.py} +3 -3
- spire/presentation/{TickLabelPositionType.py → charts/TickLabelPositionType.py} +7 -3
- spire/presentation/{TickMarkType.py → charts/TickMarkType.py} +7 -3
- spire/presentation/{TreeMapLabelOption.py → charts/TreeMapLabelOption.py} +6 -3
- spire/presentation/charts/TrendlinesType.py +27 -0
- spire/presentation/charts/__init__.py +0 -0
- spire/presentation/{CommentAuthorCollection.py → collections/CommentAuthorCollection.py} +13 -10
- spire/presentation/{CommentAuthorList.py → collections/CommentAuthorList.py} +49 -18
- spire/presentation/{CommentCollection.py → collections/CommentCollection.py} +11 -24
- spire/presentation/{CommentList.py → collections/CommentList.py} +60 -73
- spire/presentation/{EffectDataCollection.py → collections/EffectDataCollection.py} +22 -23
- spire/presentation/{EffectStyleCollection.py → collections/EffectStyleCollection.py} +14 -10
- spire/presentation/{EffectStyleList.py → collections/EffectStyleList.py} +15 -17
- spire/presentation/{EmbedImageList.py → collections/EmbedImageList.py} +28 -24
- spire/presentation/{FillFormatCollection.py → collections/FillFormatCollection.py} +12 -24
- spire/presentation/{FillFormatList.py → collections/FillFormatList.py} +2 -3
- spire/presentation/{FillListBase.py → collections/FillListBase.py} +25 -16
- spire/presentation/{FillStyleCollection.py → collections/FillStyleCollection.py} +18 -11
- spire/presentation/{FillStyleList.py → collections/FillStyleList.py} +10 -4
- spire/presentation/{GradientStopCollection.py → collections/GradientStopCollection.py} +4 -21
- spire/presentation/{GradientStopDataCollection.py → collections/GradientStopDataCollection.py} +7 -31
- spire/presentation/{GradientStopList.py → collections/GradientStopList.py} +41 -53
- spire/presentation/{IMasterLayouts.py → collections/IMasterLayouts.py} +25 -7
- spire/presentation/{ImageCollection.py → collections/ImageCollection.py} +4 -22
- spire/presentation/{ImageTransformEffectCollection.py → collections/ImageTransformEffectCollection.py} +4 -22
- spire/presentation/{LineStyleCollection.py → collections/LineStyleCollection.py} +18 -25
- spire/presentation/{LineStyleList.py → collections/LineStyleList.py} +25 -15
- spire/presentation/{MasterSlideCollection.py → collections/MasterSlideCollection.py} +9 -26
- spire/presentation/{MasterSlideList.py → collections/MasterSlideList.py} +47 -33
- spire/presentation/{OleObjectCollection.py → collections/OleObjectCollection.py} +34 -48
- spire/presentation/{OleObjectProperties.py → collections/OleObjectProperties.py} +45 -56
- spire/presentation/{ParagraphCollection.py → collections/ParagraphCollection.py} +16 -26
- spire/presentation/{ParagraphList.py → collections/ParagraphList.py} +68 -45
- spire/presentation/{ShapeAdjustCollection.py → collections/ShapeAdjustCollection.py} +13 -27
- spire/presentation/{ShapeAdjustmentList.py → collections/ShapeAdjustmentList.py} +11 -12
- spire/presentation/{ShapeList.py → collections/ShapeList.py} +384 -323
- spire/presentation/{SlideCollection.py → collections/SlideCollection.py} +9 -10
- spire/presentation/{SlideColorSchemeCollection.py → collections/SlideColorSchemeCollection.py} +31 -23
- spire/presentation/{TabStopCollection.py → collections/TabStopCollection.py} +10 -10
- spire/presentation/{TabStopList.py → collections/TabStopList.py} +37 -33
- spire/presentation/{TagCollection.py → collections/TagCollection.py} +12 -25
- spire/presentation/{TagList.py → collections/TagList.py} +55 -51
- spire/presentation/{TextLineFormatCollection.py → collections/TextLineFormatCollection.py} +10 -24
- spire/presentation/{TextLineFormatList.py → collections/TextLineFormatList.py} +17 -13
- spire/presentation/{TextRangeCollection.py → collections/TextRangeCollection.py} +17 -26
- spire/presentation/{TextRangeList.py → collections/TextRangeList.py} +49 -33
- spire/presentation/{VideoCollection.py → collections/VideoCollection.py} +26 -20
- spire/presentation/{WavAudioCollection.py → collections/WavAudioCollection.py} +27 -23
- spire/presentation/collections/__init__.py +0 -0
- spire/presentation/{ISmartArt.py → diagrams/ISmartArt.py} +42 -14
- spire/presentation/{ISmartArtNode.py → diagrams/ISmartArtNode.py} +119 -10
- spire/presentation/{ISmartArtNodeCollection.py → diagrams/ISmartArtNodeCollection.py} +57 -5
- spire/presentation/{SmartArtColorType.py → diagrams/SmartArtColorType.py} +1 -1
- spire/presentation/{SmartArtLayoutType.py → diagrams/SmartArtLayoutType.py} +1 -1
- spire/presentation/diagrams/SmartArtStyleType.py +43 -0
- spire/presentation/diagrams/__init__.py +0 -0
- spire/presentation/{Backdrop.py → drawing/Backdrop.py} +16 -19
- spire/presentation/{BackgroundType.py → drawing/BackgroundType.py} +6 -3
- spire/presentation/{BevelColorType.py → drawing/BevelColorType.py} +5 -3
- spire/presentation/drawing/BevelPresetType.py +41 -0
- spire/presentation/drawing/BlackWhiteMode.py +39 -0
- spire/presentation/{BlendEffect.py → drawing/BlendEffect.py} +11 -14
- spire/presentation/drawing/BlendMode.py +27 -0
- spire/presentation/{BlurNode.py → drawing/BlurNode.py} +4 -16
- spire/presentation/{ColorFormat.py → drawing/ColorFormat.py} +114 -61
- spire/presentation/{ColorScheme.py → drawing/ColorScheme.py} +59 -49
- spire/presentation/{ColorSchemeIndex.py → drawing/ColorSchemeIndex.py} +1 -3
- spire/presentation/drawing/ColorType.py +27 -0
- spire/presentation/{EffectDag.py → drawing/EffectDag.py} +41 -27
- spire/presentation/drawing/EffectFillType.py +25 -0
- spire/presentation/{EffectNode.py → drawing/EffectNode.py} +2 -3
- spire/presentation/{EffectStyle.py → drawing/EffectStyle.py} +14 -12
- spire/presentation/{ExtensionList.py → drawing/ExtensionList.py} +4 -1
- spire/presentation/{FillFormat.py → drawing/FillFormat.py} +61 -39
- spire/presentation/drawing/FillFormatType.py +29 -0
- spire/presentation/{FillOverlayEffect.py → drawing/FillOverlayEffect.py} +30 -11
- spire/presentation/{FormatScheme.py → drawing/FormatScheme.py} +9 -23
- spire/presentation/{FormatThreeD.py → drawing/FormatThreeD.py} +23 -13
- spire/presentation/{GlowEffect.py → drawing/GlowEffect.py} +15 -13
- spire/presentation/{GlowNode.py → drawing/GlowNode.py} +4 -10
- spire/presentation/{GradientFillFormat.py → drawing/GradientFillFormat.py} +12 -27
- spire/presentation/drawing/GradientShapeType.py +25 -0
- spire/presentation/{GradientStop.py → drawing/GradientStop.py} +1 -9
- spire/presentation/{GradientStopData.py → drawing/GradientStopData.py} +2 -9
- spire/presentation/drawing/GradientStyle.py +26 -0
- spire/presentation/{GraphicFrame.py → drawing/GraphicFrame.py} +41 -73
- spire/presentation/{GraphicalNodeLocking.py → drawing/GraphicalNodeLocking.py} +26 -21
- spire/presentation/{IImageData.py → drawing/IImageData.py} +6 -24
- spire/presentation/{ImageTransform.py → drawing/ImageTransform.py} +42 -36
- spire/presentation/{ImageTransformBase.py → drawing/ImageTransformBase.py} +2 -3
- spire/presentation/{InnerShadowEffect.py → drawing/InnerShadowEffect.py} +15 -18
- spire/presentation/{InnerShadowNode.py → drawing/InnerShadowNode.py} +5 -15
- spire/presentation/{OuterShadowEffect.py → drawing/OuterShadowEffect.py} +60 -35
- spire/presentation/{OuterShadowNode.py → drawing/OuterShadowNode.py} +51 -33
- spire/presentation/{PatternFillFormat.py → drawing/PatternFillFormat.py} +6 -15
- spire/presentation/drawing/PatternFillType.py +127 -0
- spire/presentation/{PenAlignmentType.py → drawing/PenAlignmentType.py} +6 -3
- spire/presentation/{PictureData.py → drawing/PictureData.py} +15 -15
- spire/presentation/{PictureFillFormat.py → drawing/PictureFillFormat.py} +37 -31
- spire/presentation/{PictureFillType.py → drawing/PictureFillType.py} +5 -3
- spire/presentation/{PresetShadow.py → drawing/PresetShadow.py} +33 -18
- spire/presentation/{PresetShadowNode.py → drawing/PresetShadowNode.py} +20 -15
- spire/presentation/{ReflectionEffect.py → drawing/ReflectionEffect.py} +65 -45
- spire/presentation/{ReflectionNode.py → drawing/ReflectionNode.py} +58 -45
- spire/presentation/{SchemeColor.py → drawing/SchemeColor.py} +2 -3
- spire/presentation/{SoftEdgeEffect.py → drawing/SoftEdgeEffect.py} +11 -7
- spire/presentation/{SoftEdgeNode.py → drawing/SoftEdgeNode.py} +5 -7
- spire/presentation/drawing/__init__.py +0 -0
- spire/presentation/export/PdfConformanceLevel.py +30 -0
- spire/presentation/{SaveToHtmlOption.py → export/SaveToHtmlOption.py} +12 -6
- spire/presentation/{SaveToPdfOption.py → export/SaveToPdfOption.py} +18 -11
- spire/presentation/{SaveToPptxOption.py → export/SaveToPptxOption.py} +12 -6
- spire/presentation/export/__init__.py +0 -0
- spire/presentation/lib/Spire.Presentation.Base.dll +0 -0
- spire/presentation/license/__init__.py +0 -0
- spire/presentation/{Cell.py → table/Cell.py} +56 -107
- spire/presentation/{CellCollection.py → table/CellCollection.py} +45 -31
- spire/presentation/{ColumnCollection.py → table/ColumnCollection.py} +10 -25
- spire/presentation/{ColumnList.py → table/ColumnList.py} +39 -28
- spire/presentation/{ITable.py → table/ITable.py} +117 -137
- spire/presentation/{RowList.py → table/RowList.py} +45 -27
- spire/presentation/table/TableBorderType.py +39 -0
- spire/presentation/{TableColumn.py → table/TableColumn.py} +14 -7
- spire/presentation/{TableRow.py → table/TableRow.py} +14 -7
- spire/presentation/{TableRowCollection.py → table/TableRowCollection.py} +12 -24
- spire/presentation/{TableStylePreset.py → table/TableStylePreset.py} +1 -3
- spire/presentation/table/__init__.py +0 -0
- spire/presentation/{BlindsSlideTransition.py → transition/BlindsSlideTransition.py} +9 -5
- spire/presentation/{CoverSlideTransition.py → transition/CoverSlideTransition.py} +20 -7
- spire/presentation/{FlythroughTransition.py → transition/FlythroughTransition.py} +12 -2
- spire/presentation/{GlitterTransition.py → transition/GlitterTransition.py} +10 -2
- spire/presentation/transition/GlitterTransitionDirection.py +31 -0
- spire/presentation/{InvXTransition.py → transition/InvXTransition.py} +10 -2
- spire/presentation/{LRTransition.py → transition/LRTransition.py} +12 -6
- spire/presentation/{OptionalBlackTransition.py → transition/OptionalBlackTransition.py} +16 -8
- spire/presentation/{RevealTransition.py → transition/RevealTransition.py} +11 -1
- spire/presentation/{ShredTransition.py → transition/ShredTransition.py} +14 -3
- spire/presentation/{SideDirectionTransition.py → transition/SideDirectionTransition.py} +12 -7
- spire/presentation/{SlideShowTransition.py → transition/SlideShowTransition.py} +50 -67
- spire/presentation/{SplitSlideTransition.py → transition/SplitSlideTransition.py} +14 -7
- spire/presentation/{StripsSlideTransition.py → transition/StripsSlideTransition.py} +14 -3
- spire/presentation/{Transition.py → transition/Transition.py} +10 -3
- spire/presentation/transition/TransitionCornerDirection.py +25 -0
- spire/presentation/{TransitionDirection.py → transition/TransitionDirection.py} +6 -3
- spire/presentation/transition/TransitionEightDirection.py +33 -0
- spire/presentation/{TransitionFlythroughInOutDirection.py → transition/TransitionFlythroughInOutDirection.py} +7 -3
- spire/presentation/{TransitionInOutDirection.py → transition/TransitionInOutDirection.py} +6 -3
- spire/presentation/transition/TransitionRevealLRDirection.py +23 -0
- spire/presentation/transition/TransitionShredInOutDirection.py +23 -0
- spire/presentation/{TransitionSideDirectionType.py → transition/TransitionSideDirectionType.py} +7 -3
- spire/presentation/{TransitionSoundMode.py → transition/TransitionSoundMode.py} +6 -3
- spire/presentation/{TransitionSpeed.py → transition/TransitionSpeed.py} +7 -3
- spire/presentation/{TransitionSplitDirection.py → transition/TransitionSplitDirection.py} +7 -3
- spire/presentation/{TransitionTwoDirection.py → transition/TransitionTwoDirection.py} +5 -3
- spire/presentation/transition/TransitionType.py +127 -0
- spire/presentation/{WheelSlideTransition.py → transition/WheelSlideTransition.py} +11 -6
- spire/presentation/{ZoomSlideTransition.py → transition/ZoomSlideTransition.py} +11 -7
- spire/presentation/transition/__init__.py +0 -0
- {spire_presentation-10.6.4.dist-info → spire_presentation-10.7.1.dist-info}/METADATA +1 -1
- spire_presentation-10.7.1.dist-info/RECORD +440 -0
- spire/presentation/AnimateType.py +0 -16
- spire/presentation/AnimationEffectSubtype.py +0 -65
- spire/presentation/AnimationEffectType.py +0 -166
- spire/presentation/BehaviorAdditiveType.py +0 -21
- spire/presentation/BevelPresetType.py +0 -28
- spire/presentation/BlackWhiteMode.py +0 -27
- spire/presentation/BlendMode.py +0 -21
- spire/presentation/ChartDataLabelPosition.py +0 -25
- spire/presentation/ChartDisplayUnitType.py +0 -26
- spire/presentation/ChartMarkerType.py +0 -27
- spire/presentation/ColorType.py +0 -19
- spire/presentation/DocumentEditException.py +0 -14
- spire/presentation/DocumentReadException.py +0 -14
- spire/presentation/DocumentUnkownFormatException.py +0 -14
- spire/presentation/EffectFillType.py +0 -20
- spire/presentation/ErrorValueType.py +0 -18
- spire/presentation/FillFormatType.py +0 -22
- spire/presentation/FilterEffectSubtype.py +0 -42
- spire/presentation/FilterEffectType.py +0 -34
- spire/presentation/FilterEffectsType.py +0 -16
- spire/presentation/GlitterTransitionDirection.py +0 -23
- spire/presentation/GradientShapeType.py +0 -20
- spire/presentation/GradientStyle.py +0 -21
- spire/presentation/GraphicBuildType.py +0 -20
- spire/presentation/HeaderType.py +0 -20
- spire/presentation/MotionCommandPathType.py +0 -20
- spire/presentation/MotionPathPointsType.py +0 -24
- spire/presentation/ParagraphBuildType.py +0 -23
- spire/presentation/PatternFillType.py +0 -71
- spire/presentation/PdfConformanceLevel.py +0 -22
- spire/presentation/PresentationTranslator.py +0 -31
- spire/presentation/ProjectionType.py +0 -16
- spire/presentation/PropertyValueType.py +0 -19
- spire/presentation/SmartArtStyleType.py +0 -27
- spire/presentation/TableBorderType.py +0 -27
- spire/presentation/TimeNodePresetClassType.py +0 -22
- spire/presentation/TransitionCornerDirection.py +0 -20
- spire/presentation/TransitionEightDirection.py +0 -24
- spire/presentation/TransitionRevealLRDirection.py +0 -19
- spire/presentation/TransitionShredInOutDirection.py +0 -19
- spire/presentation/TransitionType.py +0 -71
- spire/presentation/TrendlinesType.py +0 -19
- spire/presentation/UOPReader.py +0 -24
- spire/presentation/UOPWriter.py +0 -24
- spire_presentation-10.6.4.dist-info/RECORD +0 -438
- /spire/presentation/{Geography.py → charts/Geography.py} +0 -0
- /spire/presentation/{LicenseProvider.py → license/LicenseProvider.py} +0 -0
- {spire_presentation-10.6.4.dist-info → spire_presentation-10.7.1.dist-info}/WHEEL +0 -0
- {spire_presentation-10.6.4.dist-info → spire_presentation-10.7.1.dist-info}/top_level.txt +0 -0
|
@@ -9,9 +9,25 @@ from ctypes import *
|
|
|
9
9
|
import abc
|
|
10
10
|
|
|
11
11
|
class ShapeList (SpireObject) :
|
|
12
|
+
"""
|
|
13
|
+
Represents a collection of shapes on a presentation slide.
|
|
14
|
+
|
|
15
|
+
This class provides methods to manage and manipulate shapes including adding,
|
|
16
|
+
removing, accessing, and converting shapes. It supports various shape types
|
|
17
|
+
including charts, images, videos, audio, tables, and smart art.
|
|
18
|
+
"""
|
|
12
19
|
|
|
13
20
|
@dispatch
|
|
14
21
|
def __getitem__(self, key):
|
|
22
|
+
"""
|
|
23
|
+
Gets the shape at the specified index.
|
|
24
|
+
|
|
25
|
+
Args:
|
|
26
|
+
key: Index of the shape to retrieve
|
|
27
|
+
|
|
28
|
+
Returns:
|
|
29
|
+
IShape: The shape object at the specified index
|
|
30
|
+
"""
|
|
15
31
|
if key >= self.Count:
|
|
16
32
|
raise StopIteration
|
|
17
33
|
GetDllLibPpt().ShapeList_get_Item.argtypes=[c_void_p ,c_int]
|
|
@@ -52,18 +68,13 @@ class ShapeList (SpireObject) :
|
|
|
52
68
|
|
|
53
69
|
return ret
|
|
54
70
|
|
|
55
|
-
"""
|
|
56
|
-
<summary>
|
|
57
|
-
Represents a collection of a shapes.
|
|
58
|
-
</summary>
|
|
59
|
-
"""
|
|
60
71
|
|
|
61
72
|
def GetEnumerator(self)->'IEnumerator':
|
|
62
73
|
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
Gets an enumerator that iterates through the paragraph collection.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
IEnumerator: An enumerator that can be used to iterate through the collection
|
|
67
78
|
"""
|
|
68
79
|
GetDllLibPpt().ShapeList_GetEnumerator.argtypes=[c_void_p]
|
|
69
80
|
GetDllLibPpt().ShapeList_GetEnumerator.restype=c_void_p
|
|
@@ -76,10 +87,10 @@ class ShapeList (SpireObject) :
|
|
|
76
87
|
|
|
77
88
|
def Parent(self)->'SpireObject':
|
|
78
89
|
"""
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
Gets parent object for the shapes collection.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
SpireObject: Parent object of the shape collection
|
|
83
94
|
"""
|
|
84
95
|
GetDllLibPpt().ShapeList_get_Parent.argtypes=[c_void_p]
|
|
85
96
|
GetDllLibPpt().ShapeList_get_Parent.restype=c_void_p
|
|
@@ -91,10 +102,10 @@ class ShapeList (SpireObject) :
|
|
|
91
102
|
|
|
92
103
|
def AddFromHtml(self ,htmlText:str):
|
|
93
104
|
"""
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
105
|
+
Adds text from specified HTML string.
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
htmlText: HTML text to add as shapes
|
|
98
109
|
"""
|
|
99
110
|
|
|
100
111
|
htmlTextPtr = StrToPtr(htmlText)
|
|
@@ -103,7 +114,11 @@ class ShapeList (SpireObject) :
|
|
|
103
114
|
|
|
104
115
|
def AddFromSVG(self ,svgFilePath:str,rectangle:'RectangleF'):
|
|
105
116
|
"""
|
|
106
|
-
|
|
117
|
+
Adds shapes from an SVG file.
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
svgFilePath: Path to SVG file
|
|
121
|
+
rectangle: Bounding rectangle for the SVG content
|
|
107
122
|
"""
|
|
108
123
|
|
|
109
124
|
svgFilePathPtr = StrToPtr(svgFilePath)
|
|
@@ -111,6 +126,19 @@ class ShapeList (SpireObject) :
|
|
|
111
126
|
GetDllLibPpt().ShapeList_AddFromSVG.argtypes=[c_void_p ,c_char_p,c_void_p]
|
|
112
127
|
CallCFunction(GetDllLibPpt().ShapeList_AddFromSVG,self.Ptr,svgFilePathPtr,intPtrrectangle)
|
|
113
128
|
|
|
129
|
+
|
|
130
|
+
def AddFromSVGAsShapes(self ,svgFilePath:str):
|
|
131
|
+
"""
|
|
132
|
+
Adds shapes from an SVG file.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
svgFilePath: Path to SVG file.
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
svgFilePathPtr = StrToPtr(svgFilePath)
|
|
139
|
+
GetDllLibPpt().ShapeList_AddFromSVGAsShapes.argtypes=[c_void_p ,c_char_p]
|
|
140
|
+
CallCFunction(GetDllLibPpt().ShapeList_AddFromSVGAsShapes,self.Ptr,svgFilePathPtr)
|
|
141
|
+
|
|
114
142
|
|
|
115
143
|
def Equals(self ,obj:'SpireObject')->bool:
|
|
116
144
|
"""
|
|
@@ -126,10 +154,8 @@ class ShapeList (SpireObject) :
|
|
|
126
154
|
@property
|
|
127
155
|
def Count(self)->int:
|
|
128
156
|
"""
|
|
129
|
-
<summary>
|
|
130
157
|
Gets the number of elements actually contained in the collection.
|
|
131
|
-
|
|
132
|
-
</summary>
|
|
158
|
+
|
|
133
159
|
"""
|
|
134
160
|
GetDllLibPpt().ShapeList_get_Count.argtypes=[c_void_p]
|
|
135
161
|
GetDllLibPpt().ShapeList_get_Count.restype=c_int
|
|
@@ -139,10 +165,8 @@ class ShapeList (SpireObject) :
|
|
|
139
165
|
|
|
140
166
|
def get_Item(self ,index:int)->'IShape':
|
|
141
167
|
"""
|
|
142
|
-
<summary>
|
|
143
168
|
Gets the element at the specified index.
|
|
144
|
-
|
|
145
|
-
</summary>
|
|
169
|
+
|
|
146
170
|
"""
|
|
147
171
|
|
|
148
172
|
GetDllLibPpt().ShapeList_get_Item.argtypes=[c_void_p ,c_int]
|
|
@@ -153,12 +177,17 @@ class ShapeList (SpireObject) :
|
|
|
153
177
|
|
|
154
178
|
def SaveAsImage(self ,shapeIndex:int, dpiX:int = 96,dpiY:int=96)->'Stream':
|
|
155
179
|
"""
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
180
|
+
Saves shapes to an image stream.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
shapeIndex: Index of the shape to save
|
|
184
|
+
dpiX: Horizontal DPI (default 96)
|
|
185
|
+
dpiY: Vertical DPI (default 96)
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
Stream: Image data stream
|
|
161
189
|
"""
|
|
190
|
+
|
|
162
191
|
GetDllLibPpt().ShapeList_SaveAsImageDpi.argtypes=[c_void_p ,c_int,c_int,c_int]
|
|
163
192
|
GetDllLibPpt().ShapeList_SaveAsImageDpi.restype=c_void_p
|
|
164
193
|
intPtr = CallCFunction(GetDllLibPpt().ShapeList_SaveAsImageDpi,self.Ptr, shapeIndex,dpiX,dpiY)
|
|
@@ -169,12 +198,11 @@ class ShapeList (SpireObject) :
|
|
|
169
198
|
|
|
170
199
|
def SaveAsEMF(self ,shapeIndex:int,filePath:str):
|
|
171
200
|
"""
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<returns></returns>
|
|
201
|
+
Saves shapes to EMF format.
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
shapeIndex: Index of the shape to save
|
|
205
|
+
filePath: Output file path
|
|
178
206
|
"""
|
|
179
207
|
|
|
180
208
|
filePathPtr = StrToPtr(filePath)
|
|
@@ -184,13 +212,15 @@ class ShapeList (SpireObject) :
|
|
|
184
212
|
|
|
185
213
|
def CreateChart(self ,baseChart:'IChart',rectangle:'RectangleF',nIndex:int)->'IChart':
|
|
186
214
|
"""
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
215
|
+
Clones a chart and inserts it into shapes.
|
|
216
|
+
|
|
217
|
+
Args:
|
|
218
|
+
baseChart: Source chart to clone
|
|
219
|
+
rectangle: Bounding rectangle for new chart
|
|
220
|
+
nIndex: Insertion index (-1 for append)
|
|
221
|
+
|
|
222
|
+
Returns:
|
|
223
|
+
IChart: Newly created chart
|
|
194
224
|
"""
|
|
195
225
|
intPtrbaseChart:c_void_p = baseChart.Ptr
|
|
196
226
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -204,13 +234,15 @@ class ShapeList (SpireObject) :
|
|
|
204
234
|
|
|
205
235
|
def AppendChartInit(self ,type:ChartType,rectangle:RectangleF,init:bool)->'IChart':
|
|
206
236
|
"""
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
237
|
+
Adds a new chart with initialization option.
|
|
238
|
+
|
|
239
|
+
Args:
|
|
240
|
+
type: Type of chart to create
|
|
241
|
+
rectangle: Bounding rectangle for chart
|
|
242
|
+
init: Initialize with default data
|
|
243
|
+
|
|
244
|
+
Returns:
|
|
245
|
+
IChart: New chart instance
|
|
214
246
|
"""
|
|
215
247
|
enumtype:c_int = type.value
|
|
216
248
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -223,12 +255,14 @@ class ShapeList (SpireObject) :
|
|
|
223
255
|
|
|
224
256
|
def AppendChart(self ,type:ChartType,rectangle:RectangleF)->'IChart':
|
|
225
257
|
"""
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
258
|
+
Adds a new chart with default initialization.
|
|
259
|
+
|
|
260
|
+
Args:
|
|
261
|
+
type: Type of chart to create
|
|
262
|
+
rectangle: Bounding rectangle for chart
|
|
263
|
+
|
|
264
|
+
Returns:
|
|
265
|
+
IChart: New chart instance
|
|
232
266
|
"""
|
|
233
267
|
enumtype:c_int = type.value
|
|
234
268
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -243,7 +277,17 @@ class ShapeList (SpireObject) :
|
|
|
243
277
|
|
|
244
278
|
def AppendSmartArt(self ,x:float,y:float,width:float,height:float,layoutType:'SmartArtLayoutType')->'ISmartArt':
|
|
245
279
|
"""
|
|
246
|
-
|
|
280
|
+
Adds a new SmartArt graphic.
|
|
281
|
+
|
|
282
|
+
Args:
|
|
283
|
+
x: X-coordinate of bounding rectangle
|
|
284
|
+
y: Y-coordinate of bounding rectangle
|
|
285
|
+
width: Width of bounding rectangle
|
|
286
|
+
height: Height of bounding rectangle
|
|
287
|
+
layoutType: SmartArt layout type
|
|
288
|
+
|
|
289
|
+
Returns:
|
|
290
|
+
ISmartArt: New SmartArt instance
|
|
247
291
|
"""
|
|
248
292
|
enumlayoutType:c_int = layoutType.value
|
|
249
293
|
|
|
@@ -257,12 +301,13 @@ class ShapeList (SpireObject) :
|
|
|
257
301
|
|
|
258
302
|
def InsertChart(self ,index:int,type:'ChartType',rectangle:'RectangleF',init:bool):
|
|
259
303
|
"""
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
304
|
+
Inserts a new chart at specified position.
|
|
305
|
+
|
|
306
|
+
Args:
|
|
307
|
+
index: Insertion index
|
|
308
|
+
type: Type of chart to create
|
|
309
|
+
rectangle: Bounding rectangle for chart
|
|
310
|
+
init: Initialize with default data
|
|
266
311
|
"""
|
|
267
312
|
enumtype:c_int = type.value
|
|
268
313
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -272,13 +317,15 @@ class ShapeList (SpireObject) :
|
|
|
272
317
|
|
|
273
318
|
def AppendOleObject(self ,objectName:str,objectData:'Stream',rectangle:RectangleF)->IOleObject:
|
|
274
319
|
"""
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
320
|
+
Adds a new OLE object.
|
|
321
|
+
|
|
322
|
+
Args:
|
|
323
|
+
objectName: Name of the OLE object
|
|
324
|
+
objectData: Data stream for the object
|
|
325
|
+
rectangle: Bounding rectangle
|
|
326
|
+
|
|
327
|
+
Returns:
|
|
328
|
+
IOleObject: New OLE object instance
|
|
282
329
|
"""
|
|
283
330
|
intPtrobjectData:c_void_p = objectData.Ptr
|
|
284
331
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -323,13 +370,13 @@ class ShapeList (SpireObject) :
|
|
|
323
370
|
|
|
324
371
|
def InsertOleObject(self ,index:int,objectName:str,objectData:'Stream',rectangle:RectangleF):
|
|
325
372
|
"""
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
373
|
+
Inserts an OLE object at specified position.
|
|
374
|
+
|
|
375
|
+
Args:
|
|
376
|
+
index: Insertion index
|
|
377
|
+
objectName: Name of the OLE object
|
|
378
|
+
objectData: Data stream for the object
|
|
379
|
+
rectangle: Bounding rectangle
|
|
333
380
|
"""
|
|
334
381
|
intPtrobjectData:c_void_p = objectData.Ptr
|
|
335
382
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -366,12 +413,14 @@ class ShapeList (SpireObject) :
|
|
|
366
413
|
|
|
367
414
|
def AppendVideoMedia(self ,filePath:str,rectangle:RectangleF)->'IVideo':
|
|
368
415
|
"""
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
416
|
+
Adds a new video (internal link mode).
|
|
417
|
+
|
|
418
|
+
Args:
|
|
419
|
+
filePath: Path to video file
|
|
420
|
+
rectangle: Bounding rectangle
|
|
421
|
+
|
|
422
|
+
Returns:
|
|
423
|
+
IVideo: New video object
|
|
375
424
|
"""
|
|
376
425
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
377
426
|
|
|
@@ -384,13 +433,15 @@ class ShapeList (SpireObject) :
|
|
|
384
433
|
|
|
385
434
|
def AppendVideoMediaLink(self ,filePath:str,rectangle:RectangleF,isInnerLink:bool)->'IVideo':
|
|
386
435
|
"""
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
436
|
+
Adds a new video with link option.
|
|
437
|
+
|
|
438
|
+
Args:
|
|
439
|
+
filePath: Path to video file
|
|
440
|
+
rectangle: Bounding rectangle
|
|
441
|
+
isInnerLink: Use internal link
|
|
442
|
+
|
|
443
|
+
Returns:
|
|
444
|
+
IVideo: New video object
|
|
394
445
|
"""
|
|
395
446
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
396
447
|
|
|
@@ -404,13 +455,14 @@ class ShapeList (SpireObject) :
|
|
|
404
455
|
|
|
405
456
|
def AppendVideoMediaByStream(self ,stream:Stream,rectangle:RectangleF)->'IVideo':
|
|
406
457
|
"""
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
458
|
+
Adds a new video from stream.
|
|
459
|
+
|
|
460
|
+
Args:
|
|
461
|
+
stream: Video data stream
|
|
462
|
+
rectangle: Bounding rectangle
|
|
463
|
+
|
|
464
|
+
Returns:
|
|
465
|
+
IVideo: New video object
|
|
414
466
|
"""
|
|
415
467
|
intPtrstream:c_void_p = stream.Ptr
|
|
416
468
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -425,12 +477,12 @@ class ShapeList (SpireObject) :
|
|
|
425
477
|
|
|
426
478
|
def InsertVideoMedia(self ,index:int,filePath:str,rectangle:'RectangleF'):
|
|
427
479
|
"""
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
480
|
+
Inserts a video at specified position.
|
|
481
|
+
|
|
482
|
+
Args:
|
|
483
|
+
index: Insertion index
|
|
484
|
+
filePath: Path to video file
|
|
485
|
+
rectangle: Bounding rectangle
|
|
434
486
|
"""
|
|
435
487
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
436
488
|
|
|
@@ -442,11 +494,13 @@ class ShapeList (SpireObject) :
|
|
|
442
494
|
|
|
443
495
|
def AppendAudioMediaByRect(self ,rectangle:RectangleF)->'IAudio':
|
|
444
496
|
"""
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
497
|
+
Adds an audio placeholder (CD audio).
|
|
498
|
+
|
|
499
|
+
Args:
|
|
500
|
+
rectangle: Bounding rectangle
|
|
501
|
+
|
|
502
|
+
Returns:
|
|
503
|
+
IAudio: New audio object
|
|
450
504
|
"""
|
|
451
505
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
452
506
|
|
|
@@ -461,11 +515,11 @@ class ShapeList (SpireObject) :
|
|
|
461
515
|
|
|
462
516
|
def InsertAudioMedia(self ,index:int,rectangle:RectangleF):
|
|
463
517
|
"""
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
518
|
+
Inserts an audio placeholder (CD audio).
|
|
519
|
+
|
|
520
|
+
Args:
|
|
521
|
+
index: Insertion index
|
|
522
|
+
rectangle: Bounding rectangle
|
|
469
523
|
"""
|
|
470
524
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
471
525
|
|
|
@@ -476,14 +530,16 @@ class ShapeList (SpireObject) :
|
|
|
476
530
|
|
|
477
531
|
def AppendAudioMediaByPathXYEmbed(self ,filePath:str,X:float,Y:float,isEmbed:bool)->'IAudio':
|
|
478
532
|
"""
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
533
|
+
Adds a new audio file with embedding option.
|
|
534
|
+
|
|
535
|
+
Args:
|
|
536
|
+
filePath: Path to audio file
|
|
537
|
+
X: X-coordinate
|
|
538
|
+
Y: Y-coordinate
|
|
539
|
+
isEmbed: Embed audio in presentation
|
|
540
|
+
|
|
541
|
+
Returns:
|
|
542
|
+
IAudio: New audio object
|
|
487
543
|
"""
|
|
488
544
|
|
|
489
545
|
filePathPtr = StrToPtr(filePath)
|
|
@@ -498,13 +554,15 @@ class ShapeList (SpireObject) :
|
|
|
498
554
|
|
|
499
555
|
def AppendAudioMediaByPathXY(self ,filePath:str,X:float,Y:float)->'IAudio':
|
|
500
556
|
"""
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
557
|
+
Adds a new audio file.
|
|
558
|
+
|
|
559
|
+
Args:
|
|
560
|
+
filePath: Path to audio file
|
|
561
|
+
X: X-coordinate
|
|
562
|
+
Y: Y-coordinate
|
|
563
|
+
|
|
564
|
+
Returns:
|
|
565
|
+
IAudio: New audio object
|
|
508
566
|
"""
|
|
509
567
|
|
|
510
568
|
filePathPtr = StrToPtr(filePath)
|
|
@@ -518,13 +576,15 @@ class ShapeList (SpireObject) :
|
|
|
518
576
|
|
|
519
577
|
def AppendAudioMediaEmbed(self ,filePath:str,rectangle:RectangleF,isEmbed:bool)->'IAudio':
|
|
520
578
|
"""
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
579
|
+
Adds a new audio file with rectangle and embed option.
|
|
580
|
+
|
|
581
|
+
Args:
|
|
582
|
+
filePath: Path to audio file
|
|
583
|
+
rectangle: Bounding rectangle
|
|
584
|
+
isEmbed: Embed audio in presentation
|
|
585
|
+
|
|
586
|
+
Returns:
|
|
587
|
+
IAudio: New audio object
|
|
528
588
|
"""
|
|
529
589
|
filePathPtr = StrToPtr(filePath)
|
|
530
590
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -536,12 +596,14 @@ class ShapeList (SpireObject) :
|
|
|
536
596
|
|
|
537
597
|
def AppendAudioMedia(self ,filePath:str,rectangle:RectangleF)->'IAudio':
|
|
538
598
|
"""
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
599
|
+
Adds a new audio file with rectangle.
|
|
600
|
+
|
|
601
|
+
Args:
|
|
602
|
+
filePath: Path to audio file
|
|
603
|
+
rectangle: Bounding rectangle
|
|
604
|
+
|
|
605
|
+
Returns:
|
|
606
|
+
IAudio: New audio object
|
|
545
607
|
"""
|
|
546
608
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
547
609
|
|
|
@@ -557,12 +619,13 @@ class ShapeList (SpireObject) :
|
|
|
557
619
|
|
|
558
620
|
def InsertAudioMedia(self ,index:int,filePath:str,rectangle:RectangleF,isEmbed:bool):
|
|
559
621
|
"""
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
622
|
+
Inserts an audio file with embed option.
|
|
623
|
+
|
|
624
|
+
Args:
|
|
625
|
+
index: Insertion index
|
|
626
|
+
filePath: Path to audio file
|
|
627
|
+
rectangle: Bounding rectangle
|
|
628
|
+
isEmbed: Embed audio in presentation
|
|
566
629
|
"""
|
|
567
630
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
568
631
|
|
|
@@ -574,11 +637,12 @@ class ShapeList (SpireObject) :
|
|
|
574
637
|
|
|
575
638
|
def InsertAudioMedia(self ,index:int,filePath:str,rectangle:RectangleF):
|
|
576
639
|
"""
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
640
|
+
Inserts an audio file.
|
|
641
|
+
|
|
642
|
+
Args:
|
|
643
|
+
index: Insertion index
|
|
644
|
+
filePath: Path to audio file
|
|
645
|
+
rectangle: Bounding rectangle
|
|
582
646
|
"""
|
|
583
647
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
584
648
|
|
|
@@ -590,15 +654,15 @@ class ShapeList (SpireObject) :
|
|
|
590
654
|
|
|
591
655
|
def InsertAudioMedia(self ,index:int,filePath:str,X:float,Y:float,isEmbed:bool):
|
|
592
656
|
"""
|
|
593
|
-
|
|
594
|
-
Insert an audio to collection.
|
|
595
|
-
</summary>
|
|
596
|
-
<param name="filePath">Audio file path</param>
|
|
597
|
-
<param name="X">X Position</param>
|
|
598
|
-
<param name="Y">Y Position</param>
|
|
599
|
-
<param name="isEmbed">Whether embed or not,default not</param>
|
|
600
|
-
"""
|
|
657
|
+
Inserts an audio file with coordinates and embed option.
|
|
601
658
|
|
|
659
|
+
Args:
|
|
660
|
+
index: Insertion index
|
|
661
|
+
filePath: Path to audio file
|
|
662
|
+
X: X-coordinate
|
|
663
|
+
Y: Y-coordinate
|
|
664
|
+
isEmbed: Embed audio in presentation
|
|
665
|
+
"""
|
|
602
666
|
filePathPtr = StrToPtr(filePath)
|
|
603
667
|
GetDllLibPpt().ShapeList_InsertAudioMediaIFXYI.argtypes=[c_void_p ,c_int,c_char_p,c_float,c_float,c_bool]
|
|
604
668
|
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaIFXYI,self.Ptr, index,filePathPtr,X,Y,isEmbed)
|
|
@@ -607,12 +671,13 @@ class ShapeList (SpireObject) :
|
|
|
607
671
|
|
|
608
672
|
def InsertAudioMedia(self ,index:int,filePath:str,X:float,Y:float):
|
|
609
673
|
"""
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
674
|
+
Inserts an audio file with coordinates.
|
|
675
|
+
|
|
676
|
+
Args:
|
|
677
|
+
index: Insertion index
|
|
678
|
+
filePath: Path to audio file
|
|
679
|
+
X: X-coordinate
|
|
680
|
+
Y: Y-coordinate
|
|
616
681
|
"""
|
|
617
682
|
|
|
618
683
|
filePathPtr = StrToPtr(filePath)
|
|
@@ -622,12 +687,14 @@ class ShapeList (SpireObject) :
|
|
|
622
687
|
|
|
623
688
|
def AppendAudioMediaByStreamRect(self ,stream:Stream,rectangle:RectangleF)->'IAudio':
|
|
624
689
|
"""
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
690
|
+
Adds a new audio from stream with rectangle.
|
|
691
|
+
|
|
692
|
+
Args:
|
|
693
|
+
stream: Audio data stream
|
|
694
|
+
rectangle: Bounding rectangle
|
|
695
|
+
|
|
696
|
+
Returns:
|
|
697
|
+
IAudio: New audio object
|
|
631
698
|
"""
|
|
632
699
|
intPtrstream:c_void_p = stream.Ptr
|
|
633
700
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -641,12 +708,15 @@ class ShapeList (SpireObject) :
|
|
|
641
708
|
|
|
642
709
|
def AppendAudioMediaByStreamFloat(self ,stream:Stream,X:float,Y:float)->'IAudio':
|
|
643
710
|
"""
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
711
|
+
Adds a new audio from stream with coordinates.
|
|
712
|
+
|
|
713
|
+
Args:
|
|
714
|
+
stream: Audio data stream
|
|
715
|
+
X: X-coordinate
|
|
716
|
+
Y: Y-coordinate
|
|
717
|
+
|
|
718
|
+
Returns:
|
|
719
|
+
IAudio: New audio object
|
|
650
720
|
"""
|
|
651
721
|
intPtrstream:c_void_p = stream.Ptr
|
|
652
722
|
|
|
@@ -661,12 +731,12 @@ class ShapeList (SpireObject) :
|
|
|
661
731
|
|
|
662
732
|
def InsertAudioMedia(self ,index:int,stream:Stream,rectangle:RectangleF):
|
|
663
733
|
"""
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
734
|
+
Inserts an audio from stream.
|
|
735
|
+
|
|
736
|
+
Args:
|
|
737
|
+
index: Insertion index
|
|
738
|
+
stream: Audio data stream
|
|
739
|
+
rectangle: Bounding rectangle
|
|
670
740
|
"""
|
|
671
741
|
intPtrstream:c_void_p = stream.Ptr
|
|
672
742
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -677,11 +747,13 @@ class ShapeList (SpireObject) :
|
|
|
677
747
|
|
|
678
748
|
def IndexOf(self ,shape:'IShape')->int:
|
|
679
749
|
"""
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
750
|
+
Gets the index of the first occurrence of a shape.
|
|
751
|
+
|
|
752
|
+
Args:
|
|
753
|
+
shape: Shape to find
|
|
754
|
+
|
|
755
|
+
Returns:
|
|
756
|
+
int: Index of the shape in the collection
|
|
685
757
|
"""
|
|
686
758
|
intPtrshape:c_void_p = shape.Ptr
|
|
687
759
|
|
|
@@ -690,48 +762,14 @@ class ShapeList (SpireObject) :
|
|
|
690
762
|
ret = CallCFunction(GetDllLibPpt().ShapeList_IndexOf,self.Ptr, intPtrshape)
|
|
691
763
|
return ret
|
|
692
764
|
|
|
693
|
-
# @dispatch
|
|
694
|
-
#
|
|
695
|
-
# def ToArray(self)->List[IShape]:
|
|
696
|
-
# """
|
|
697
|
-
# <summary>
|
|
698
|
-
# Creates and returns an array with all shapse in it.
|
|
699
|
-
# </summary>
|
|
700
|
-
# <returns>Array of <see cref="T:Spire.Presentation.Shape" /></returns>
|
|
701
|
-
# """
|
|
702
|
-
# GetDllLibPpt().ShapeList_ToArray.argtypes=[c_void_p]
|
|
703
|
-
# GetDllLibPpt().ShapeList_ToArray.restype=IntPtrArray
|
|
704
|
-
# intPtrArray = CallCFunction(GetDllLibPpt().ShapeList_ToArray,self.Ptr)
|
|
705
|
-
# ret = GetVectorFromArray(intPtrArray, IShape)
|
|
706
|
-
# return ret
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
# @dispatch
|
|
710
|
-
#
|
|
711
|
-
# def ToArray(self ,startIndex:int,count:int)->List[IShape]:
|
|
712
|
-
# """
|
|
713
|
-
# <summary>
|
|
714
|
-
# Creates and returns an array with all shapes from the specified range in it.
|
|
715
|
-
# <param name="startIndex">An index of a first shape to return.</param> <param name="count">A number of shapes to return.</param></summary>
|
|
716
|
-
# <returns>Array of <see cref="T:Spire.Presentation.Shape" /></returns>
|
|
717
|
-
# """
|
|
718
|
-
#
|
|
719
|
-
# GetDllLibPpt().ShapeList_ToArraySC.argtypes=[c_void_p ,c_int,c_int]
|
|
720
|
-
# GetDllLibPpt().ShapeList_ToArraySC.restype=IntPtrArray
|
|
721
|
-
# intPtrArray = CallCFunction(GetDllLibPpt().ShapeList_ToArraySC,self.Ptr, startIndex,count)
|
|
722
|
-
# ret = GetObjVectorFromArray(intPtrArray, IShape)
|
|
723
|
-
# return ret
|
|
724
|
-
|
|
725
|
-
|
|
726
765
|
@dispatch
|
|
727
766
|
|
|
728
767
|
def ZOrder(self ,index:int,shape:IShape):
|
|
729
768
|
"""
|
|
730
|
-
<summary>
|
|
731
769
|
Change a shape's zorder.
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
770
|
+
Args:
|
|
771
|
+
index:Target index.
|
|
772
|
+
shape:Shape to move.
|
|
735
773
|
"""
|
|
736
774
|
intPtrshape:c_void_p = shape.Ptr
|
|
737
775
|
|
|
@@ -764,12 +802,14 @@ class ShapeList (SpireObject) :
|
|
|
764
802
|
|
|
765
803
|
def AppendShape(self ,shapeType:ShapeType,rectangle:RectangleF)->'IAutoShape':
|
|
766
804
|
"""
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
805
|
+
Adds a new shape to the collection.
|
|
806
|
+
|
|
807
|
+
Args:
|
|
808
|
+
shapeType: Type of shape to create
|
|
809
|
+
rectangle: Bounding rectangle
|
|
810
|
+
|
|
811
|
+
Returns:
|
|
812
|
+
IAutoShape: New shape instance
|
|
773
813
|
"""
|
|
774
814
|
enumshapeType:c_int = shapeType.value
|
|
775
815
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -785,7 +825,15 @@ class ShapeList (SpireObject) :
|
|
|
785
825
|
|
|
786
826
|
def AppendShapeByPoint(self ,shapeType:ShapeType,start:PointF,end:PointF)->'IAutoShape':
|
|
787
827
|
"""
|
|
788
|
-
|
|
828
|
+
Adds a new shape defined by start and end points.
|
|
829
|
+
|
|
830
|
+
Args:
|
|
831
|
+
shapeType: Type of shape to create
|
|
832
|
+
start: Starting point
|
|
833
|
+
end: Ending point
|
|
834
|
+
|
|
835
|
+
Returns:
|
|
836
|
+
IAutoShape: New shape instance
|
|
789
837
|
"""
|
|
790
838
|
enumshapeType:c_int = shapeType.value
|
|
791
839
|
intPtrstart:c_void_p = start.Ptr
|
|
@@ -801,14 +849,17 @@ class ShapeList (SpireObject) :
|
|
|
801
849
|
|
|
802
850
|
def AppendRoundRectangle(self ,x:float,y:float,width:float,height:float,radius:float)->'IAutoShape':
|
|
803
851
|
"""
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
852
|
+
Adds a round rectangle shape.
|
|
853
|
+
|
|
854
|
+
Args:
|
|
855
|
+
x: X-coordinate
|
|
856
|
+
y: Y-coordinate
|
|
857
|
+
width: Width of rectangle
|
|
858
|
+
height: Height of rectangle
|
|
859
|
+
radius: Corner radius
|
|
860
|
+
|
|
861
|
+
Returns:
|
|
862
|
+
IAutoShape: New shape instance
|
|
812
863
|
"""
|
|
813
864
|
|
|
814
865
|
GetDllLibPpt().ShapeList_AppendRoundRectangle.argtypes=[c_void_p ,c_float,c_float,c_float,c_float,c_float]
|
|
@@ -821,12 +872,12 @@ class ShapeList (SpireObject) :
|
|
|
821
872
|
|
|
822
873
|
def InsertShape(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF'):
|
|
823
874
|
"""
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
875
|
+
Inserts a new shape at specified position.
|
|
876
|
+
|
|
877
|
+
Args:
|
|
878
|
+
index: Insertion index
|
|
879
|
+
shapeType: Type of shape to create
|
|
880
|
+
rectangle: Bounding rectangle
|
|
830
881
|
"""
|
|
831
882
|
enumshapeType:c_int = shapeType.value
|
|
832
883
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -837,15 +888,15 @@ class ShapeList (SpireObject) :
|
|
|
837
888
|
|
|
838
889
|
def InsertRoundRectangle(self ,index:int,x:float,y:float,width:float,height:float,radius:float):
|
|
839
890
|
"""
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
891
|
+
Inserts a round rectangle shape.
|
|
892
|
+
|
|
893
|
+
Args:
|
|
894
|
+
index: Insertion index
|
|
895
|
+
x: X-coordinate
|
|
896
|
+
y: Y-coordinate
|
|
897
|
+
width: Width of rectangle
|
|
898
|
+
height: Height of rectangle
|
|
899
|
+
radius: Corner radius
|
|
849
900
|
"""
|
|
850
901
|
|
|
851
902
|
GetDllLibPpt().ShapeList_InsertRoundRectangle.argtypes=[c_void_p ,c_int,c_float,c_float,c_float,c_float,c_float]
|
|
@@ -854,12 +905,14 @@ class ShapeList (SpireObject) :
|
|
|
854
905
|
|
|
855
906
|
def AppendShapeConnector(self ,shapeType:'ShapeType',rectangle:'RectangleF')->'IShape':
|
|
856
907
|
"""
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
908
|
+
Adds a new connector shape.
|
|
909
|
+
|
|
910
|
+
Args:
|
|
911
|
+
shapeType: Type of connector
|
|
912
|
+
rectangle: Bounding rectangle
|
|
913
|
+
|
|
914
|
+
Returns:
|
|
915
|
+
IShape: New connector shape
|
|
863
916
|
"""
|
|
864
917
|
enumshapeType:c_int = shapeType.value
|
|
865
918
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -874,12 +927,12 @@ class ShapeList (SpireObject) :
|
|
|
874
927
|
|
|
875
928
|
def InsertShapeConnector(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF'):
|
|
876
929
|
"""
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
930
|
+
Inserts a new connector shape.
|
|
931
|
+
|
|
932
|
+
Args:
|
|
933
|
+
index: Insertion index
|
|
934
|
+
shapeType: Type of connector
|
|
935
|
+
rectangle: Bounding rectangle
|
|
883
936
|
"""
|
|
884
937
|
enumshapeType:c_int = shapeType.value
|
|
885
938
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -889,13 +942,15 @@ class ShapeList (SpireObject) :
|
|
|
889
942
|
|
|
890
943
|
def AppendEmbedImageByImageData(self ,shapeType:ShapeType,embedImage:'IImageData',rectangle:RectangleF)->'IEmbedImage':
|
|
891
944
|
"""
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
945
|
+
Adds a new embedded image from image data.
|
|
946
|
+
|
|
947
|
+
Args:
|
|
948
|
+
shapeType: Type of image shape
|
|
949
|
+
embedImage: Image data object
|
|
950
|
+
rectangle: Bounding rectangle
|
|
951
|
+
|
|
952
|
+
Returns:
|
|
953
|
+
IEmbedImage: New image shape
|
|
899
954
|
"""
|
|
900
955
|
enumshapeType:c_int = shapeType.value
|
|
901
956
|
intPtrembedImage:c_void_p = embedImage.Ptr
|
|
@@ -910,13 +965,15 @@ class ShapeList (SpireObject) :
|
|
|
910
965
|
|
|
911
966
|
def AppendEmbedImageByPath(self ,shapeType:ShapeType,fileName:str,rectangle:RectangleF)->'IEmbedImage':
|
|
912
967
|
"""
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
968
|
+
Adds a new embedded image from file.
|
|
969
|
+
|
|
970
|
+
Args:
|
|
971
|
+
shapeType: Type of image shape
|
|
972
|
+
fileName: Path to image file
|
|
973
|
+
rectangle: Bounding rectangle
|
|
974
|
+
|
|
975
|
+
Returns:
|
|
976
|
+
IEmbedImage: New image shape
|
|
920
977
|
"""
|
|
921
978
|
enumshapeType:c_int = shapeType.value
|
|
922
979
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -930,13 +987,15 @@ class ShapeList (SpireObject) :
|
|
|
930
987
|
|
|
931
988
|
def AppendEmbedImageByStream(self ,shapeType:ShapeType,stream:Stream,rectangle:RectangleF)->'IEmbedImage':
|
|
932
989
|
"""
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
990
|
+
Adds a new embedded image from stream.
|
|
991
|
+
|
|
992
|
+
Args:
|
|
993
|
+
shapeType: Type of image shape
|
|
994
|
+
stream: Image data stream
|
|
995
|
+
rectangle: Bounding rectangle
|
|
996
|
+
|
|
997
|
+
Returns:
|
|
998
|
+
IEmbedImage: New image shape
|
|
940
999
|
"""
|
|
941
1000
|
enumshapeType:c_int = shapeType.value
|
|
942
1001
|
intPtrstream:c_void_p = stream.Ptr
|
|
@@ -952,13 +1011,13 @@ class ShapeList (SpireObject) :
|
|
|
952
1011
|
|
|
953
1012
|
def InsertEmbedImage(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF',embedImage:'IImageData'):
|
|
954
1013
|
"""
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1014
|
+
Inserts an embedded image.
|
|
1015
|
+
|
|
1016
|
+
Args:
|
|
1017
|
+
index: Insertion index
|
|
1018
|
+
shapeType: Type of image shape
|
|
1019
|
+
rectangle: Bounding rectangle
|
|
1020
|
+
embedImage: Image data object
|
|
962
1021
|
"""
|
|
963
1022
|
enumshapeType:c_int = shapeType.value
|
|
964
1023
|
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
@@ -970,10 +1029,10 @@ class ShapeList (SpireObject) :
|
|
|
970
1029
|
|
|
971
1030
|
def AddShape(self ,shape:'Shape'):
|
|
972
1031
|
"""
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1032
|
+
Adds an existing shape to the collection.
|
|
1033
|
+
|
|
1034
|
+
Args:
|
|
1035
|
+
shape: Shape to add
|
|
977
1036
|
"""
|
|
978
1037
|
intPtrshape:c_void_p = shape.Ptr
|
|
979
1038
|
|
|
@@ -983,14 +1042,16 @@ class ShapeList (SpireObject) :
|
|
|
983
1042
|
|
|
984
1043
|
def AppendTable(self ,x:float,y:float,widths:List[float],heights:List[float])->'ITable':
|
|
985
1044
|
"""
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1045
|
+
Adds a new table to the collection.
|
|
1046
|
+
|
|
1047
|
+
Args:
|
|
1048
|
+
x: X-coordinate
|
|
1049
|
+
y: Y-coordinate
|
|
1050
|
+
widths: List of column widths
|
|
1051
|
+
heights: List of row heights
|
|
1052
|
+
|
|
1053
|
+
Returns:
|
|
1054
|
+
ITable: New table instance
|
|
994
1055
|
"""
|
|
995
1056
|
#arraywidths:ArrayTypewidths = ""
|
|
996
1057
|
countwidths = len(widths)
|
|
@@ -1017,14 +1078,14 @@ class ShapeList (SpireObject) :
|
|
|
1017
1078
|
|
|
1018
1079
|
def InsertTable(self ,index:int,x:float,y:float,columnWidths:List[float],rowHeights:List[float]):
|
|
1019
1080
|
"""
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1081
|
+
Inserts a new table at specified position.
|
|
1082
|
+
|
|
1083
|
+
Args:
|
|
1084
|
+
index: Insertion index
|
|
1085
|
+
x: X-coordinate
|
|
1086
|
+
y: Y-coordinate
|
|
1087
|
+
columnWidths: List of column widths
|
|
1088
|
+
rowHeights: List of row heights
|
|
1028
1089
|
"""
|
|
1029
1090
|
#arraycolumnWidths:ArrayTypecolumnWidths = ""
|
|
1030
1091
|
countcolumnWidths = len(columnWidths)
|
|
@@ -1047,10 +1108,10 @@ class ShapeList (SpireObject) :
|
|
|
1047
1108
|
|
|
1048
1109
|
def RemoveAt(self ,index:int):
|
|
1049
1110
|
"""
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1111
|
+
Removes the shape at the specified index.
|
|
1112
|
+
|
|
1113
|
+
Args:
|
|
1114
|
+
index: Index of shape to remove
|
|
1054
1115
|
"""
|
|
1055
1116
|
|
|
1056
1117
|
GetDllLibPpt().ShapeList_RemoveAt.argtypes=[c_void_p ,c_int]
|
|
@@ -1059,10 +1120,10 @@ class ShapeList (SpireObject) :
|
|
|
1059
1120
|
|
|
1060
1121
|
def Remove(self ,shape:'IShape'):
|
|
1061
1122
|
"""
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1123
|
+
Removes a specific shape from the collection.
|
|
1124
|
+
|
|
1125
|
+
Args:
|
|
1126
|
+
shape: Shape to remove
|
|
1066
1127
|
"""
|
|
1067
1128
|
intPtrshape:c_void_p = shape.Ptr
|
|
1068
1129
|
|