public abstract class BaseSlide extends java.lang.Object implements IBaseSlide
Represents common data for all slide types.
| Modifier and Type | Method and Description |
|---|---|
IThemeEffectiveData |
createThemeEffective()
Returns an effective theme for this slide.
|
boolean |
equals(IBaseSlide slide)
Determines whether the two IBaseSlide instances are equal.
|
IShape |
findShapeByAltText(java.lang.String altText)
Finds first occurrence of a shape with the specified alternative text.
|
IBackground |
getBackground()
Returns slide's background.
|
IControlCollection |
getControls()
Returns the collection of ActiveX controls on a slide.
|
ICustomData |
getCustomData()
Returns the slide's custom data.
|
IHyperlinkQueries |
getHyperlinkQueries()
Provides easy access to contained hyperlinks.
|
java.lang.String |
getName()
Returns or sets the name of a slide.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPresentation |
getPresentation()
Returns IPresentation interface.
|
IShapeCollection |
getShapes()
Returns the shapes of a slide.
|
abstract boolean |
getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
|
IBaseSlide |
getSlide()
Returns the base slide.
|
long |
getSlideId()
Returns the ID of a slide.
|
ISlideShowTransition |
getSlideShowTransition()
Returns the Transition object which contains information about
how the specified slide advances during a slide show.
|
IAnimationTimeLine |
getTimeline()
Returns animation timeline object.
|
void |
joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs all acceptable shapes.
|
void |
joinPortionsWithSameFormatting(IShapeCollection collection)
Joins runs with same formatting in all paragraphs in all acceptable shapes.
|
void |
setName(java.lang.String value)
Returns or sets the name of a slide.
|
abstract void |
setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
|
public final IShapeCollection getShapes()
Returns the shapes of a slide.
Read-only IShapeCollection.
getShapes in interface IBaseSlidepublic final IControlCollection getControls()
Returns the collection of ActiveX controls on a slide.
Read-only IControlCollection.
getControls in interface IBaseSlidepublic java.lang.String getName()
Returns or sets the name of a slide.
Read/write String.
getName in interface IBaseSlidepublic void setName(java.lang.String value)
Returns or sets the name of a slide.
Read/write String.
setName in interface IBaseSlidepublic final long getSlideId()
Returns the ID of a slide.
Read-only long.
getSlideId in interface IBaseSlidepublic final boolean equals(IBaseSlide slide)
Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide's structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn't take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.
The following example shows how to compare two slides.Presentation presentation1 = new Presentation("AccessSlides.pptx"); try { Presentation presentation2 = new Presentation("HelloWorld.pptx"); try { for (int i = 0; i < presentation1.getMasters().size(); i++) { for (int j = 0; j < presentation2.getMasters().size(); j++) { if (presentation1.getMasters().get_Item(i).equals(presentation2.getMasters().get_Item(j))) System.out.println(String.format("SomePresentation1 MasterSlide#%d is equal to SomePresentation2 MasterSlide#%d", i, j)); } } } finally { if (presentation2 != null) presentation2.dispose(); } } finally { if (presentation1 != null) presentation1.dispose(); }
equals in interface IBaseSlideslide - The IBaseSlide to compare with the current IBaseSlide.<b>true</b> if the specified IBaseSlide is equal to the current IBaseSlide;
otherwise, <b>false</b>.public void joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs all acceptable shapes.
joinPortionsWithSameFormatting in interface IBaseSlidepublic void joinPortionsWithSameFormatting(IShapeCollection collection)
Joins runs with same formatting in all paragraphs in all acceptable shapes.
public final IThemeEffectiveData createThemeEffective()
Returns an effective theme for this slide.
createThemeEffective in interface IThemeableIThemeEffectiveDatapublic final ICustomData getCustomData()
Returns the slide's custom data.
Read-only ICustomData.
getCustomData in interface IBaseSlidepublic final IAnimationTimeLine getTimeline()
Returns animation timeline object.
Read-only IAnimationTimeLine.
getTimeline in interface IBaseSlidepublic ISlideShowTransition getSlideShowTransition()
Returns the Transition object which contains information about
how the specified slide advances during a slide show.
Read-only ISlideShowTransition.
getSlideShowTransition in interface IBaseSlidepublic final IBackground getBackground()
Returns slide's background.
Read-only IBackground.
getBackground in interface IBaseSlidepublic final IHyperlinkQueries getHyperlinkQueries()
Provides easy access to contained hyperlinks.
Read-only IHyperlinkQueries.
getHyperlinkQueries in interface IBaseSlidepublic abstract boolean getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
For master slide itself this property always returns false.
Read/write boolean.
getShowMasterShapes in interface IBaseSlidecom.aspose.ms.System.NotSupportedException - Thrown if set true for master slide.public abstract void setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
For master slide itself this property always returns false.
Read/write boolean.
setShowMasterShapes in interface IBaseSlidecom.aspose.ms.System.NotSupportedException - Thrown if set true for master slide.public final IShape findShapeByAltText(java.lang.String altText)
Finds first occurrence of a shape with the specified alternative text.
findShapeByAltText in interface IBaseSlidealtText - Alternative text.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
public final IPresentation getPresentation()
Returns IPresentation interface.
Read-only IPresentation.
getPresentation in interface IPresentationComponentpublic final IBaseSlide getSlide()
ISlideComponent
Returns the base slide.
Read-only IBaseSlide.
getSlide in interface ISlideComponentCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.