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,1132 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
|
|
5
|
+
from plum.dispatcher import Dispatcher
|
|
6
|
+
from spire.presentation.common import *
|
|
7
|
+
from spire.presentation import *
|
|
8
|
+
from ctypes import *
|
|
9
|
+
import abc
|
|
10
|
+
|
|
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
|
+
"""
|
|
19
|
+
|
|
20
|
+
@dispatch
|
|
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
|
+
"""
|
|
31
|
+
if key >= self.Count:
|
|
32
|
+
raise StopIteration
|
|
33
|
+
GetDllLibPpt().ShapeList_get_Item.argtypes=[c_void_p ,c_int]
|
|
34
|
+
GetDllLibPpt().ShapeList_get_Item.restype=IntPtrWithTypeName
|
|
35
|
+
intPtrWithType = CallCFunction(GetDllLibPpt().ShapeList_get_Item,self.Ptr, key)
|
|
36
|
+
ret = None if intPtrWithType==None else self._create(intPtrWithType)
|
|
37
|
+
return ret
|
|
38
|
+
|
|
39
|
+
@staticmethod
|
|
40
|
+
def _create(intPtrWithTypeName:IntPtrWithTypeName)->'IShape':
|
|
41
|
+
ret = None
|
|
42
|
+
if intPtrWithTypeName == None :
|
|
43
|
+
return ret
|
|
44
|
+
intPtr = intPtrWithTypeName.intPtr[0] + (intPtrWithTypeName.intPtr[1]<<32)
|
|
45
|
+
strName = PtrToStr(intPtrWithTypeName.typeName)
|
|
46
|
+
if(strName == 'GroupShape'):
|
|
47
|
+
ret = GroupShape(intPtr)
|
|
48
|
+
elif (strName == 'IChart'):
|
|
49
|
+
ret = IChart(intPtr)
|
|
50
|
+
elif (strName == 'IAudio'):
|
|
51
|
+
ret = IAudio(intPtr)
|
|
52
|
+
elif (strName == 'IAutoShape'):
|
|
53
|
+
ret = IAutoShape(intPtr)
|
|
54
|
+
elif (strName == 'IEmbedImage'):
|
|
55
|
+
ret = SlidePicture(intPtr)
|
|
56
|
+
elif (strName == 'ITable'):
|
|
57
|
+
ret = ITable(intPtr)
|
|
58
|
+
elif (strName == 'IVideo'):
|
|
59
|
+
ret = IVideo(intPtr)
|
|
60
|
+
elif (strName == 'IOleObject'):
|
|
61
|
+
ret = IOleObject(intPtr)
|
|
62
|
+
elif (strName == 'ISmartArt'):
|
|
63
|
+
ret = ISmartArt(intPtr)
|
|
64
|
+
elif (strName == 'ShapeNode'):
|
|
65
|
+
ret = ShapeNode(intPtr)
|
|
66
|
+
else:
|
|
67
|
+
ret = IShape(intPtr)
|
|
68
|
+
|
|
69
|
+
return ret
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def GetEnumerator(self)->'IEnumerator':
|
|
73
|
+
"""
|
|
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
|
|
78
|
+
"""
|
|
79
|
+
GetDllLibPpt().ShapeList_GetEnumerator.argtypes=[c_void_p]
|
|
80
|
+
GetDllLibPpt().ShapeList_GetEnumerator.restype=c_void_p
|
|
81
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_GetEnumerator,self.Ptr)
|
|
82
|
+
ret = None if intPtr==None else IEnumerator(intPtr)
|
|
83
|
+
return ret
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
|
|
88
|
+
def Parent(self)->'SpireObject':
|
|
89
|
+
"""
|
|
90
|
+
Gets parent object for the shapes collection.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
SpireObject: Parent object of the shape collection
|
|
94
|
+
"""
|
|
95
|
+
GetDllLibPpt().ShapeList_get_Parent.argtypes=[c_void_p]
|
|
96
|
+
GetDllLibPpt().ShapeList_get_Parent.restype=c_void_p
|
|
97
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_get_Parent,self.Ptr)
|
|
98
|
+
ret = None if intPtr==None else SpireObject(intPtr)
|
|
99
|
+
return ret
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def AddFromHtml(self ,htmlText:str):
|
|
104
|
+
"""
|
|
105
|
+
Adds text from specified HTML string.
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
htmlText: HTML text to add as shapes
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
htmlTextPtr = StrToPtr(htmlText)
|
|
112
|
+
GetDllLibPpt().ShapeList_AddFromHtml.argtypes=[c_void_p ,c_char_p]
|
|
113
|
+
CallCFunction(GetDllLibPpt().ShapeList_AddFromHtml,self.Ptr,htmlTextPtr)
|
|
114
|
+
|
|
115
|
+
def AddFromSVG(self ,svgFilePath:str,rectangle:'RectangleF'):
|
|
116
|
+
"""
|
|
117
|
+
Adds shapes from an SVG file.
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
svgFilePath: Path to SVG file
|
|
121
|
+
rectangle: Bounding rectangle for the SVG content
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
svgFilePathPtr = StrToPtr(svgFilePath)
|
|
125
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
126
|
+
GetDllLibPpt().ShapeList_AddFromSVG.argtypes=[c_void_p ,c_char_p,c_void_p]
|
|
127
|
+
CallCFunction(GetDllLibPpt().ShapeList_AddFromSVG,self.Ptr,svgFilePathPtr,intPtrrectangle)
|
|
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
|
+
|
|
142
|
+
|
|
143
|
+
def Equals(self ,obj:'SpireObject')->bool:
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
"""
|
|
147
|
+
intPtrobj:c_void_p = obj.Ptr
|
|
148
|
+
|
|
149
|
+
GetDllLibPpt().ShapeList_Equals.argtypes=[c_void_p ,c_void_p]
|
|
150
|
+
GetDllLibPpt().ShapeList_Equals.restype=c_bool
|
|
151
|
+
ret = CallCFunction(GetDllLibPpt().ShapeList_Equals,self.Ptr, intPtrobj)
|
|
152
|
+
return ret
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def Count(self)->int:
|
|
156
|
+
"""
|
|
157
|
+
Gets the number of elements actually contained in the collection.
|
|
158
|
+
|
|
159
|
+
"""
|
|
160
|
+
GetDllLibPpt().ShapeList_get_Count.argtypes=[c_void_p]
|
|
161
|
+
GetDllLibPpt().ShapeList_get_Count.restype=c_int
|
|
162
|
+
ret = CallCFunction(GetDllLibPpt().ShapeList_get_Count,self.Ptr)
|
|
163
|
+
return ret
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def get_Item(self ,index:int)->'IShape':
|
|
167
|
+
"""
|
|
168
|
+
Gets the element at the specified index.
|
|
169
|
+
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
GetDllLibPpt().ShapeList_get_Item.argtypes=[c_void_p ,c_int]
|
|
173
|
+
GetDllLibPpt().ShapeList_get_Item.restype=c_void_p
|
|
174
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_get_Item,self.Ptr, index)
|
|
175
|
+
ret = None if intPtr==None else IShape(intPtr)
|
|
176
|
+
return ret
|
|
177
|
+
|
|
178
|
+
def SaveAsImage(self ,shapeIndex:int, dpiX:int = 96,dpiY:int=96)->'Stream':
|
|
179
|
+
"""
|
|
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
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
GetDllLibPpt().ShapeList_SaveAsImageDpi.argtypes=[c_void_p ,c_int,c_int,c_int]
|
|
192
|
+
GetDllLibPpt().ShapeList_SaveAsImageDpi.restype=c_void_p
|
|
193
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_SaveAsImageDpi,self.Ptr, shapeIndex,dpiX,dpiY)
|
|
194
|
+
ret = None if intPtr==None else Stream(intPtr)
|
|
195
|
+
return ret
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def SaveAsEMF(self ,shapeIndex:int,filePath:str):
|
|
200
|
+
"""
|
|
201
|
+
Saves shapes to EMF format.
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
shapeIndex: Index of the shape to save
|
|
205
|
+
filePath: Output file path
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
filePathPtr = StrToPtr(filePath)
|
|
209
|
+
GetDllLibPpt().ShapeList_SaveAsEMF.argtypes=[c_void_p ,c_int,c_char_p]
|
|
210
|
+
CallCFunction(GetDllLibPpt().ShapeList_SaveAsEMF,self.Ptr, shapeIndex,filePathPtr)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def CreateChart(self ,baseChart:'IChart',rectangle:'RectangleF',nIndex:int)->'IChart':
|
|
214
|
+
"""
|
|
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
|
|
224
|
+
"""
|
|
225
|
+
intPtrbaseChart:c_void_p = baseChart.Ptr
|
|
226
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
227
|
+
|
|
228
|
+
GetDllLibPpt().ShapeList_CreateChart.argtypes=[c_void_p ,c_void_p,c_void_p,c_int]
|
|
229
|
+
GetDllLibPpt().ShapeList_CreateChart.restype=c_void_p
|
|
230
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_CreateChart,self.Ptr, intPtrbaseChart,intPtrrectangle,nIndex)
|
|
231
|
+
ret = None if intPtr==None else IChart(intPtr)
|
|
232
|
+
return ret
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def AppendChartInit(self ,type:ChartType,rectangle:RectangleF,init:bool)->'IChart':
|
|
236
|
+
"""
|
|
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
|
|
246
|
+
"""
|
|
247
|
+
enumtype:c_int = type.value
|
|
248
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
249
|
+
|
|
250
|
+
GetDllLibPpt().ShapeList_AppendChart.argtypes=[c_void_p ,c_int,c_void_p,c_bool]
|
|
251
|
+
GetDllLibPpt().ShapeList_AppendChart.restype=c_void_p
|
|
252
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendChart,self.Ptr, enumtype,intPtrrectangle,init)
|
|
253
|
+
ret = None if intPtr==None else IChart(intPtr)
|
|
254
|
+
return ret
|
|
255
|
+
|
|
256
|
+
def AppendChart(self ,type:ChartType,rectangle:RectangleF)->'IChart':
|
|
257
|
+
"""
|
|
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
|
|
266
|
+
"""
|
|
267
|
+
enumtype:c_int = type.value
|
|
268
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
269
|
+
|
|
270
|
+
GetDllLibPpt().ShapeList_AppendChartTR.argtypes=[c_void_p ,c_int,c_void_p]
|
|
271
|
+
GetDllLibPpt().ShapeList_AppendChartTR.restype=c_void_p
|
|
272
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendChartTR,self.Ptr, enumtype,intPtrrectangle)
|
|
273
|
+
ret = None if intPtr==None else IChart(intPtr)
|
|
274
|
+
return ret
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def AppendSmartArt(self ,x:float,y:float,width:float,height:float,layoutType:'SmartArtLayoutType')->'ISmartArt':
|
|
279
|
+
"""
|
|
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
|
|
291
|
+
"""
|
|
292
|
+
enumlayoutType:c_int = layoutType.value
|
|
293
|
+
|
|
294
|
+
GetDllLibPpt().ShapeList_AppendSmartArt.argtypes=[c_void_p ,c_float,c_float,c_float,c_float,c_int]
|
|
295
|
+
GetDllLibPpt().ShapeList_AppendSmartArt.restype=c_void_p
|
|
296
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendSmartArt,self.Ptr, x,y,width,height,enumlayoutType)
|
|
297
|
+
ret = None if intPtr==None else ISmartArt(intPtr)
|
|
298
|
+
return ret
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def InsertChart(self ,index:int,type:'ChartType',rectangle:'RectangleF',init:bool):
|
|
303
|
+
"""
|
|
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
|
|
311
|
+
"""
|
|
312
|
+
enumtype:c_int = type.value
|
|
313
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
314
|
+
|
|
315
|
+
GetDllLibPpt().ShapeList_InsertChart.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_bool]
|
|
316
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertChart,self.Ptr, index,enumtype,intPtrrectangle,init)
|
|
317
|
+
|
|
318
|
+
def AppendOleObject(self ,objectName:str,objectData:'Stream',rectangle:RectangleF)->IOleObject:
|
|
319
|
+
"""
|
|
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
|
|
329
|
+
"""
|
|
330
|
+
intPtrobjectData:c_void_p = objectData.Ptr
|
|
331
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
332
|
+
|
|
333
|
+
objectNamePtr = StrToPtr(objectName)
|
|
334
|
+
GetDllLibPpt().ShapeList_AppendOleObject.argtypes=[c_void_p ,c_char_p,c_void_p,c_void_p]
|
|
335
|
+
GetDllLibPpt().ShapeList_AppendOleObject.restype=c_void_p
|
|
336
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendOleObject,self.Ptr,objectNamePtr,intPtrobjectData,intPtrrectangle)
|
|
337
|
+
ret = None if intPtr==None else IOleObject(intPtr)
|
|
338
|
+
return ret
|
|
339
|
+
#
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
# @dispatch
|
|
343
|
+
#
|
|
344
|
+
# def AppendOleObject(self ,objectName:str,objectData:'Byte[]',rectangle:RectangleF)->IOleObject:
|
|
345
|
+
# """
|
|
346
|
+
# <summary>
|
|
347
|
+
# Add a new OleObject to Collection
|
|
348
|
+
# </summary>
|
|
349
|
+
# <param name="objectName">Object Name</param>
|
|
350
|
+
# <param name="objectData">Object Data</param>
|
|
351
|
+
# <param name="rectangle">Rectangle should be inserted.</param>
|
|
352
|
+
# <returns></returns>
|
|
353
|
+
# """
|
|
354
|
+
# #arrayobjectData:ArrayTypeobjectData = ""
|
|
355
|
+
# countobjectData = len(objectData)
|
|
356
|
+
# ArrayTypeobjectData = c_void_p * countobjectData
|
|
357
|
+
# arrayobjectData = ArrayTypeobjectData()
|
|
358
|
+
# for i in range(0, countobjectData):
|
|
359
|
+
# arrayobjectData[i] = objectData[i].Ptr
|
|
360
|
+
#
|
|
361
|
+
# intPtrrectangle:c_void_p = rectangle.Ptr
|
|
362
|
+
#
|
|
363
|
+
# GetDllLibPpt().ShapeList_AppendOleObjectOOR.argtypes=[c_void_p ,c_wchar_p,ArrayTypeobjectData,c_void_p]
|
|
364
|
+
# GetDllLibPpt().ShapeList_AppendOleObjectOOR.restype=c_void_p
|
|
365
|
+
# intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendOleObjectOOR,self.Ptr, objectName,arrayobjectData,intPtrrectangle)
|
|
366
|
+
# ret = None if intPtr==None else IOleObject(intPtr)
|
|
367
|
+
# return ret
|
|
368
|
+
#
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
def InsertOleObject(self ,index:int,objectName:str,objectData:'Stream',rectangle:RectangleF):
|
|
372
|
+
"""
|
|
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
|
|
380
|
+
"""
|
|
381
|
+
intPtrobjectData:c_void_p = objectData.Ptr
|
|
382
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
383
|
+
|
|
384
|
+
objectNamePtr = StrToPtr(objectName)
|
|
385
|
+
GetDllLibPpt().ShapeList_InsertOleObject.argtypes=[c_void_p ,c_int,c_char_p,c_void_p,c_void_p]
|
|
386
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertOleObject,self.Ptr, index,objectNamePtr,intPtrobjectData,intPtrrectangle)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
# @dispatch
|
|
390
|
+
#
|
|
391
|
+
# def InsertOleObject(self ,index:int,objectName:str,objectData:'Byte[]',rectangle:RectangleF):
|
|
392
|
+
# """
|
|
393
|
+
# <summary>
|
|
394
|
+
# Insert a object to collection.
|
|
395
|
+
# </summary>
|
|
396
|
+
# <param name="index">Index should be inserted.</param>
|
|
397
|
+
# <param name="objectName">Object name</param>
|
|
398
|
+
# <param name="objectData">Object data</param>
|
|
399
|
+
# <param name="rectangle">Rectangle should be inserted</param>
|
|
400
|
+
# """
|
|
401
|
+
# #arrayobjectData:ArrayTypeobjectData = ""
|
|
402
|
+
# countobjectData = len(objectData)
|
|
403
|
+
# ArrayTypeobjectData = c_void_p * countobjectData
|
|
404
|
+
# arrayobjectData = ArrayTypeobjectData()
|
|
405
|
+
# for i in range(0, countobjectData):
|
|
406
|
+
# arrayobjectData[i] = objectData[i].Ptr
|
|
407
|
+
#
|
|
408
|
+
# intPtrrectangle:c_void_p = rectangle.Ptr
|
|
409
|
+
#
|
|
410
|
+
# GetDllLibPpt().ShapeList_InsertOleObjectIOOR.argtypes=[c_void_p ,c_int,c_wchar_p,ArrayTypeobjectData,c_void_p]
|
|
411
|
+
# CallCFunction(GetDllLibPpt().ShapeList_InsertOleObjectIOOR,self.Ptr, index,objectName,arrayobjectData,intPtrrectangle)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
def AppendVideoMedia(self ,filePath:str,rectangle:RectangleF)->'IVideo':
|
|
415
|
+
"""
|
|
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
|
|
424
|
+
"""
|
|
425
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
426
|
+
|
|
427
|
+
filePathPtr = StrToPtr(filePath)
|
|
428
|
+
GetDllLibPpt().ShapeList_AppendVideoMedia.argtypes=[c_void_p ,c_char_p,c_void_p]
|
|
429
|
+
GetDllLibPpt().ShapeList_AppendVideoMedia.restype=c_void_p
|
|
430
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendVideoMedia,self.Ptr,filePathPtr,intPtrrectangle)
|
|
431
|
+
ret = None if intPtr==None else IVideo(intPtr)
|
|
432
|
+
return ret
|
|
433
|
+
|
|
434
|
+
def AppendVideoMediaLink(self ,filePath:str,rectangle:RectangleF,isInnerLink:bool)->'IVideo':
|
|
435
|
+
"""
|
|
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
|
|
445
|
+
"""
|
|
446
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
447
|
+
|
|
448
|
+
filePathPtr = StrToPtr(filePath)
|
|
449
|
+
GetDllLibPpt().ShapeList_AppendVideoMediaFRI.argtypes=[c_void_p ,c_char_p,c_void_p,c_bool]
|
|
450
|
+
GetDllLibPpt().ShapeList_AppendVideoMediaFRI.restype=c_void_p
|
|
451
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendVideoMediaFRI,self.Ptr,filePathPtr,intPtrrectangle,isInnerLink)
|
|
452
|
+
ret = None if intPtr==None else IVideo(intPtr)
|
|
453
|
+
return ret
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
def AppendVideoMediaByStream(self ,stream:Stream,rectangle:RectangleF)->'IVideo':
|
|
457
|
+
"""
|
|
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
|
|
466
|
+
"""
|
|
467
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
468
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
469
|
+
|
|
470
|
+
GetDllLibPpt().ShapeList_AppendVideoMediaSR.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
471
|
+
GetDllLibPpt().ShapeList_AppendVideoMediaSR.restype=c_void_p
|
|
472
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendVideoMediaSR,self.Ptr, intPtrstream,intPtrrectangle)
|
|
473
|
+
ret = None if intPtr==None else IVideo(intPtr)
|
|
474
|
+
return ret
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def InsertVideoMedia(self ,index:int,filePath:str,rectangle:'RectangleF'):
|
|
479
|
+
"""
|
|
480
|
+
Inserts a video at specified position.
|
|
481
|
+
|
|
482
|
+
Args:
|
|
483
|
+
index: Insertion index
|
|
484
|
+
filePath: Path to video file
|
|
485
|
+
rectangle: Bounding rectangle
|
|
486
|
+
"""
|
|
487
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
488
|
+
|
|
489
|
+
filePathPtr = StrToPtr(filePath)
|
|
490
|
+
GetDllLibPpt().ShapeList_InsertVideoMedia.argtypes=[c_void_p ,c_int,c_char_p,c_void_p]
|
|
491
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertVideoMedia,self.Ptr, index,filePathPtr,intPtrrectangle)
|
|
492
|
+
|
|
493
|
+
@dispatch
|
|
494
|
+
|
|
495
|
+
def AppendAudioMediaByRect(self ,rectangle:RectangleF)->'IAudio':
|
|
496
|
+
"""
|
|
497
|
+
Adds an audio placeholder (CD audio).
|
|
498
|
+
|
|
499
|
+
Args:
|
|
500
|
+
rectangle: Bounding rectangle
|
|
501
|
+
|
|
502
|
+
Returns:
|
|
503
|
+
IAudio: New audio object
|
|
504
|
+
"""
|
|
505
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
506
|
+
|
|
507
|
+
GetDllLibPpt().ShapeList_AppendAudioMedia.argtypes=[c_void_p ,c_void_p]
|
|
508
|
+
GetDllLibPpt().ShapeList_AppendAudioMedia.restype=c_void_p
|
|
509
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMedia,self.Ptr, intPtrrectangle)
|
|
510
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
511
|
+
return ret
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
@dispatch
|
|
515
|
+
|
|
516
|
+
def InsertAudioMedia(self ,index:int,rectangle:RectangleF):
|
|
517
|
+
"""
|
|
518
|
+
Inserts an audio placeholder (CD audio).
|
|
519
|
+
|
|
520
|
+
Args:
|
|
521
|
+
index: Insertion index
|
|
522
|
+
rectangle: Bounding rectangle
|
|
523
|
+
"""
|
|
524
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
525
|
+
|
|
526
|
+
GetDllLibPpt().ShapeList_InsertAudioMedia.argtypes=[c_void_p ,c_int,c_void_p]
|
|
527
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMedia,self.Ptr, index,intPtrrectangle)
|
|
528
|
+
|
|
529
|
+
@dispatch
|
|
530
|
+
|
|
531
|
+
def AppendAudioMediaByPathXYEmbed(self ,filePath:str,X:float,Y:float,isEmbed:bool)->'IAudio':
|
|
532
|
+
"""
|
|
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
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
filePathPtr = StrToPtr(filePath)
|
|
546
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFXYI.argtypes=[c_void_p ,c_char_p,c_float,c_float,c_bool]
|
|
547
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFXYI.restype=c_void_p
|
|
548
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaFXYI,self.Ptr,filePathPtr,X,Y,isEmbed)
|
|
549
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
550
|
+
return ret
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
@dispatch
|
|
554
|
+
|
|
555
|
+
def AppendAudioMediaByPathXY(self ,filePath:str,X:float,Y:float)->'IAudio':
|
|
556
|
+
"""
|
|
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
|
|
566
|
+
"""
|
|
567
|
+
|
|
568
|
+
filePathPtr = StrToPtr(filePath)
|
|
569
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFXY.argtypes=[c_void_p ,c_char_p,c_float,c_float]
|
|
570
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFXY.restype=c_void_p
|
|
571
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaFXY,self.Ptr,filePathPtr,X,Y)
|
|
572
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
573
|
+
return ret
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
def AppendAudioMediaEmbed(self ,filePath:str,rectangle:RectangleF,isEmbed:bool)->'IAudio':
|
|
578
|
+
"""
|
|
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
|
|
588
|
+
"""
|
|
589
|
+
filePathPtr = StrToPtr(filePath)
|
|
590
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
591
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFRI.argtypes=[c_void_p ,c_char_p,c_void_p,c_bool]
|
|
592
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFRI.restype=c_void_p
|
|
593
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaFRI,self.Ptr,filePathPtr,intPtrrectangle,isEmbed)
|
|
594
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
595
|
+
return ret
|
|
596
|
+
|
|
597
|
+
def AppendAudioMedia(self ,filePath:str,rectangle:RectangleF)->'IAudio':
|
|
598
|
+
"""
|
|
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
|
|
607
|
+
"""
|
|
608
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
609
|
+
|
|
610
|
+
filePathPtr = StrToPtr(filePath)
|
|
611
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFR.argtypes=[c_void_p ,c_char_p,c_void_p]
|
|
612
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaFR.restype=c_void_p
|
|
613
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaFR,self.Ptr,filePathPtr,intPtrrectangle)
|
|
614
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
615
|
+
return ret
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
@dispatch
|
|
619
|
+
|
|
620
|
+
def InsertAudioMedia(self ,index:int,filePath:str,rectangle:RectangleF,isEmbed:bool):
|
|
621
|
+
"""
|
|
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
|
|
629
|
+
"""
|
|
630
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
631
|
+
|
|
632
|
+
filePathPtr = StrToPtr(filePath)
|
|
633
|
+
GetDllLibPpt().ShapeList_InsertAudioMediaIFRI.argtypes=[c_void_p ,c_int,c_char_p,c_void_p,c_bool]
|
|
634
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaIFRI,self.Ptr, index,filePathPtr,intPtrrectangle,isEmbed)
|
|
635
|
+
|
|
636
|
+
@dispatch
|
|
637
|
+
|
|
638
|
+
def InsertAudioMedia(self ,index:int,filePath:str,rectangle:RectangleF):
|
|
639
|
+
"""
|
|
640
|
+
Inserts an audio file.
|
|
641
|
+
|
|
642
|
+
Args:
|
|
643
|
+
index: Insertion index
|
|
644
|
+
filePath: Path to audio file
|
|
645
|
+
rectangle: Bounding rectangle
|
|
646
|
+
"""
|
|
647
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
648
|
+
|
|
649
|
+
filePathPtr = StrToPtr(filePath)
|
|
650
|
+
GetDllLibPpt().ShapeList_InsertAudioMediaIFR.argtypes=[c_void_p ,c_int,c_char_p,c_void_p]
|
|
651
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaIFR,self.Ptr, index,filePathPtr,intPtrrectangle)
|
|
652
|
+
|
|
653
|
+
@dispatch
|
|
654
|
+
|
|
655
|
+
def InsertAudioMedia(self ,index:int,filePath:str,X:float,Y:float,isEmbed:bool):
|
|
656
|
+
"""
|
|
657
|
+
Inserts an audio file with coordinates and embed option.
|
|
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
|
+
"""
|
|
666
|
+
filePathPtr = StrToPtr(filePath)
|
|
667
|
+
GetDllLibPpt().ShapeList_InsertAudioMediaIFXYI.argtypes=[c_void_p ,c_int,c_char_p,c_float,c_float,c_bool]
|
|
668
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaIFXYI,self.Ptr, index,filePathPtr,X,Y,isEmbed)
|
|
669
|
+
|
|
670
|
+
@dispatch
|
|
671
|
+
|
|
672
|
+
def InsertAudioMedia(self ,index:int,filePath:str,X:float,Y:float):
|
|
673
|
+
"""
|
|
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
|
|
681
|
+
"""
|
|
682
|
+
|
|
683
|
+
filePathPtr = StrToPtr(filePath)
|
|
684
|
+
GetDllLibPpt().ShapeList_InsertAudioMediaIFXY.argtypes=[c_void_p ,c_int,c_char_p,c_float,c_float]
|
|
685
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaIFXY,self.Ptr, index,filePathPtr,X,Y)
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
def AppendAudioMediaByStreamRect(self ,stream:Stream,rectangle:RectangleF)->'IAudio':
|
|
689
|
+
"""
|
|
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
|
|
698
|
+
"""
|
|
699
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
700
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
701
|
+
|
|
702
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaSR.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
703
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaSR.restype=c_void_p
|
|
704
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaSR,self.Ptr, intPtrstream,intPtrrectangle)
|
|
705
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
706
|
+
return ret
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
def AppendAudioMediaByStreamFloat(self ,stream:Stream,X:float,Y:float)->'IAudio':
|
|
710
|
+
"""
|
|
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
|
|
720
|
+
"""
|
|
721
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
722
|
+
|
|
723
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaSXY.argtypes=[c_void_p ,c_void_p,c_float,c_float]
|
|
724
|
+
GetDllLibPpt().ShapeList_AppendAudioMediaSXY.restype=c_void_p
|
|
725
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendAudioMediaSXY,self.Ptr, intPtrstream,X,Y)
|
|
726
|
+
ret = None if intPtr==None else IAudio(intPtr)
|
|
727
|
+
return ret
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
@dispatch
|
|
731
|
+
|
|
732
|
+
def InsertAudioMedia(self ,index:int,stream:Stream,rectangle:RectangleF):
|
|
733
|
+
"""
|
|
734
|
+
Inserts an audio from stream.
|
|
735
|
+
|
|
736
|
+
Args:
|
|
737
|
+
index: Insertion index
|
|
738
|
+
stream: Audio data stream
|
|
739
|
+
rectangle: Bounding rectangle
|
|
740
|
+
"""
|
|
741
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
742
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
743
|
+
|
|
744
|
+
GetDllLibPpt().ShapeList_InsertAudioMediaISR.argtypes=[c_void_p ,c_int,c_void_p,c_void_p]
|
|
745
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertAudioMediaISR,self.Ptr, index,intPtrstream,intPtrrectangle)
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
def IndexOf(self ,shape:'IShape')->int:
|
|
749
|
+
"""
|
|
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
|
|
757
|
+
"""
|
|
758
|
+
intPtrshape:c_void_p = shape.Ptr
|
|
759
|
+
|
|
760
|
+
GetDllLibPpt().ShapeList_IndexOf.argtypes=[c_void_p ,c_void_p]
|
|
761
|
+
GetDllLibPpt().ShapeList_IndexOf.restype=c_int
|
|
762
|
+
ret = CallCFunction(GetDllLibPpt().ShapeList_IndexOf,self.Ptr, intPtrshape)
|
|
763
|
+
return ret
|
|
764
|
+
|
|
765
|
+
@dispatch
|
|
766
|
+
|
|
767
|
+
def ZOrder(self ,index:int,shape:IShape):
|
|
768
|
+
"""
|
|
769
|
+
Change a shape's zorder.
|
|
770
|
+
Args:
|
|
771
|
+
index:Target index.
|
|
772
|
+
shape:Shape to move.
|
|
773
|
+
"""
|
|
774
|
+
intPtrshape:c_void_p = shape.Ptr
|
|
775
|
+
|
|
776
|
+
GetDllLibPpt().ShapeList_ZOrder.argtypes=[c_void_p ,c_int,c_void_p]
|
|
777
|
+
CallCFunction(GetDllLibPpt().ShapeList_ZOrder,self.Ptr, index,intPtrshape)
|
|
778
|
+
|
|
779
|
+
# @dispatch
|
|
780
|
+
#
|
|
781
|
+
# def ZOrder(self ,index:int,shapes:'IShape[]'):
|
|
782
|
+
# """
|
|
783
|
+
# <summary>
|
|
784
|
+
# Change shapes's zorder.
|
|
785
|
+
# </summary>
|
|
786
|
+
# <param name="index">target index.</param>
|
|
787
|
+
# <param name="shapes">shapes to move.</param>
|
|
788
|
+
# """
|
|
789
|
+
# #arrayshapes:ArrayTypeshapes = ""
|
|
790
|
+
# countshapes = len(shapes)
|
|
791
|
+
# ArrayTypeshapes = c_void_p * countshapes
|
|
792
|
+
# arrayshapes = ArrayTypeshapes()
|
|
793
|
+
# for i in range(0, countshapes):
|
|
794
|
+
# arrayshapes[i] = shapes[i].Ptr
|
|
795
|
+
#
|
|
796
|
+
#
|
|
797
|
+
# GetDllLibPpt().ShapeList_ZOrderIS.argtypes=[c_void_p ,c_int,ArrayTypeshapes]
|
|
798
|
+
# CallCFunction(GetDllLibPpt().ShapeList_ZOrderIS,self.Ptr, index,arrayshapes)
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
#@dispatch
|
|
802
|
+
|
|
803
|
+
def AppendShape(self ,shapeType:ShapeType,rectangle:RectangleF)->'IAutoShape':
|
|
804
|
+
"""
|
|
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
|
|
813
|
+
"""
|
|
814
|
+
enumshapeType:c_int = shapeType.value
|
|
815
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
816
|
+
|
|
817
|
+
GetDllLibPpt().ShapeList_AppendShape.argtypes=[c_void_p ,c_int,c_void_p]
|
|
818
|
+
GetDllLibPpt().ShapeList_AppendShape.restype=c_void_p
|
|
819
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendShape,self.Ptr, enumshapeType,intPtrrectangle)
|
|
820
|
+
ret = None if intPtr==None else IAutoShape(intPtr)
|
|
821
|
+
return ret
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
# @dispatch
|
|
825
|
+
|
|
826
|
+
def AppendShapeByPoint(self ,shapeType:ShapeType,start:PointF,end:PointF)->'IAutoShape':
|
|
827
|
+
"""
|
|
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
|
|
837
|
+
"""
|
|
838
|
+
enumshapeType:c_int = shapeType.value
|
|
839
|
+
intPtrstart:c_void_p = start.Ptr
|
|
840
|
+
intPtrend:c_void_p = end.Ptr
|
|
841
|
+
|
|
842
|
+
GetDllLibPpt().ShapeList_AppendShapeSSE.argtypes=[c_void_p ,c_int,c_void_p,c_void_p]
|
|
843
|
+
GetDllLibPpt().ShapeList_AppendShapeSSE.restype=c_void_p
|
|
844
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendShapeSSE,self.Ptr, enumshapeType,intPtrstart,intPtrend)
|
|
845
|
+
ret = None if intPtr==None else IAutoShape(intPtr)
|
|
846
|
+
return ret
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
def AppendRoundRectangle(self ,x:float,y:float,width:float,height:float,radius:float)->'IAutoShape':
|
|
851
|
+
"""
|
|
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
|
|
863
|
+
"""
|
|
864
|
+
|
|
865
|
+
GetDllLibPpt().ShapeList_AppendRoundRectangle.argtypes=[c_void_p ,c_float,c_float,c_float,c_float,c_float]
|
|
866
|
+
GetDllLibPpt().ShapeList_AppendRoundRectangle.restype=c_void_p
|
|
867
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendRoundRectangle,self.Ptr, x,y,width,height,radius)
|
|
868
|
+
ret = None if intPtr==None else IAutoShape(intPtr)
|
|
869
|
+
return ret
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
def InsertShape(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF'):
|
|
874
|
+
"""
|
|
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
|
|
881
|
+
"""
|
|
882
|
+
enumshapeType:c_int = shapeType.value
|
|
883
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
884
|
+
|
|
885
|
+
GetDllLibPpt().ShapeList_InsertShape.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
886
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertShape,self.Ptr, index,enumshapeType,intPtrrectangle)
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
def InsertRoundRectangle(self ,index:int,x:float,y:float,width:float,height:float,radius:float):
|
|
890
|
+
"""
|
|
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
|
|
900
|
+
"""
|
|
901
|
+
|
|
902
|
+
GetDllLibPpt().ShapeList_InsertRoundRectangle.argtypes=[c_void_p ,c_int,c_float,c_float,c_float,c_float,c_float]
|
|
903
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertRoundRectangle,self.Ptr, index,x,y,width,height,radius)
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
def AppendShapeConnector(self ,shapeType:'ShapeType',rectangle:'RectangleF')->'IShape':
|
|
907
|
+
"""
|
|
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
|
|
916
|
+
"""
|
|
917
|
+
enumshapeType:c_int = shapeType.value
|
|
918
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
919
|
+
|
|
920
|
+
GetDllLibPpt().ShapeList_AppendShapeConnector.argtypes=[c_void_p ,c_int,c_void_p]
|
|
921
|
+
GetDllLibPpt().ShapeList_AppendShapeConnector.restype=c_void_p
|
|
922
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendShapeConnector,self.Ptr, enumshapeType,intPtrrectangle)
|
|
923
|
+
ret = None if intPtr==None else IShape(intPtr)
|
|
924
|
+
return ret
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
def InsertShapeConnector(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF'):
|
|
929
|
+
"""
|
|
930
|
+
Inserts a new connector shape.
|
|
931
|
+
|
|
932
|
+
Args:
|
|
933
|
+
index: Insertion index
|
|
934
|
+
shapeType: Type of connector
|
|
935
|
+
rectangle: Bounding rectangle
|
|
936
|
+
"""
|
|
937
|
+
enumshapeType:c_int = shapeType.value
|
|
938
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
939
|
+
|
|
940
|
+
GetDllLibPpt().ShapeList_InsertShapeConnector.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
941
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertShapeConnector,self.Ptr, index,enumshapeType,intPtrrectangle)
|
|
942
|
+
|
|
943
|
+
def AppendEmbedImageByImageData(self ,shapeType:ShapeType,embedImage:'IImageData',rectangle:RectangleF)->'IEmbedImage':
|
|
944
|
+
"""
|
|
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
|
|
954
|
+
"""
|
|
955
|
+
enumshapeType:c_int = shapeType.value
|
|
956
|
+
intPtrembedImage:c_void_p = embedImage.Ptr
|
|
957
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
958
|
+
|
|
959
|
+
GetDllLibPpt().ShapeList_AppendEmbedImage.argtypes=[c_void_p ,c_int,c_void_p,c_void_p]
|
|
960
|
+
GetDllLibPpt().ShapeList_AppendEmbedImage.restype=c_void_p
|
|
961
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendEmbedImage,self.Ptr, enumshapeType,intPtrembedImage,intPtrrectangle)
|
|
962
|
+
ret = None if intPtr==None else IEmbedImage(intPtr)
|
|
963
|
+
return ret
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
def AppendEmbedImageByPath(self ,shapeType:ShapeType,fileName:str,rectangle:RectangleF)->'IEmbedImage':
|
|
967
|
+
"""
|
|
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
|
|
977
|
+
"""
|
|
978
|
+
enumshapeType:c_int = shapeType.value
|
|
979
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
980
|
+
|
|
981
|
+
fileNamePtr = StrToPtr(fileName)
|
|
982
|
+
GetDllLibPpt().ShapeList_AppendEmbedImageSFR.argtypes=[c_void_p ,c_int,c_char_p,c_void_p]
|
|
983
|
+
GetDllLibPpt().ShapeList_AppendEmbedImageSFR.restype=c_void_p
|
|
984
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendEmbedImageSFR,self.Ptr, enumshapeType,fileNamePtr,intPtrrectangle)
|
|
985
|
+
ret = None if intPtr==None else IEmbedImage(intPtr)
|
|
986
|
+
return ret
|
|
987
|
+
|
|
988
|
+
def AppendEmbedImageByStream(self ,shapeType:ShapeType,stream:Stream,rectangle:RectangleF)->'IEmbedImage':
|
|
989
|
+
"""
|
|
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
|
|
999
|
+
"""
|
|
1000
|
+
enumshapeType:c_int = shapeType.value
|
|
1001
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
1002
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
1003
|
+
|
|
1004
|
+
GetDllLibPpt().ShapeList_AppendEmbedImageSSR.argtypes=[c_void_p ,c_int,c_void_p,c_void_p]
|
|
1005
|
+
GetDllLibPpt().ShapeList_AppendEmbedImageSSR.restype=c_void_p
|
|
1006
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendEmbedImageSSR,self.Ptr, enumshapeType,intPtrstream,intPtrrectangle)
|
|
1007
|
+
ret = None if intPtr==None else IEmbedImage(intPtr)
|
|
1008
|
+
return ret
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
def InsertEmbedImage(self ,index:int,shapeType:'ShapeType',rectangle:'RectangleF',embedImage:'IImageData'):
|
|
1013
|
+
"""
|
|
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
|
|
1021
|
+
"""
|
|
1022
|
+
enumshapeType:c_int = shapeType.value
|
|
1023
|
+
intPtrrectangle:c_void_p = rectangle.Ptr
|
|
1024
|
+
intPtrembedImage:c_void_p = embedImage.Ptr
|
|
1025
|
+
|
|
1026
|
+
GetDllLibPpt().ShapeList_InsertEmbedImage.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_void_p]
|
|
1027
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertEmbedImage,self.Ptr, index,enumshapeType,intPtrrectangle,intPtrembedImage)
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
def AddShape(self ,shape:'Shape'):
|
|
1031
|
+
"""
|
|
1032
|
+
Adds an existing shape to the collection.
|
|
1033
|
+
|
|
1034
|
+
Args:
|
|
1035
|
+
shape: Shape to add
|
|
1036
|
+
"""
|
|
1037
|
+
intPtrshape:c_void_p = shape.Ptr
|
|
1038
|
+
|
|
1039
|
+
GetDllLibPpt().ShapeList_AddShape.argtypes=[c_void_p ,c_void_p]
|
|
1040
|
+
CallCFunction(GetDllLibPpt().ShapeList_AddShape,self.Ptr, intPtrshape)
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
def AppendTable(self ,x:float,y:float,widths:List[float],heights:List[float])->'ITable':
|
|
1044
|
+
"""
|
|
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
|
|
1055
|
+
"""
|
|
1056
|
+
#arraywidths:ArrayTypewidths = ""
|
|
1057
|
+
countwidths = len(widths)
|
|
1058
|
+
ArrayTypewidths = c_double * countwidths
|
|
1059
|
+
arraywidths = ArrayTypewidths()
|
|
1060
|
+
for i in range(0, countwidths):
|
|
1061
|
+
arraywidths[i] = widths[i]
|
|
1062
|
+
|
|
1063
|
+
#arrayheights:ArrayTypeheights = ""
|
|
1064
|
+
countheights = len(heights)
|
|
1065
|
+
ArrayTypeheights = c_double * countheights
|
|
1066
|
+
arrayheights = ArrayTypeheights()
|
|
1067
|
+
for i in range(0, countheights):
|
|
1068
|
+
arrayheights[i] = heights[i]
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
GetDllLibPpt().ShapeList_AppendTable.argtypes=[c_void_p ,c_float,c_float,ArrayTypewidths,c_int,ArrayTypeheights,c_int]
|
|
1072
|
+
GetDllLibPpt().ShapeList_AppendTable.restype=c_void_p
|
|
1073
|
+
intPtr = CallCFunction(GetDllLibPpt().ShapeList_AppendTable,self.Ptr, x,y,arraywidths,countwidths,arrayheights,countheights)
|
|
1074
|
+
ret = None if intPtr==None else ITable(intPtr)
|
|
1075
|
+
return ret
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
def InsertTable(self ,index:int,x:float,y:float,columnWidths:List[float],rowHeights:List[float]):
|
|
1080
|
+
"""
|
|
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
|
|
1089
|
+
"""
|
|
1090
|
+
#arraycolumnWidths:ArrayTypecolumnWidths = ""
|
|
1091
|
+
countcolumnWidths = len(columnWidths)
|
|
1092
|
+
ArrayTypecolumnWidths = c_double * countcolumnWidths
|
|
1093
|
+
arraycolumnWidths = ArrayTypecolumnWidths()
|
|
1094
|
+
for i in range(0, countcolumnWidths):
|
|
1095
|
+
arraycolumnWidths[i] = columnWidths[i]
|
|
1096
|
+
|
|
1097
|
+
#arrayrowHeights:ArrayTyperowHeights = ""
|
|
1098
|
+
countrowHeights = len(rowHeights)
|
|
1099
|
+
ArrayTyperowHeights = c_double * countrowHeights
|
|
1100
|
+
arrayrowHeights = ArrayTyperowHeights()
|
|
1101
|
+
for i in range(0, countrowHeights):
|
|
1102
|
+
arrayrowHeights[i] = rowHeights[i]
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
GetDllLibPpt().ShapeList_InsertTable.argtypes=[c_void_p ,c_int,c_float,c_float,ArrayTypecolumnWidths,ArrayTyperowHeights]
|
|
1106
|
+
CallCFunction(GetDllLibPpt().ShapeList_InsertTable,self.Ptr, index,x,y,arraycolumnWidths,arrayrowHeights)
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
def RemoveAt(self ,index:int):
|
|
1110
|
+
"""
|
|
1111
|
+
Removes the shape at the specified index.
|
|
1112
|
+
|
|
1113
|
+
Args:
|
|
1114
|
+
index: Index of shape to remove
|
|
1115
|
+
"""
|
|
1116
|
+
|
|
1117
|
+
GetDllLibPpt().ShapeList_RemoveAt.argtypes=[c_void_p ,c_int]
|
|
1118
|
+
CallCFunction(GetDllLibPpt().ShapeList_RemoveAt,self.Ptr, index)
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
def Remove(self ,shape:'IShape'):
|
|
1122
|
+
"""
|
|
1123
|
+
Removes a specific shape from the collection.
|
|
1124
|
+
|
|
1125
|
+
Args:
|
|
1126
|
+
shape: Shape to remove
|
|
1127
|
+
"""
|
|
1128
|
+
intPtrshape:c_void_p = shape.Ptr
|
|
1129
|
+
|
|
1130
|
+
GetDllLibPpt().ShapeList_Remove.argtypes=[c_void_p ,c_void_p]
|
|
1131
|
+
CallCFunction(GetDllLibPpt().ShapeList_Remove,self.Ptr, intPtrshape)
|
|
1132
|
+
|