Inherits System::Object.

Public Member Functions

ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPage > > get_ActivePage ()
 
ASPOSE_PAGE_SHARED_API void set_ActivePage (System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPage >> value)
 
ASPOSE_PAGE_SHARED_API void Restrict (int32_t index)
 
- 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 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 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

bool get_Debug () const
 
System::SharedPtr< System::Collections::Generic::Dictionary< System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument >, System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< XpsOutlineEntry > > > > > get_OutlinesMap () const
 
System::String get_FixedDocumentSequenceSource () const
 
void set_FixedDocumentSequenceSource (System::String value)
 
System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument > > get_ActiveDocument ()
 
void set_ActiveDocument (System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument >> value)
 
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::SharedPtr< XpsFileResource > > > get_FileResources () const
 
System::SharedPtr< System::Collections::Generic::IDictionary< System::SharedPtr< XpsFileResource >, System::String > > get_LoadedResources () const
 
System::SharedPtr< System::Collections::Generic::IDictionary< System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument >, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String > > > > get_OldToNewNameMap () const
 
bool get_IsDisposing () const
 
 XpsContext ()
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsContext, CODEPORTING_ARGS())
 
 XpsContext (System::SharedPtr< Aspose::OpcPackaging::OpcPackage > package)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsContext, CODEPORTING_ARGS(System::SharedPtr< Aspose::OpcPackaging::OpcPackage > package))
 
void StartOperation ()
 
void EndOperation ()
 
void SetVentureLicense (System::SharedPtr< Aspose::Page::LicenseManagement::VentureLicense > license)
 
System::SharedPtr< Aspose::Page::LicenseManagement::VentureLicense > GetVentureLicense ()
 
void SetPlugin (Aspose::Page::Plugins::Plugin plugin)
 
bool IsLicensed (System::SharedPtr< SaveOptions > saveOptions)
 
bool Restricted (int32_t index)
 
bool RestrictedPage ()
 
void ResetPageCounter ()
 
void IncrementPageCounter ()
 
void DisposePackage ()
 
void AddRequiredResources (System::SharedPtr< Aspose::OpcPackaging::OpcPackagePart > part)
 
bool AddResourceDictionary (System::SharedPtr< XpsElement > xpsElement, System::SharedPtr< System::Xml::XmlElement > element)
 
System::SharedPtr< XpsResourceDictionary > GetResourceDictionary (System::SharedPtr< XpsElement > element)
 
System::SharedPtr< XpsObjectGetResource (System::SharedPtr< XpsElement > element, System::String name)
 
System::SharedPtr< Aspose::OpcPackaging::OpcPackagePart > FetchExternalResource (System::String resourcePath)
 
void AddFileResourceHash (System::SharedPtr< System::IO::Stream > stream, System::String hash)
 
void AddFileResource (System::String hash, System::SharedPtr< XpsFileResource > resource)
 
System::String GetFileResourceHash (System::SharedPtr< System::IO::Stream > stream)
 
System::SharedPtr< XpsFileResourceGetFileResource (System::String hash)
 
System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicketGetPrintTicket (System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart > part)
 
System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicketGetPrintTicket (System::String printTicketPath)
 
void RegisterPrintTicket (System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart > part, System::String printTicketPath, System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicket > printTicket)
 
void RegisterPrintTicket (System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart > part, System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicket > printTicket)
 
void RegisterPageLinkTarget (System::SharedPtr< XpsPageLinkTarget > pageLinkTarget, bool add=true)
 
bool IsPageLinked (int32_t pageNumber)
 
void RegisterLoadedLinkTargetName (System::String linkTargetName, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument > document)
 
bool IsLoadedLinkTargetName (System::String name)
 
void CollectOutlines (System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument > fixedDocument, System::String path, System::SharedPtr< Aspose::OpcPackaging::OpcPackage > package)
 
void SelectActiveDocumentAndPageForMainThread ()
 
