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 ()
 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...
 
virtual System::String get_Name ()
 Returns the name of a slide. Read System::String. More...
 
virtual void set_Name (System::String value)
 Sets the name of a slide. Write System::String. 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...
 
virtual bool get_ShowMasterShapes ()=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...
 
virtual void set_ShowMasterShapes (bool value)=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< 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 ()=0
 
virtual System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTUnsupportedProps::BaseSlidePPTUnsupportedProps > get_BaseSlidePPTUnsupportedProps ()=0
 
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)
 
virtual void ScaleGeometry (float scalingCoefX, float scalingCoefY, float scalingContentCoef)
 
virtual void LocateGeometry (float locatingCoefX, float locatingCoefY)
 
void SetParent (System::SharedPtr< IDOMObject > parentImmediate)
 

Static Protected Member Functions

static bool CheckScaleCoefficient (float scalingCoef)
 
static bool CheckScaleCoefficients (float scalingCoefX, float scalingCoefY)
 

Static Protected Attributes

static const float SCALING_MIN_COEF
 
static System::ArrayPtr< System::SharedPtr< BaseSlide > > emptySlides
 
static System::ArrayPtr< System::SharedPtr< Shape > > emptyShapes
 

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

Detailed Description

Represents common data for all slide types.

Constructor & Destructor Documentation

◆ BaseSlide()

Aspose::Slides::BaseSlide::BaseSlide ( System::SharedPtr< IDOMObject parentImmediate)
protected

Creates new Slide - called by Presentation to create a slide from scratch. You should not be calling this from application code (its protected anyhow).

Member Function Documentation

◆ ApplyDefaultTextStyle()

void Aspose::Slides::BaseSlide::ApplyDefaultTextStyle ( System::SharedPtr< ITextStyle style)
protected

◆ ApplyShapesStyles()

void Aspose::Slides::BaseSlide::ApplyShapesStyles ( System::SharedPtr< IBaseSlide sourceSlide)
protected

◆ CheckScaleCoefficient()

static bool Aspose::Slides::BaseSlide::CheckScaleCoefficient ( float  scalingCoef)
staticprotected

◆ CheckScaleCoefficients()

static bool Aspose::Slides::BaseSlide::CheckScaleCoefficients ( float  scalingCoefX,
float  scalingCoefY 
)
staticprotected

◆ CreateBackgroundEffective()

System::SharedPtr<IBackgroundEffectiveData> Aspose::Slides::BaseSlide::CreateBackgroundEffective ( )
virtual

Creates and returns IBackgroundEffectiveData object which contains effective background properties.

Deprecated:
Use Background.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
A IBackgroundEffectiveData instance.

Implements Aspose::Slides::IBaseSlide.

◆ CreateShapeId()

uint32_t Aspose::Slides::BaseSlide::CreateShapeId ( )
protected

◆ CreateThemeEffective()

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

Returns an effective theme for this slide.

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

◆ DrawLicensing()

void Aspose::Slides::BaseSlide::DrawLicensing ( System::SharedPtr< Drawing::Canvas >  canvas)
protected

◆ Equals()

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

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

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

Parameters
altTextAlternative text.
Returns
Shape object or null.

Implements Aspose::Slides::IBaseSlide.

◆ FindShapeByPlaceholderIndex()

System::SharedPtr<Shape> Aspose::Slides::BaseSlide::FindShapeByPlaceholderIndex ( uint32_t  index)
protected

◆ FindShapeByPlaceholderType()

System::SharedPtr<Shape> Aspose::Slides::BaseSlide::FindShapeByPlaceholderType ( PlaceholderType  placeholderType)
protected

◆ GenerateSpId()

System::String Aspose::Slides::BaseSlide::GenerateSpId ( )
protected

◆ get_Background()

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

Returns slide's background. Read-only IBackground.

Implements Aspose::Slides::IBaseSlide.

◆ get_BaseSlidePPTUnsupportedProps()

virtual System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTUnsupportedProps::BaseSlidePPTUnsupportedProps> Aspose::Slides::BaseSlide::get_BaseSlidePPTUnsupportedProps ( )
protectedpure virtual

◆ get_BaseSlidePPTXUnsupportedProps()

virtual System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::BaseSlidePPTXUnsupportedProps> Aspose::Slides::BaseSlide::get_BaseSlidePPTXUnsupportedProps ( )
protectedpure virtual

◆ get_BaseSlides()

virtual System::ArrayPtr<System::SharedPtr<IBaseSlide> > Aspose::Slides::BaseSlide::get_BaseSlides ( )
protectedvirtual

Reimplemented in Aspose::Slides::Slide.

◆ get_Controls()

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

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

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

Implements Aspose::Slides::IBaseSlide.

◆ get_HyperlinkQueries()

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

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

Implements Aspose::Slides::IBaseSlide.

◆ get_Name()

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

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

Implements Aspose::Slides::IBaseSlide.

Reimplemented in Aspose::Slides::MasterSlide.

◆ get_NextShapeId()

uint32_t Aspose::Slides::BaseSlide::get_NextShapeId ( )
protected

◆ get_Parent_Immediate()

