Aspose::Slides::PresentationFactory Class Reference

Allows to create presentation via COM interface More...

Inherits Aspose::Slides::IPresentationFactory.

Public Member Functions

System::SharedPtr< IPresentationCreatePresentation () override
 Creates new presentation. More...
 
System::SharedPtr< IPresentationCreatePresentation (System::SharedPtr< ILoadOptions > options) override
 Creates new presentation with additional load options More...
 
System::SharedPtr< IPresentationInfoGetPresentationInfo (System::String file) override
 Creates new PresentationInfo object from file and binds presentation to it. More...
 
System::SharedPtr< IPresentationInfoGetPresentationInfo (System::SharedPtr< System::IO::Stream > stream) override
 Creates new PresentationInfo object from stream and binds presentation to it. Gets info about presentation in specified stream. More...
 
System::SharedPtr< IPresentationReadPresentation (System::ArrayPtr< uint8_t > data) override
 Reads an existing presentation from array More...
 
System::SharedPtr< IPresentationReadPresentation (System::ArrayPtr< uint8_t > data, System::SharedPtr< ILoadOptions > options) override
 Reads an existing presentation from array with additional load options More...
 
System::SharedPtr< IPresentationReadPresentation (System::SharedPtr< System::IO::Stream > stream) override
 Reads an existing presentation from stream More...
 
System::SharedPtr< IPresentationReadPresentation (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< ILoadOptions > options) override
 Reads an existing presentation from stream with additional load options More...
 
System::SharedPtr< IPresentationReadPresentation (System::String file) override
 Reads an existing presentation from file More...
 
System::SharedPtr< IPresentationReadPresentation (System::String file, System::SharedPtr< ILoadOptions > options) override
 Reads an existing presentation from stream with additional load options More...
 
System::SharedPtr< IPresentationTextGetPresentationText (System::String file, TextExtractionArrangingMode mode) override
 Retrieves the raw text from the slides More...
 
System::SharedPtr< IPresentationTextGetPresentationText (System::SharedPtr< System::IO::Stream > stream, TextExtractionArrangingMode mode) override
 Retrieves the raw text from the slides More...
 
System::SharedPtr< IPresentationTextGetPresentationText (System::SharedPtr< System::IO::Stream > stream, TextExtractionArrangingMode mode, System::SharedPtr< ILoadOptions > options) override
 Retrieves the raw text from the slides 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...
 

Static Public Member Functions

static System::SharedPtr< PresentationFactoryget_Instance ()
 Presentation factory static instance. Read-only PresentationFactory. 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...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

Allows to create presentation via COM interface

Member Function Documentation

◆ CreatePresentation() [1/2]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::CreatePresentation ( )
overridevirtual

Creates new presentation.

Returns
New presentation

Implements Aspose::Slides::IPresentationFactory.

◆ CreatePresentation() [2/2]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::CreatePresentation ( System::SharedPtr< ILoadOptions options)
overridevirtual

Creates new presentation with additional load options

Parameters
optionsLoad options
Returns
New presentation

Implements Aspose::Slides::IPresentationFactory.

◆ get_Instance()

static System::SharedPtr<PresentationFactory> Aspose::Slides::PresentationFactory::get_Instance ( )
static

Presentation factory static instance. Read-only PresentationFactory.

◆ GetPresentationInfo() [1/2]

System::SharedPtr<IPresentationInfo> Aspose::Slides::PresentationFactory::GetPresentationInfo ( System::SharedPtr< System::IO::Stream stream)
overridevirtual

Creates new PresentationInfo object from stream and binds presentation to it. Gets info about presentation in specified stream.

Parameters
streamPresentation stream.
Returns
Presentation info binded to presentation.

Implements Aspose::Slides::IPresentationFactory.

◆ GetPresentationInfo() [2/2]

System::SharedPtr<IPresentationInfo> Aspose::Slides::PresentationFactory::GetPresentationInfo ( System::String  file)
overridevirtual

Creates new PresentationInfo object from file and binds presentation to it.

Parameters
filePresentation file.
Returns
Presentation info binded to presentation.

Implements Aspose::Slides::IPresentationFactory.

◆ GetPresentationText() [1/3]

System::SharedPtr<IPresentationText> Aspose::Slides::PresentationFactory::GetPresentationText ( System::SharedPtr< System::IO::Stream stream,
TextExtractionArrangingMode  mode 
)
overridevirtual

Retrieves the raw text from the slides

Parameters
streamInput stream
modeExtraction mode
Returns
The instance of PresentationText containing the SlideText array representing the raw slides text

Implements Aspose::Slides::IPresentationFactory.

◆ GetPresentationText() [2/3]

System::SharedPtr<IPresentationText> Aspose::Slides::PresentationFactory::GetPresentationText ( System::SharedPtr< System::IO::Stream stream,
TextExtractionArrangingMode  mode,
System::SharedPtr< ILoadOptions options 
)
overridevirtual

Retrieves the raw text from the slides

Parameters
streamInput stream
modeExtraction mode
optionsLoad options
Returns
The instance of PresentationText containing the SlideText array representing the raw slides text

Implements Aspose::Slides::IPresentationFactory.

◆ GetPresentationText() [3/3]

System::SharedPtr<IPresentationText> Aspose::Slides::PresentationFactory::GetPresentationText ( System::String  file,
TextExtractionArrangingMode  mode 
)
overridevirtual

Retrieves the raw text from the slides

Parameters
fileInput file
modeExtraction mode
Returns
The instance of PresentationText containing the SlideText array representing the raw slides text

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [1/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::ArrayPtr< uint8_t data)
overridevirtual

Reads an existing presentation from array

Parameters
dataArray to read
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [2/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::ArrayPtr< uint8_t data,
System::SharedPtr< ILoadOptions options 
)
overridevirtual

Reads an existing presentation from array with additional load options

Parameters
dataArray to read
optionsLoad options
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [3/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::SharedPtr< System::IO::Stream stream)
overridevirtual

Reads an existing presentation from stream

Parameters
streamInput stream to read
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [4/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::SharedPtr< System::IO::Stream stream,
System::SharedPtr< ILoadOptions options 
)
overridevirtual

Reads an existing presentation from stream with additional load options

Parameters
streamInput stream to read
optionsLoad options
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [5/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::String  file)
overridevirtual

Reads an existing presentation from file

Parameters
fileFile name
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.

◆ ReadPresentation() [6/6]

System::SharedPtr<IPresentation> Aspose::Slides::PresentationFactory::ReadPresentation ( System::String  file,
System::SharedPtr< ILoadOptions options 
)
overridevirtual

Reads an existing presentation from stream with additional load options

Parameters
fileFile name
optionsLoad options
Returns
Read presentation

Implements Aspose::Slides::IPresentationFactory.