void ClearActiveDocumentAndPage ()
 
System::String GetDefaultPrintTicketPath (System::String key)
 
void RegisterDefaultPrintTicketPath (System::String key, System::String printTicketPath)
 
void ClearDefaultPrintTicketPaths ()
 
void GenerateElementLinkNames (RegistrationType regType)
 
System::String GetCounter (System::String counterName)
 
System::String GetLoadedName (System::String name)
 
void StartDisposal ()
 
void EndDisposal ()
 
void Dispose ()
 
virtual ASPOSE_PAGE_SHARED_API ~XpsContext ()
 

Static Protected Member Functions

static int32_t & IndivisibleLevel ()
 

Protected Attributes

System::SharedPtr< XpsPropertyValueManager > PropertyValueManager
 
Aspose::Page::Plugins::Plugin _usedByPlugin
 

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

Constructor & Destructor Documentation

◆ XpsContext() [1/2]

Aspose::Page::XPS::XpsModel::XpsContext::XpsContext ( )
protected

◆ XpsContext() [2/2]

Aspose::Page::XPS::XpsModel::XpsContext::XpsContext ( System::SharedPtr< Aspose::OpcPackaging::OpcPackage >  package)
protected

◆ ~XpsContext()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::XpsModel::XpsContext::~XpsContext ( )
protectedvirtual

Member Function Documentation

◆ AddFileResource()

void Aspose::Page::XPS::XpsModel::XpsContext::AddFileResource ( System::String  hash,
System::SharedPtr< XpsFileResource resource 
)
protected

◆ AddFileResourceHash()

void Aspose::Page::XPS::XpsModel::XpsContext::AddFileResourceHash ( System::SharedPtr< System::IO::Stream stream,
System::String  hash 
)
protected

◆ AddRequiredResources()

void Aspose::Page::XPS::XpsModel::XpsContext::AddRequiredResources ( System::SharedPtr< Aspose::OpcPackaging::OpcPackagePart >  part)
protected

◆ AddResourceDictionary()

bool Aspose::Page::XPS::XpsModel::XpsContext::AddResourceDictionary ( System::SharedPtr< XpsElement xpsElement,
System::SharedPtr< System::Xml::XmlElement element 
)
protected

◆ ClearActiveDocumentAndPage()

void Aspose::Page::XPS::XpsModel::XpsContext::ClearActiveDocumentAndPage ( )
protected

◆ ClearDefaultPrintTicketPaths()

void Aspose::Page::XPS::XpsModel::XpsContext::ClearDefaultPrintTicketPaths ( )
protected

◆ CollectOutlines()

void Aspose::Page::XPS::XpsModel::XpsContext::CollectOutlines ( System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument fixedDocument,
System::String  path,
System::SharedPtr< Aspose::OpcPackaging::OpcPackage >  package 
)
protected

◆ Dispose()

void Aspose::Page::XPS::XpsModel::XpsContext::Dispose ( )
protected

◆ DisposePackage()

void Aspose::Page::XPS::XpsModel::XpsContext::DisposePackage ( )
protected

◆ EndDisposal()

void Aspose::Page::XPS::XpsModel::XpsContext::EndDisposal ( )
protected

◆ EndOperation()

void Aspose::Page::XPS::XpsModel::XpsContext::EndOperation ( )
protected

◆ FetchExternalResource()

System::SharedPtr<Aspose::OpcPackaging::OpcPackagePart> Aspose::Page::XPS::XpsModel::XpsContext::FetchExternalResource ( System::String  resourcePath)
protected

◆ GenerateElementLinkNames()

void Aspose::Page::XPS::XpsModel::XpsContext::GenerateElementLinkNames ( RegistrationType  regType)
protected

◆ get_ActiveDocument()

System::Collections::Generic::KeyValuePair<int32_t, System::SharedPtr<Aspose::Page::XPS::XpsPackageParts::FixedDocument> > Aspose::Page::XPS::XpsModel::XpsContext::get_ActiveDocument ( )
protected

