Aspose::Slides::MasterSlide Class Reference

Represents a master slide in a presentation. More...

Inherits Aspose::Slides::BaseSlide, and Aspose::Slides::IMasterSlide.

Public Member Functions

System::SharedPtr< IMasterSlideHeaderFooterManagerget_HeaderFooterManager ()
 Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager. More...
 
System::SharedPtr< ITextStyleget_TitleStyle ()
 Returns the style of a title text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_BodyStyle ()
 Returns the style of a body text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_OtherStyle ()
 Returns the style of an other text. Read-only ITextStyle. More...
 
System::SharedPtr< IMasterLayoutSlideCollectionget_LayoutSlides ()
 Returns the collection of child layout slides for this master slide. Read-only IMasterLayoutSlideCollection. More...
 
bool get_Preserve ()
 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 Read bool. More...
 
void set_Preserve (bool 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 Write bool. More...
 
bool get_HasDependingSlides ()
 Returns true if there exists at least one slide that depends on this master slide. Read-only bool. More...
 
System::SharedPtr< Theme::IMasterThemeManagerget_ThemeManager ()
 Returns the theme manager. Read-only IMasterThemeManager. More...
 
virtual System::String get_Name ()
 Returns the name of a master slide. Read System::String. More...
 
virtual void set_Name (System::String value)
 Sets the name of a master slide. Write System::String. More...
 
virtual bool get_ShowMasterShapes ()
 Specifies if shapes on the master slide should be shown on slides or not. For master slide itself this property always returns false. Read bool. More...
 
virtual void set_ShowMasterShapes (bool value)
 Specifies if shapes on the master slide should be shown on slides or not. For master slide itself this property always returns false. Write bool. More...
 
System::SharedPtr< IMasterSlideApplyExternalThemeToDependingSlides (System::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. More...
 
System::ArrayPtr< System::SharedPtr< ISlide > > GetDependingSlides ()
 Returns an array with all slides, which depend on this master slide. More...
 
- Public Member Functions inherited from Aspose::Slides::BaseSlide
System::SharedPtr< IShapeCollectionget_Shapes ()
 Returns the shapes of a slide. Read-only IShapeCollection. More...
 
System::SharedPtr< IControlCollectionget_Controls ()
 Returns the collection of ActiveX controls on a slide. Read-only IControlCollection. More...
 
uint32_t get_SlideId ()
 Returns the ID of a slide. Read-only uint32_t. More...
 
System::SharedPtr< ICustomDataget_CustomData ()
 Returns the slide's custom data. Read-only ICustomData. More...
 
System::SharedPtr< IAnimationTimeLineget_Timeline ()
 Returns animation timeline object. Read-only IAnimationTimeLine. More...
 
virtual System::SharedPtr< ISlideShowTransitionget_SlideShowTransition ()
 Returns the Transition object which contains information about how the specified slide advances during a slide show. Read-only ISlideShowTransition. More...
 
System::SharedPtr< IBackgroundget_Background ()
 Returns slide's background. Read-only IBackground. More...
 
System::SharedPtr< IHyperlinkQueriesget_HyperlinkQueries ()
 Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IPresentationget_Presentation ()
 Returns IPresentation interface. Read-only IPresentation. More...
 
System::SharedPtr< IBaseSlideget_Slide ()
 Returns the base slide. Read-only IBaseSlide. More...
 
bool Equals (System::SharedPtr< 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. More...
 
virtual void JoinPortionsWithSameFormatting ()
 Joins runs with same formatting in all paragraphs all acceptable shapes. More...
 
virtual void JoinPortionsWithSameFormatting (System::SharedPtr< IShapeCollection > collection)
 Joins runs with same formatting in all paragraphs in all acceptable shapes. More...
 
System::SharedPtr< Theme::IThemeEffectiveDataCreateThemeEffective ()
 Returns an effective theme for this slide. More...
 
System::SharedPtr< IBackgroundEffectiveDataCreateBackgroundEffective ()
 Creates and returns IBackgroundEffectiveData object which contains effective background properties. More...
 
System::SharedPtr< IShapeFindShapeByAltText (System::String altText)
 Finds first occurrence of a shape with the specified alternative text. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

virtual System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::BaseSlidePPTXUnsupportedProps > get_BaseSlidePPTXUnsupportedProps ()
 
virtual System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTUnsupportedProps::BaseSlidePPTUnsupportedProps > get_BaseSlidePPTUnsupportedProps ()
 
System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::MasterSlidePPTXUnsupportedProps > get_PPTXUnsupportedProps ()
 
System::SharedPtr< UnsupportedProps::PPTUnsupportedProps::MasterSlidePPTUnsupportedProps > get_PPTUnsupportedProps ()
 
System::SharedPtr< MasterSlideHeaderFooterManagerget_HeaderFooterManagerInternal ()
 Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager. More...
 
System::SharedPtr< ITextStyleget_LegacyPPT_NotesStyle ()
 Returns the style of a notes text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_LegacyPPT_CenterTitleStyle ()
 Returns the style of a center title text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_LegacyPPT_CenterBodyStyle ()
 Returns the style of a center body text. Read-only ITextStyle. More...
 
 MasterSlide (System::SharedPtr< MasterSlideCollection > parentImmediate)
 
System::SharedPtr< ILayoutSlideAddEmptyLayout (SlideLayoutType layoutType)
 Adds the new empty layout slide at the end of a collection. More...
 
void FillPlaceholders ()
 
virtual void ScaleGeometry (float scalingCoefX, float scalingCoefY, float scalingContentCoef)
 
virtual void LocateGeometry (float locatingCoefX, float locatingCoefY)
 
- Protected Member Functions inherited from Aspose::Slides::BaseSlide
uint64_t get_SlideInternalId ()
 
System::SharedPtr< Theme::IThemeManagerget_ThemeManagerInternal ()
 
uint32_t get_NextShapeId ()
 
virtual System::ArrayPtr< System::SharedPtr< IBaseSlide > > get_BaseSlides ()
 
System::SharedPtr< IPresentationComponentget_Parent_IPresentationComponent ()
 
System::SharedPtr< Aspose::Slides::Presentationget_PresentationInternal ()
 
 BaseSlide (System::SharedPtr< IDOMObject > parentImmediate)
 Creates new Slide - called by Presentation to create a slide from scratch. You should not be calling this from application code (its protected anyhow). More...
 
void UpdateNextVmlSpId (System::String spid)
 
System::String GenerateSpId ()
 
System::SharedPtr< ColorFormatGetSchemeColor (SchemeColor color)
 Returns color format of effective scheme color. Use as readonly value only! More...
 
void InitSlideShowTransition ()
 Inits slide show transition. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Shape > > > GetAllShapes ()
 
System::SharedPtr< ShapeFindShapeByPlaceholderType (PlaceholderType placeholderType)
 
System::SharedPtr< ShapeFindShapeByPlaceholderIndex (uint32_t index)
 
void ApplyDefaultTextStyle (System::SharedPtr< ITextStyle > style)
 
void ApplyShapesStyles (System::SharedPtr< IBaseSlide > sourceSlide)
 
void PptxAfterInit ()
 
uint32_t CreateShapeId ()
 
void UpdateNextShapeId (uint32_t newNextId, bool check)
 
virtual System::ArrayPtr< System::SharedPtr< Shape > > GetPlaceholders (System::SharedPtr< IPlaceholder > placeholder)
 
System::SharedPtr< FillParam > GetBackgroundFillParam (System::SharedPtr< Aspose::Slides::Background > background, System::SharedPtr< ShapeFrame > shapeFrame, System::SharedPtr< Drawing::Canvas > canvas, System::SharedPtr< Drawing::RenderContext > renderContext)
 
System::SharedPtr< ShapeFrameGetEntireSlideFrame ()
 
System::SharedPtr< MasterSlideGetMasterSlideInternal ()
 Returns master slide for a slide or null if none can be found. More...
 
void DrawLicensing (System::SharedPtr< Drawing::Canvas > canvas)
 
void ScaleGeometry (float scalingCoefX, float scalingCoefY)
 
void SetParent (System::SharedPtr< IDOMObject > parentImmediate)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Static Protected Member Functions inherited from Aspose::Slides::BaseSlide
static bool CheckScaleCoefficient (float scalingCoef)
 
static bool CheckScaleCoefficients (float scalingCoefX, float scalingCoefY)
 
- Static Protected Attributes inherited from Aspose::Slides::BaseSlide
static const float SCALING_MIN_COEF
 
static System::ArrayPtr< System::SharedPtr< BaseSlide > > emptySlides
 
static System::ArrayPtr< System::SharedPtr< Shape > > emptyShapes
 

Detailed Description

Represents a master slide in a presentation.

Constructor & Destructor Documentation

◆ MasterSlide()

Aspose::Slides::MasterSlide::MasterSlide ( System::SharedPtr< MasterSlideCollection parentImmediate)
protected

Member Function Documentation

◆ AddEmptyLayout()

System::SharedPtr<ILayoutSlide> Aspose::Slides::MasterSlide::AddEmptyLayout ( SlideLayoutType  layoutType)
protected

Adds the new empty layout slide at the end of a collection.

◆ ApplyExternalThemeToDependingSlides()

System::SharedPtr<IMasterSlide> Aspose::Slides::MasterSlide::ApplyExternalThemeToDependingSlides ( System::String  fname)
virtual

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.

Parameters
fnamePath to the external theme file (.thmx).
Exceptions
PptxReadExceptionWhen external theme cannot be applied.
Returns
New themed MasterSlide.

Implements Aspose::Slides::IMasterSlide.

◆ FillPlaceholders()

void Aspose::Slides::MasterSlide::FillPlaceholders ( )
protected

◆ get_BaseSlidePPTUnsupportedProps()

virtual System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTUnsupportedProps::BaseSlidePPTUnsupportedProps> Aspose::Slides::MasterSlide::get_BaseSlidePPTUnsupportedProps ( )
protectedvirtual

◆ get_BaseSlidePPTXUnsupportedProps()

virtual System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::BaseSlidePPTXUnsupportedProps> Aspose::Slides::MasterSlide::get_BaseSlidePPTXUnsupportedProps ( )
protectedvirtual

◆ get_BodyStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_BodyStyle ( )
virtual

Returns the style of a body text. Read-only ITextStyle.

Implements Aspose::Slides::IMasterSlide.

◆ get_HasDependingSlides()

bool Aspose::Slides::MasterSlide::get_HasDependingSlides ( )
virtual

Returns true if there exists at least one slide that depends on this master slide. Read-only bool.

Implements Aspose::Slides::IMasterSlide.

◆ get_HeaderFooterManager()

System::SharedPtr<IMasterSlideHeaderFooterManager> Aspose::Slides::MasterSlide::get_HeaderFooterManager ( )
virtual

Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager.

Implements Aspose::Slides::IMasterSlide.

◆ get_HeaderFooterManagerInternal()

System::SharedPtr<MasterSlideHeaderFooterManager> Aspose::Slides::MasterSlide::get_HeaderFooterManagerInternal ( )
protected

Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager.

◆ get_LayoutSlides()

System::SharedPtr<IMasterLayoutSlideCollection> Aspose::Slides::MasterSlide::get_LayoutSlides ( )
virtual

Returns the collection of child layout slides for this master slide. Read-only IMasterLayoutSlideCollection.

You can access to alternative API for adding/inserting/removing/cloning layout slides by using IPresentation::LayoutSlides property.

Implements Aspose::Slides::IMasterSlide.

◆ get_LegacyPPT_CenterBodyStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_LegacyPPT_CenterBodyStyle ( )
protected

Returns the style of a center body text. Read-only ITextStyle.

◆ get_LegacyPPT_CenterTitleStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_LegacyPPT_CenterTitleStyle ( )
protected

Returns the style of a center title text. Read-only ITextStyle.

◆ get_LegacyPPT_NotesStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_LegacyPPT_NotesStyle ( )
protected

Returns the style of a notes text. Read-only ITextStyle.

◆ get_Name()

virtual System::String Aspose::Slides::MasterSlide::get_Name ( )
virtual

Returns the name of a master slide. Read System::String.

Reimplemented from Aspose::Slides::BaseSlide.

◆ get_OtherStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_OtherStyle ( )
virtual

Returns the style of an other text. Read-only ITextStyle.

Implements Aspose::Slides::IMasterSlide.

◆ get_PPTUnsupportedProps()

System::SharedPtr<UnsupportedProps::PPTUnsupportedProps::MasterSlidePPTUnsupportedProps> Aspose::Slides::MasterSlide::get_PPTUnsupportedProps ( )
protected

◆ get_PPTXUnsupportedProps()

System::SharedPtr<UnsupportedProps::PPTXUnsupportedProps::MasterSlidePPTXUnsupportedProps> Aspose::Slides::MasterSlide::get_PPTXUnsupportedProps ( )
protected

◆ get_Preserve()

bool Aspose::Slides::MasterSlide::get_Preserve ( )
virtual

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 Read bool.

Implements Aspose::Slides::IMasterSlide.

◆ get_ShowMasterShapes()

virtual bool Aspose::Slides::MasterSlide::get_ShowMasterShapes ( )
virtual

Specifies if shapes on the master slide should be shown on slides or not. For master slide itself this property always returns false. Read bool.

Exceptions
System::NotSupportedExceptionThrown if set true for master slide.

Implements Aspose::Slides::BaseSlide.

◆ get_ThemeManager()

System::SharedPtr<Theme::IMasterThemeManager> Aspose::Slides::MasterSlide::get_ThemeManager ( )
virtual

Returns the theme manager. Read-only IMasterThemeManager.

Implements Aspose::Slides::Theme::IMasterThemeable.

◆ get_TitleStyle()

System::SharedPtr<ITextStyle> Aspose::Slides::MasterSlide::get_TitleStyle ( )
virtual

Returns the style of a title text. Read-only ITextStyle.

Implements Aspose::Slides::IMasterSlide.

◆ GetDependingSlides()

System::ArrayPtr<System::SharedPtr<ISlide> > Aspose::Slides::MasterSlide::GetDependingSlides ( )
virtual

Returns an array with all slides, which depend on this master slide.

Returns

Implements Aspose::Slides::IMasterSlide.

◆ LocateGeometry()

virtual void Aspose::Slides::MasterSlide::LocateGeometry ( float  locatingCoefX,
float  locatingCoefY 
)
protectedvirtual

Reimplemented from Aspose::Slides::BaseSlide.

◆ ScaleGeometry()

virtual void Aspose::Slides::MasterSlide::ScaleGeometry ( float  scalingCoefX,
float  scalingCoefY,
float  scalingContentCoef 
)
protectedvirtual

Reimplemented from Aspose::Slides::BaseSlide.

◆ set_Name()

virtual void Aspose::Slides::MasterSlide::set_Name ( System::String  value)
virtual

Sets the name of a master slide. Write System::String.

Reimplemented from Aspose::Slides::BaseSlide.

◆ set_Preserve()

void Aspose::Slides::MasterSlide::set_Preserve ( bool  value)
virtual

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 Write bool.

Implements Aspose::Slides::IMasterSlide.

◆ set_ShowMasterShapes()

virtual void Aspose::Slides::MasterSlide::set_ShowMasterShapes ( bool  value)
virtual

Specifies if shapes on the master slide should be shown on slides or not. For master slide itself this property always returns false. Write bool.

Exceptions
System::NotSupportedExceptionThrown if set true for master slide.

Implements Aspose::Slides::BaseSlide.