Aspose::Slides::BaseSlide Class Referenceabstract

Represents common data for all slide types. More...

Inherits Aspose::Slides::IBaseSlide, Aspose::Slides::IDOMObject, and Aspose::Slides::IStyleColorOwner.

Inherited by Aspose::Slides::LayoutSlide, Aspose::Slides::MasterHandoutSlide, Aspose::Slides::MasterNotesSlide, Aspose::Slides::MasterSlide, Aspose::Slides::NotesSlide, and Aspose::Slides::Slide.

Public Member Functions

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...
 
System::String get_Name () override
 Returns the name of a slide. Read System::String. More...
 
void set_Name (System::String value) override
 Sets the name of a slide. Write System::String. 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...
 
bool get_ShowMasterShapes () override=0
 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=0
 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< IPresentationget_Presentation () override
 Returns IPresentation interface. Read-only IPresentation. 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 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

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

Detailed Description

Represents common data for all slide types.

Constructor & Destructor Documentation

◆ ~BaseSlide()

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

Member Function Documentation

◆ CreateThemeEffective()

System::SharedPtr<Theme::IThemeEffectiveData> Aspose::Slides::BaseSlide::CreateThemeEffective ( )
overridevirtual

Returns an effective theme for this slide.

Implements Aspose::Slides::Theme::IThemeable.

◆ Equals()

bool Aspose::Slides::BaseSlide::Equals ( System::SharedPtr< IBaseSlide slide)
overridevirtual

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.

Parameters
slideThe IBaseSlide to compare with the current IBaseSlide.
Returns
true if the specified IBaseSlide is equal to the current IBaseSlide; otherwise, false.

Implements Aspose::Slides::IBaseSlide.

◆ FindShapeByAltText()

System::SharedPtr<IShape> Aspose::Slides::BaseSlide::FindShapeByAltText ( System::String  altText)
overridevirtual

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

Parameters
altTextAlternative text.
Returns
Shape object or null.

Implements Aspose::Slides::IBaseSlide.

◆ get_Background()

System::SharedPtr<IBackground> Aspose::Slides::BaseSlide::get_Background ( )
overridevirtual

Returns slide's background. Read-only IBackground.

Implements Aspose::Slides::IBaseSlide.

◆ get_Controls()

System::SharedPtr<IControlCollection> Aspose::Slides::BaseSlide::get_Controls ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_CustomData()

System::SharedPtr<ICustomData> Aspose::Slides::BaseSlide::get_CustomData ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_HyperlinkQueries()

System::SharedPtr<IHyperlinkQueries> Aspose::Slides::BaseSlide::get_HyperlinkQueries ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_Name()

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

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

Implements Aspose::Slides::IBaseSlide.

Reimplemented in Aspose::Slides::MasterSlide.

◆ get_Presentation()

System::SharedPtr<IPresentation> Aspose::Slides::BaseSlide::get_Presentation ( )
overridevirtual

Returns IPresentation interface. Read-only IPresentation.

Implements Aspose::Slides::IPresentationComponent.

◆ get_Shapes()

System::SharedPtr<IShapeCollection> Aspose::Slides::BaseSlide::get_Shapes ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_ShowMasterShapes()

bool Aspose::Slides::BaseSlide::get_ShowMasterShapes ( )
overridepure 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::IBaseSlide.

Implemented in Aspose::Slides::Slide, Aspose::Slides::NotesSlide, Aspose::Slides::MasterSlide, Aspose::Slides::MasterNotesSlide, Aspose::Slides::MasterHandoutSlide, and Aspose::Slides::LayoutSlide.

◆ get_SlideId()

uint32_t Aspose::Slides::BaseSlide::get_SlideId ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_SlideShowTransition()

System::SharedPtr<ISlideShowTransition> Aspose::Slides::BaseSlide::get_SlideShowTransition ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

◆ get_Timeline()

System::SharedPtr<IAnimationTimeLine> Aspose::Slides::BaseSlide::get_Timeline ( )
overridevirtual

Returns animation timeline object. Read-only IAnimationTimeLine.

Implements Aspose::Slides::IBaseSlide.

◆ InitSlideShowTransition()

void Aspose::Slides::BaseSlide::InitSlideShowTransition ( )
protected

Inits slide show transition.

◆ JoinPortionsWithSameFormatting() [1/2]

void Aspose::Slides::BaseSlide::JoinPortionsWithSameFormatting ( )
overridevirtual

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

Implements Aspose::Slides::IBaseSlide.

Reimplemented in Aspose::Slides::Slide.

◆ JoinPortionsWithSameFormatting() [2/2]

virtual void Aspose::Slides::BaseSlide::JoinPortionsWithSameFormatting ( System::SharedPtr< IShapeCollection collection)
virtual

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

◆ set_Name()

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

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

Implements Aspose::Slides::IBaseSlide.

Reimplemented in Aspose::Slides::MasterSlide.

◆ set_ShowMasterShapes()

void Aspose::Slides::BaseSlide::set_ShowMasterShapes ( bool  value)
overridepure 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::IBaseSlide.

Implemented in Aspose::Slides::Slide, Aspose::Slides::NotesSlide, Aspose::Slides::MasterSlide, Aspose::Slides::MasterNotesSlide, Aspose::Slides::MasterHandoutSlide, and Aspose::Slides::LayoutSlide.