public class MasterSlide extends BaseSlide implements IMasterSlide
Represents a master slide in a presentation.
Modifier and Type | Method and Description |
---|---|
IMasterSlide |
applyExternalThemeToDependingSlides(java.lang.String fname)
Creates a new master slide based on the current one, applying an external theme to it
and applies the created master slide to all dependent slides.
|
ITextStyle |
getBodyStyle()
Returns the style of a body text.
|
ISlide[] |
getDependingSlides()
Returns an array with all slides, which depend on this master slide.
|
IMasterSlideHeaderFooterManager |
getHeaderFooterManager()
Returns HeaderFooter manager of the master slide.
|
IMasterLayoutSlideCollection |
getLayoutSlides()
Returns the collection of child layout slides for this master slide.
|
java.lang.String |
getName()
Returns or sets the name of a master slide.
|
ITextStyle |
getOtherStyle()
Returns the style of an other text.
|
boolean |
getPreserve()
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
|
boolean |
getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
|
IMasterThemeManager |
getThemeManager()
Returns the theme manager.
|
ITextStyle |
getTitleStyle()
Returns the style of a title text.
|
boolean |
hasDependingSlides()
Returns true if there exists at least one slide that depends on this master slide.
|
void |
setName(java.lang.String value)
Returns or sets the name of a master slide.
|
void |
setPreserve(boolean value)
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
|
void |
setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
|
createBackgroundEffective, createThemeEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getParent_Immediate, getPresentation, getShapes, getSlide, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormatting, joinPortionsWithSameFormatting
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBackgroundEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getShapes, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormatting
createThemeEffective
getSlide
getPresentation
public final IMasterSlideHeaderFooterManager getHeaderFooterManager()
Returns HeaderFooter manager of the master slide.
Read-only IMasterSlideHeaderFooterManager
.
getHeaderFooterManager
in interface IMasterSlide
public final IMasterSlide applyExternalThemeToDependingSlides(java.lang.String fname)
Creates a new master slide based on the current one, applying an external theme to it and applies the created master slide to all dependent slides.
applyExternalThemeToDependingSlides
in interface IMasterSlide
fname
- Path to the external theme file (.thmx).PptxReadException
- When external theme cannot be applied.public final ITextStyle getTitleStyle()
Returns the style of a title text.
Read-only ITextStyle
.
getTitleStyle
in interface IMasterSlide
public final ITextStyle getBodyStyle()
Returns the style of a body text.
Read-only ITextStyle
.
getBodyStyle
in interface IMasterSlide
public final ITextStyle getOtherStyle()
Returns the style of an other text.
Read-only ITextStyle
.
getOtherStyle
in interface IMasterSlide
public final IMasterLayoutSlideCollection getLayoutSlides()
Returns the collection of child layout slides for this master slide.
Read-only IMasterLayoutSlideCollection
.
IPresentation.LayoutSlides
(IPresentation.getLayoutSlides()
) property.
getLayoutSlides
in interface IMasterSlide
public final boolean getPreserve()
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
Note: Aspose.Slides will never remove any unused master by itself, to actually remove unused masters call MasterSlideCollection.removeUnused(boolean)
Read/write boolean
.
getPreserve
in interface IMasterSlide
public final void setPreserve(boolean value)
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
Note: Aspose.Slides will never remove any unused master by itself, to actually remove unused masters call MasterSlideCollection.removeUnused(boolean)
Read/write boolean
.
setPreserve
in interface IMasterSlide
public final ISlide[] getDependingSlides()
Returns an array with all slides, which depend on this master slide.
getDependingSlides
in interface IMasterSlide
ISlide
public final boolean hasDependingSlides()
Returns true if there exists at least one slide that depends on this master slide.
Read-only boolean
.
hasDependingSlides
in interface IMasterSlide
public final IMasterThemeManager getThemeManager()
Returns the theme manager.
Read-only IMasterThemeManager
.
getThemeManager
in interface IMasterThemeable
public java.lang.String getName()
Returns or sets the name of a master slide.
Read/write String
.
getName
in interface IBaseSlide
getName
in class BaseSlide
public void setName(java.lang.String value)
Returns or sets the name of a master slide.
Read/write String
.
setName
in interface IBaseSlide
setName
in class BaseSlide
public 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 IBaseSlide
getShowMasterShapes
in class BaseSlide
com.aspose.ms.System.NotSupportedException
- Thrown if set true
for master slide.public 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 IBaseSlide
setShowMasterShapes
in class BaseSlide
com.aspose.ms.System.NotSupportedException
- Thrown if set true
for master slide.