Aspose::Page::XPS::Presentation::XpsPresenter Class Reference

Inherits Aspose::Page::XPS::Presentation::XpsBasePresenter, and ISupplyNode< System::SharedPtr< Aspose::Rendering::ApsPage > >.

Public Member Functions

ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Pipeline::Pipe< System::SharedPtr< Aspose::Rendering::ApsPage > > > get_OutputPipe () override
 The pipe to put APS pages to. More...
 
ASPOSE_PAGE_SHARED_API void set_OutputPipe (System::SharedPtr< Aspose::Pipeline::Pipe< System::SharedPtr< Aspose::Rendering::ApsPage >>> value) override
 The pipe to put APS pages to. More...
 
ASPOSE_PAGE_SHARED_API int32_t get_MaxThreadsCount () override
 The maximum number of threads that can be run for the node. More...
 
ASPOSE_PAGE_SHARED_API XpsPresenter (System::SharedPtr< XpsDocument > document, System::SharedPtr< Device > device, System::SharedPtr< SaveOptions > options)
 
ASPOSE_PAGE_SHARED_API void RegisterNodeThread (int32_t nodeThreadId) override
 Registers parent-child relationship between the pipeline and the node threads. More...
 
ASPOSE_PAGE_SHARED_API void Run () override
 The method which performs APS pages vertical flip when run by a pipeline. More...
 
ASPOSE_PAGE_SHARED_API void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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

ASPOSE_PAGE_SHARED_API void BeforePresentation () override
 
ASPOSE_PAGE_SHARED_API void AfterPresentation () override
 
ASPOSE_PAGE_SHARED_API void BeforeDocument () override
 
ASPOSE_PAGE_SHARED_API void AfterDocument () override
 
void PreprocessDocument ()
 
void PreprocessPage (int32_t relativePageNumber, int32_t absolutePageNumber)
 
ASPOSE_PAGE_SHARED_API bool VisitPageStart (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPage > page) override
 
ASPOSE_PAGE_SHARED_API void VisitPageEnd (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPage > page) override
 
ASPOSE_PAGE_SHARED_API void VisitCanvasStart (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas > canvas) override
 
ASPOSE_PAGE_SHARED_API void VisitCanvasEnd (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas > canvas) override
 
ASPOSE_PAGE_SHARED_API bool VisitPathStart (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath > path) override
 
ASPOSE_PAGE_SHARED_API void VisitPathEnd (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath > path) override
 
ASPOSE_PAGE_SHARED_API void VisitGlyphsStart (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > glyphs) override
 
ASPOSE_PAGE_SHARED_API void VisitGlyphsEnd (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > glyphs) override
 
ASPOSE_PAGE_SHARED_API bool StartProperty (System::SharedPtr< Aspose::Page::XPS::XpsModel::IXpsProperty > property) override
 
ASPOSE_PAGE_SHARED_API void EndProperty (System::SharedPtr< Aspose::Page::XPS::XpsModel::IXpsProperty > property) override
 
void Clear ()
 
virtual ASPOSE_PAGE_SHARED_API ~XpsPresenter ()
 
- Protected Member Functions inherited from Aspose::Page::XPS::Presentation::XpsBasePresenter
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsContextget_Context ()
 
 XpsBasePresenter (System::SharedPtr< XpsDocument > document)
 
void Present ()
 
virtual ASPOSE_PAGE_SHARED_API ~XpsBasePresenter ()
 
- Protected Member Functions inherited from Aspose::Page::XPS::XpsDocumentVisitor
 XpsDocumentVisitor (System::SharedPtr< XpsDocument > document)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsDocumentVisitor, CODEPORTING_ARGS(System::SharedPtr< XpsDocument > document))
 
virtual ASPOSE_PAGE_SHARED_API void VisitFixedPageStart (System::SharedPtr< XpsPackageParts::FixedPage > fixedPage)
 
virtual ASPOSE_PAGE_SHARED_API void VisitFixedPageEnd (System::SharedPtr< XpsPackageParts::FixedPage > fixedPage)
 
virtual ASPOSE_PAGE_SHARED_API bool VisitPageStart (System::SharedPtr< XpsModel::XpsPage > page)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPageEnd (System::SharedPtr< XpsModel::XpsPage > page)
 
virtual ASPOSE_PAGE_SHARED_API void VisitCanvasStart (System::SharedPtr< XpsModel::XpsCanvas > canvas)
 
virtual ASPOSE_PAGE_SHARED_API void VisitCanvasEnd (System::SharedPtr< XpsModel::XpsCanvas > canvas)
 
virtual ASPOSE_PAGE_SHARED_API bool VisitPathStart (System::SharedPtr< XpsModel::XpsPath > path)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPathEnd (System::SharedPtr< XpsModel::XpsPath > path)
 
virtual ASPOSE_PAGE_SHARED_API void VisitGlyphsStart (System::SharedPtr< XpsModel::XpsGlyphs > glyphs)
 
virtual ASPOSE_PAGE_SHARED_API void VisitGlyphsEnd (System::SharedPtr< XpsModel::XpsGlyphs > glyphs)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPathGeometryStart (System::SharedPtr< XpsModel::XpsPathGeometry > pathGeometry)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPathGeometryEnd (System::SharedPtr< XpsModel::XpsPathGeometry > pathGeometry)
 
virtual ASPOSE_PAGE_SHARED_API bool VisitPathFigureStart (System::SharedPtr< XpsModel::XpsPathFigure > pathFigure)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPathFigureEnd (System::SharedPtr< XpsModel::XpsPathFigure > pathFigure)
 
