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 () override
 Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager. More...
 
System::SharedPtr< ITextStyleget_TitleStyle () override
 Returns the style of a title text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_BodyStyle () override
 Returns the style of a body text. Read-only ITextStyle. More...
 
System::SharedPtr< ITextStyleget_OtherStyle () override
 Returns the style of an other text. Read-only ITextStyle. More...
 
System::SharedPtr< IMasterLayoutSlideCollectionget_LayoutSlides () override
 Returns the collection of child layout slides for this master slide. Read-only IMasterLayoutSlideCollection. More...
 
bool get_Preserve () override
 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) override
 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 () override
 Returns true if there exists at least one slide that depends on this master slide. Read-only bool. More...
 
System::SharedPtr< Theme::IMasterThemeManagerget_ThemeManager () override
 Returns the theme manager. Read-only Theme::IMasterThemeManager. More...
 
System::String get_Name () override
 Returns the name of a master slide. Read System::String. More...
 
void set_Name (System::String value) override
 Sets the name of a master slide. Write System::String. More...
 
bool get_ShowMasterShapes () override
 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...
 
void set_ShowMasterShapes (bool value) override
 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) override
 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 () override
 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 () override
 Returns the shapes of a slide. Read-only IShapeCollection. More...
 
System::SharedPtr< IControlCollectionget_Controls () override
 Returns the collection of ActiveX controls on a slide. Read-only IControlCollection. More...
 
uint32_t get_SlideId () override
 Returns the ID of a slide. Read-only uint32_t. More...
 
System::SharedPtr< ICustomDataget_CustomData () override
 Returns the slide's custom data. Read-only ICustomData. More...
 
System::SharedPtr< IAnimationTimeLineget_Timeline () override
 Returns animation timeline object. Read-only IAnimationTimeLine. More...
 
System::SharedPtr< ISlideShowTransitionget_SlideShowTransition () override
 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 () override
 Returns slide's background. Read-only IBackground. More...
 
System::SharedPtr< IHyperlinkQueriesget_HyperlinkQueries () override
 Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate () override
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IPresentationget_Presentation () override
 Returns IPresentation interface. Read-only IPresentation. More...
 
System::SharedPtr< IBaseSlideget_Slide () override
 Returns the base slide. Read-only IBaseSlide. More...
 
bool Equals (System::SharedPtr< IBaseSlide > slide) override
 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...
 
void JoinPortionsWithSameFormatting () override
 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 () override
 Returns an effective theme for this slide. More...
 
System::SharedPtr< IShapeFindShapeByAltText (System::String altText) override
 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 reference 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::BaseSlidePPTXUnsupportedProps > get_BaseSlidePPTXUnsupportedProps () override
 
System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTUnsupportedProps::BaseSlidePPTUnsupportedProps > get_BaseSlidePPTUnsupportedProps () override
 
void ScaleGeometry (float scalingCoefX, float scalingCoefY, float scalingContentCoef) override
 
void LocateGeometry (float locatingCoefX, float locatingCoefY) override
 
virtual ~MasterSlide ()
 
- Protected Member Functions inherited from Aspose::Slides::BaseSlide
void InitSlideShowTransition ()
 Inits slide show transition. More...
 
virtual ~BaseSlide ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a master slide in a presentation.

Constructor & Destructor Documentation

◆ ~MasterSlide()

virtual Aspose::Slides::MasterSlide::~MasterSlide ( )
protectedvirtual

Member Function Documentation

◆ ApplyExternalThemeToDependingSlides()

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

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.

◆ get_BaseSlidePPTUnsupportedProps()

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

◆ get_BaseSlidePPTXUnsupportedProps()

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

◆ get_BodyStyle()

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

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

Implements Aspose::Slides::IMasterSlide.

◆ get_HasDependingSlides()

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

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 ( )
overridevirtual

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

Implements Aspose::Slides::IMasterSlide.

◆ get_LayoutSlides()

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

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::get_LayoutSlides() property.

Implements Aspose::Slides::IMasterSlide.

◆ get_Name()

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

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 ( )
overridevirtual

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

Implements Aspose::Slides::IMasterSlide.

◆ get_Preserve()

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

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()

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

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 ( )
overridevirtual

Returns the theme manager. Read-only Theme::IMasterThemeManager.

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

◆ get_TitleStyle()

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

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

Implements Aspose::Slides::IMasterSlide.

◆ GetDependingSlides()

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

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

Returns

Implements Aspose::Slides::IMasterSlide.

◆ LocateGeometry()

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

◆ ScaleGeometry()

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

◆ set_Name()

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

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)
overridevirtual

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()

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

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.