◆ get_ActivePage()

ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair<int32_t, System::SharedPtr<Aspose::Page::XPS::XpsPackageParts::FixedPage> > Aspose::Page::XPS::XpsModel::XpsContext::get_ActivePage ( )

◆ get_Debug()

bool Aspose::Page::XPS::XpsModel::XpsContext::get_Debug ( ) const
protected

◆ get_FileResources()

System::SharedPtr<System::Collections::Generic::IDictionary<System::String, System::SharedPtr<XpsFileResource> > > Aspose::Page::XPS::XpsModel::XpsContext::get_FileResources ( ) const
protected

◆ get_FixedDocumentSequenceSource()

System::String Aspose::Page::XPS::XpsModel::XpsContext::get_FixedDocumentSequenceSource ( ) const
protected

◆ get_IsDisposing()

bool Aspose::Page::XPS::XpsModel::XpsContext::get_IsDisposing ( ) const
protected

◆ get_LoadedResources()

System::SharedPtr<System::Collections::Generic::IDictionary<System::SharedPtr<XpsFileResource>, System::String> > Aspose::Page::XPS::XpsModel::XpsContext::get_LoadedResources ( ) const
protected

◆ get_OldToNewNameMap()

◆ get_OutlinesMap()

◆ GetCounter()

System::String Aspose::Page::XPS::XpsModel::XpsContext::GetCounter ( System::String  counterName)
protected

◆ GetDefaultPrintTicketPath()

System::String Aspose::Page::XPS::XpsModel::XpsContext::GetDefaultPrintTicketPath ( System::String  key)
protected

◆ GetFileResource()

System::SharedPtr<XpsFileResource> Aspose::Page::XPS::XpsModel::XpsContext::GetFileResource ( System::String  hash)
protected

◆ GetFileResourceHash()

System::String Aspose::Page::XPS::XpsModel::XpsContext::GetFileResourceHash ( System::SharedPtr< System::IO::Stream stream)
protected

◆ GetLoadedName()

System::String Aspose::Page::XPS::XpsModel::XpsContext::GetLoadedName ( System::String  name)
protected

◆ GetPrintTicket() [1/2]

System::SharedPtr<Aspose::Page::XPS::XpsMetadata::PrintTicket> Aspose::Page::XPS::XpsModel::XpsContext::GetPrintTicket ( System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart part)
protected

◆ GetPrintTicket() [2/2]

System::SharedPtr<Aspose::Page::XPS::XpsMetadata::PrintTicket> Aspose::Page::XPS::XpsModel::XpsContext::GetPrintTicket ( System::String  printTicketPath)
protected

◆ GetResource()

System::SharedPtr<XpsObject> Aspose::Page::XPS::XpsModel::XpsContext::GetResource ( System::SharedPtr< XpsElement element,
System::String  name 
)
protected

◆ GetResourceDictionary()

System::SharedPtr<XpsResourceDictionary> Aspose::Page::XPS::XpsModel::XpsContext::GetResourceDictionary ( System::SharedPtr< XpsElement element)
protected

◆ GetVentureLicense()

System::SharedPtr<Aspose::Page::LicenseManagement::VentureLicense> Aspose::Page::XPS::XpsModel::XpsContext::GetVentureLicense ( )
protected

◆ IncrementPageCounter()

void Aspose::Page::XPS::XpsModel::XpsContext::IncrementPageCounter ( )
protected

◆ IndivisibleLevel()

static int32_t& Aspose::Page::XPS::XpsModel::XpsContext::IndivisibleLevel ( )
staticprotected

◆ IsLicensed()

bool Aspose::Page::XPS::XpsModel::XpsContext::IsLicensed ( System::SharedPtr< SaveOptions saveOptions)
protected

◆ IsLoadedLinkTargetName()