virtual ASPOSE_PAGE_SHARED_API void VisitArcSegment (System::SharedPtr< XpsModel::XpsArcSegment > segment)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPolyLineSegment (System::SharedPtr< XpsModel::XpsPolyLineSegment > segment)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPolyBezierSegment (System::SharedPtr< XpsModel::XpsPolyBezierSegment > segment)
 
virtual ASPOSE_PAGE_SHARED_API void VisitPolyQuadraticBezierSegment (System::SharedPtr< XpsModel::XpsPolyQuadraticBezierSegment > segment)
 
virtual ASPOSE_PAGE_SHARED_API void VisitMatrix (System::SharedPtr< XpsModel::XpsMatrix > matrix)
 
virtual ASPOSE_PAGE_SHARED_API void VisitSolidColorBrush (System::SharedPtr< XpsModel::XpsSolidColorBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitImageBrush (System::SharedPtr< XpsModel::XpsImageBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitVisualBrushStart (System::SharedPtr< XpsModel::XpsVisualBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitVisualBrushEnd (System::SharedPtr< XpsModel::XpsVisualBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitLinearGradientBrush (System::SharedPtr< XpsModel::XpsLinearGradientBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitRadialGradientBrush (System::SharedPtr< XpsModel::XpsRadialGradientBrush > brush)
 
virtual ASPOSE_PAGE_SHARED_API void VisitGradientStop (System::SharedPtr< XpsModel::XpsGradientStop > gradientStop)
 
virtual ASPOSE_PAGE_SHARED_API bool StartProperty (System::SharedPtr< XpsModel::IXpsProperty > property)
 
virtual ASPOSE_PAGE_SHARED_API void EndProperty (System::SharedPtr< XpsModel::IXpsProperty > property)
 

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...
 
- Protected Attributes inherited from Aspose::Page::XPS::XpsDocumentVisitor
System::SharedPtr< XpsDocument_document
 

Constructor & Destructor Documentation

◆ XpsPresenter()

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::XpsPresenter::XpsPresenter ( System::SharedPtr< XpsDocument document,
System::SharedPtr< Device device,
System::SharedPtr< SaveOptions options 
)

◆ ~XpsPresenter()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::XpsPresenter::~XpsPresenter ( )
protectedvirtual

Member Function Documentation

◆ AfterDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::AfterDocument ( )
overrideprotectedvirtual

◆ AfterPresentation()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::AfterPresentation ( )
overrideprotectedvirtual

◆ BeforeDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::BeforeDocument ( )
overrideprotectedvirtual

◆ BeforePresentation()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::BeforePresentation ( )
overrideprotectedvirtual

◆ Clear()

void Aspose::Page::XPS::Presentation::XpsPresenter::Clear ( )
protected

◆ EndProperty()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::EndProperty ( System::SharedPtr< Aspose::Page::XPS::XpsModel::IXpsProperty >  property)
overrideprotected

◆ get_MaxThreadsCount()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Presentation::XpsPresenter::get_MaxThreadsCount ( )
override

The maximum number of threads that can be run for the node.

◆ get_OutputPipe()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Pipeline::Pipe<System::SharedPtr<Aspose::Rendering::ApsPage> > > Aspose::Page::XPS::Presentation::XpsPresenter::get_OutputPipe ( )
override

The pipe to put APS pages to.

◆ PreprocessDocument()

void Aspose::Page::XPS::Presentation::XpsPresenter::PreprocessDocument ( )
protected

◆ PreprocessPage()

void Aspose::Page::XPS::Presentation::XpsPresenter::PreprocessPage ( int32_t  relativePageNumber,
int32_t  absolutePageNumber 
)
protected

◆ RegisterNodeThread()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::RegisterNodeThread ( int32_t  nodeThreadId)
override

Registers parent-child relationship between the pipeline and the node threads.

Parameters
nodeThreadIdThe node thread Id.

◆ Run()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::Run ( )
override

The method which performs APS pages vertical flip when run by a pipeline.

◆ set_OutputPipe()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::set_OutputPipe ( System::SharedPtr< Aspose::Pipeline::Pipe< System::SharedPtr< Aspose::Rendering::ApsPage >>>  value)
override

The pipe to put APS pages to.

◆ SetTemplateWeakPtr()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::SetTemplateWeakPtr ( uint32_t  argument)
overridevirtual

Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

Parameters
argumentIndex of template argument to treat as weak poiner.

Reimplemented from System::Object.

◆ StartProperty()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::XpsPresenter::StartProperty ( System::SharedPtr< Aspose::Page::XPS::XpsModel::IXpsProperty >  property)
overrideprotected

◆ VisitCanvasEnd()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitCanvasEnd ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas canvas)
overrideprotected

◆ VisitCanvasStart()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitCanvasStart ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas canvas)
overrideprotected

◆ VisitGlyphsEnd()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitGlyphsEnd ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs glyphs)
overrideprotected

◆ VisitGlyphsStart()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitGlyphsStart ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs glyphs)
overrideprotected

◆ VisitPageEnd()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitPageEnd ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPage page)
overrideprotected

◆ VisitPageStart()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::XpsPresenter::VisitPageStart ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPage page)
overrideprotected

◆ VisitPathEnd()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::XpsPresenter::VisitPathEnd ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath path)
overrideprotected

◆ VisitPathStart()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::XpsPresenter::VisitPathStart ( System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath path)
overrideprotected