BaseSlide

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IBaseSlide, com.aspose.slides.IDOMObject, com.aspose.slides.IStyleColorOwner

public abstract class BaseSlide implements IBaseSlide, IDOMObject, IStyleColorOwner

Represents common data for all slide types.

Methods

MethodDescription
getShapes()Returns the shapes of a slide.
getControls()Returns the collection of ActiveX controls on a slide.
getName()Returns or sets the name of a slide.
setName(String value)Returns or sets the name of a slide.
getSlideId()Returns the ID of a slide.
equals(IBaseSlide slide)Determines whether the two IBaseSlide instances are equal.
joinPortionsWithSameFormatting()Joins runs with same formatting in all paragraphs all acceptable shapes.
joinPortionsWithSameFormatting(IShapeCollection collection)Joins runs with same formatting in all paragraphs in all acceptable shapes.
createThemeEffective()Returns an effective theme for this slide.
getCustomData()Returns the slide’s custom data.
getTimeline()Returns animation timeline object.
getSlideShowTransition()Returns the Transition object which contains information about how the specified slide advances during a slide show.
getBackground()Returns slide’s background.
getHyperlinkQueries()Provides easy access to contained hyperlinks.
getShowMasterShapes()Specifies if shapes on the master slide should be shown on slides or not.
setShowMasterShapes(boolean value)Specifies if shapes on the master slide should be shown on slides or not.
findShapeByAltText(String altText)Finds first occurrence of a shape with the specified alternative text.
getParent_Immediate()
getPresentation()Returns IPresentation interface.
getSlide()

getShapes()

public final IShapeCollection getShapes()

Returns the shapes of a slide. Read-only IShapeCollection.

Returns: IShapeCollection

getControls()

public final IControlCollection getControls()

Returns the collection of ActiveX controls on a slide. Read-only IControlCollection.

Returns: IControlCollection

getName()

public String getName()

Returns or sets the name of a slide. Read/write String.

Returns: java.lang.String

setName(String value)

public void setName(String value)

Returns or sets the name of a slide. Read/write String.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getSlideId()

public final long getSlideId()

Returns the ID of a slide. Read-only long.

Returns: long

equals(IBaseSlide slide)

public 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();
 }

Parameters:

ParameterTypeDescription
slideIBaseSlideThe IBaseSlide to compare with the current IBaseSlide.

Returns: boolean - true if the specified IBaseSlide is equal to the current IBaseSlide; otherwise, false .

joinPortionsWithSameFormatting()

public void joinPortionsWithSameFormatting()

Joins runs with same formatting in all paragraphs all acceptable shapes.

joinPortionsWithSameFormatting(IShapeCollection collection)

public void joinPortionsWithSameFormatting(IShapeCollection collection)

Joins runs with same formatting in all paragraphs in all acceptable shapes.

Parameters:

ParameterTypeDescription
collectionIShapeCollection

createThemeEffective()

public final IThemeEffectiveData createThemeEffective()

Returns an effective theme for this slide.

Returns: IThemeEffectiveData

getCustomData()

public final ICustomData getCustomData()

Returns the slide’s custom data. Read-only ICustomData.

Returns: ICustomData

getTimeline()

public final IAnimationTimeLine getTimeline()

Returns animation timeline object. Read-only IAnimationTimeLine.

Returns: IAnimationTimeLine

getSlideShowTransition()

public ISlideShowTransition getSlideShowTransition()

Returns the Transition object which contains information about how the specified slide advances during a slide show. Read-only ISlideShowTransition.

Returns: ISlideShowTransition

getBackground()

public final IBackground getBackground()

Returns slide’s background. Read-only IBackground.

Returns: IBackground

getHyperlinkQueries()

public final IHyperlinkQueries getHyperlinkQueries()

Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries.

Returns: IHyperlinkQueries

getShowMasterShapes()

public 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.

Returns: boolean

setShowMasterShapes(boolean value)

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.

Parameters:

ParameterTypeDescription
valueboolean

findShapeByAltText(String altText)

public final IShape findShapeByAltText(String altText)

Finds first occurrence of a shape with the specified alternative text.

Parameters:

ParameterTypeDescription
altTextjava.lang.StringAlternative text.

Returns: IShape - Shape object or null.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject

getPresentation()

public final IPresentation getPresentation()

Returns IPresentation interface. Read-only IPresentation.

Returns: IPresentation

getSlide()

public final IBaseSlide getSlide()

Returns the base slide. Read-only IBaseSlide.

Returns: IBaseSlide