bool Aspose::Page::XPS::XpsModel::XpsContext::IsLoadedLinkTargetName ( System::String  name)
protected

◆ IsPageLinked()

bool Aspose::Page::XPS::XpsModel::XpsContext::IsPageLinked ( int32_t  pageNumber)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/2]

Aspose::Page::XPS::XpsModel::XpsContext::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsContext  ,
CODEPORTING_ARGS()   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/2]

Aspose::Page::XPS::XpsModel::XpsContext::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsContext  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::OpcPackaging::OpcPackage > package)   
)
protected

◆ RegisterDefaultPrintTicketPath()

void Aspose::Page::XPS::XpsModel::XpsContext::RegisterDefaultPrintTicketPath ( System::String  key,
System::String  printTicketPath 
)
protected

◆ RegisterLoadedLinkTargetName()

void Aspose::Page::XPS::XpsModel::XpsContext::RegisterLoadedLinkTargetName ( System::String  linkTargetName,
System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument document 
)
protected

◆ RegisterPageLinkTarget()

void Aspose::Page::XPS::XpsModel::XpsContext::RegisterPageLinkTarget ( System::SharedPtr< XpsPageLinkTarget pageLinkTarget,
bool  add = true 
)
protected

◆ RegisterPrintTicket() [1/2]

void Aspose::Page::XPS::XpsModel::XpsContext::RegisterPrintTicket ( System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart part,
System::String  printTicketPath,
System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicket printTicket 
)
protected

◆ RegisterPrintTicket() [2/2]

void Aspose::Page::XPS::XpsModel::XpsContext::RegisterPrintTicket ( System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPart part,
System::SharedPtr< Aspose::Page::XPS::XpsMetadata::PrintTicket printTicket 
)
protected

◆ ResetPageCounter()

void Aspose::Page::XPS::XpsModel::XpsContext::ResetPageCounter ( )
protected

◆ Restrict()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsContext::Restrict ( int32_t  index)

◆ Restricted()

bool Aspose::Page::XPS::XpsModel::XpsContext::Restricted ( int32_t  index)
protected

◆ RestrictedPage()

bool Aspose::Page::XPS::XpsModel::XpsContext::RestrictedPage ( )
protected

◆ SelectActiveDocumentAndPageForMainThread()

void Aspose::Page::XPS::XpsModel::XpsContext::SelectActiveDocumentAndPageForMainThread ( )
protected

◆ set_ActiveDocument()

void Aspose::Page::XPS::XpsModel::XpsContext::set_ActiveDocument ( System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedDocument >>  value)
protected

◆ set_ActivePage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsContext::set_ActivePage ( System::Collections::Generic::KeyValuePair< int32_t, System::SharedPtr< Aspose::Page::XPS::XpsPackageParts::FixedPage >>  value)

◆ set_FixedDocumentSequenceSource()

void Aspose::Page::XPS::XpsModel::XpsContext::set_FixedDocumentSequenceSource ( System::String  value)
protected

◆ SetPlugin()

void Aspose::Page::XPS::XpsModel::XpsContext::SetPlugin ( Aspose::Page::Plugins::Plugin  plugin)
protected

◆ SetVentureLicense()

void Aspose::Page::XPS::XpsModel::XpsContext::SetVentureLicense ( System::SharedPtr< Aspose::Page::LicenseManagement::VentureLicense >  license)
protected

◆ StartDisposal()

void Aspose::Page::XPS::XpsModel::XpsContext::StartDisposal ( )
protected

◆ StartOperation()

void Aspose::Page::XPS::XpsModel::XpsContext::StartOperation ( )
protected

Member Data Documentation

◆ _usedByPlugin

Aspose::Page::Plugins::Plugin Aspose::Page::XPS::XpsModel::XpsContext::_usedByPlugin
protected

◆ PropertyValueManager

System::SharedPtr<XpsPropertyValueManager> Aspose::Page::XPS::XpsModel::XpsContext::PropertyValueManager
protected