System::SharedPtr<IDOMObject> Aspose::Slides::BaseSlide::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_Parent_IPresentationComponent()

System::SharedPtr<IPresentationComponent> Aspose::Slides::BaseSlide::get_Parent_IPresentationComponent ( )
protected

◆ get_Presentation()

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

Returns IPresentation interface. Read-only IPresentation.

Implements Aspose::Slides::IPresentationComponent.

◆ get_PresentationInternal()

System::SharedPtr<Aspose::Slides::Presentation> Aspose::Slides::BaseSlide::get_PresentationInternal ( )
protected

◆ get_Shapes()

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

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

Implements Aspose::Slides::IBaseSlide.

◆ get_ShowMasterShapes()

virtual bool Aspose::Slides::BaseSlide::get_ShowMasterShapes ( )
pure 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::MasterSlide, Aspose::Slides::LayoutSlide, Aspose::Slides::NotesSlide, Aspose::Slides::MasterNotesSlide, and Aspose::Slides::MasterHandoutSlide.

◆ get_Slide()

System::SharedPtr<IBaseSlide> Aspose::Slides::BaseSlide::get_Slide ( )
virtual

Returns the base slide. Read-only IBaseSlide.

Implements Aspose::Slides::ISlideComponent.

◆ get_SlideId()

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

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

Implements Aspose::Slides::IBaseSlide.

◆ get_SlideInternalId()

uint64_t Aspose::Slides::BaseSlide::get_SlideInternalId ( )
protected

◆ get_SlideShowTransition()

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

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

System::SharedPtr<Theme::IThemeManager> Aspose::Slides::BaseSlide::get_ThemeManagerInternal ( )
protected

◆ get_Timeline()

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

Returns animation timeline object. Read-only IAnimationTimeLine.

Implements Aspose::Slides::IBaseSlide.

◆ GetAllShapes()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Shape> > > Aspose::Slides::BaseSlide::GetAllShapes ( )
protected

◆ GetBackgroundFillParam()

System::SharedPtr<FillParam> Aspose::Slides::BaseSlide::GetBackgroundFillParam ( System::SharedPtr< Aspose::Slides::Background background,
System::SharedPtr< ShapeFrame shapeFrame,
System::SharedPtr< Drawing::Canvas >  canvas,
System::SharedPtr< Drawing::RenderContext >  renderContext 
)
protected

◆ GetEntireSlideFrame()

System::SharedPtr<ShapeFrame> Aspose::Slides::BaseSlide::GetEntireSlideFrame ( )
protected

◆ GetMasterSlideInternal()

System::SharedPtr<MasterSlide> Aspose::Slides::BaseSlide::GetMasterSlideInternal ( )
protected

Returns master slide for a slide or null if none can be found.

◆ GetPlaceholders()

virtual System::ArrayPtr<System::SharedPtr<Shape> > Aspose::Slides::BaseSlide::GetPlaceholders ( System::SharedPtr< IPlaceholder placeholder)
protectedvirtual

◆ GetSchemeColor()

System::SharedPtr<ColorFormat> Aspose::Slides::BaseSlide::GetSchemeColor ( SchemeColor  color)
protected

Returns color format of effective scheme color. Use as readonly value only!

Parameters
colorScheme color.
Returns

◆ InitSlideShowTransition()

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

Inits slide show transition.

◆ JoinPortionsWithSameFormatting() [1/2]

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

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.

◆ LocateGeometry()

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

Reimplemented in Aspose::Slides::MasterSlide.

◆ PptxAfterInit()

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

◆ ScaleGeometry() [1/2]

void Aspose::Slides::BaseSlide::ScaleGeometry ( float  scalingCoefX,
float  scalingCoefY 
)
protected

◆ ScaleGeometry() [2/2]

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

◆ set_Name()

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

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

Implements Aspose::Slides::IBaseSlide.

Reimplemented in Aspose::Slides::MasterSlide.

◆ set_ShowMasterShapes()

virtual void Aspose::Slides::BaseSlide::set_ShowMasterShapes ( bool  value)
pure 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::MasterSlide, Aspose::Slides::LayoutSlide, Aspose::Slides::NotesSlide, Aspose::Slides::MasterNotesSlide, and Aspose::Slides::MasterHandoutSlide.

◆ SetParent()

void Aspose::Slides::BaseSlide::SetParent ( System::SharedPtr< IDOMObject parentImmediate)
protected

◆ UpdateNextShapeId()

void Aspose::Slides::BaseSlide::UpdateNextShapeId ( uint32_t  newNextId,
bool  check 
)
protected

◆ UpdateNextVmlSpId()

void Aspose::Slides::BaseSlide::UpdateNextVmlSpId ( System::String  spid)
protected

Member Data Documentation

◆ emptyShapes

System::ArrayPtr<System::SharedPtr<Shape> > Aspose::Slides::BaseSlide::emptyShapes
staticprotected

◆ emptySlides

System::ArrayPtr<System::SharedPtr<BaseSlide> > Aspose::Slides::BaseSlide::emptySlides
staticprotected

◆ SCALING_MIN_COEF

const float Aspose::Slides::BaseSlide::SCALING_MIN_COEF
staticprotected