Aspose::TeX::Presentation::Device Class Referenceabstract

Implements the interface for outputting text and graphic content to abstract device. Rendering is performed page by page. More...

Inherits System::Object.

Inherited by Aspose::TeX::Presentation::Image::ImageDevice, Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Xps::XpsDevice.

Public Member Functions

virtual ASPOSE_TEX_SHARED_API int32_t get_PageCount ()=0
 Gets the number of pages. More...
 
virtual ASPOSE_TEX_SHARED_API bool get_IsReady ()=0
 Shows if device is ready for output. More...
 
virtual ASPOSE_TEX_SHARED_API System::String get_DestinationName ()=0
 Gets destination name: output file name or device description. More...
 
virtual ASPOSE_TEX_SHARED_API System::SharedPtr< System::Drawing::Penget_Stroke ()
 Gets/sets the current stroke. More...
 
virtual ASPOSE_TEX_SHARED_API void set_Stroke (System::SharedPtr< System::Drawing::Pen > value)
 Gets/sets the current stroke. More...
 
virtual ASPOSE_TEX_SHARED_API System::SharedPtr< System::Drawing::Brushget_Fill ()
 Gets/sets the current fill. More...
 
virtual ASPOSE_TEX_SHARED_API void set_Fill (System::SharedPtr< System::Drawing::Brush > value)
 Gets/sets the current fill. More...
 
virtual ASPOSE_TEX_SHARED_API float get_StrokeOpacity ()
 Gets/sets the current stroke opacity. More...
 
virtual ASPOSE_TEX_SHARED_API void set_StrokeOpacity (float value)
 Gets/sets the current stroke opacity. More...
 
virtual ASPOSE_TEX_SHARED_API float get_FillOpacity ()
 Gets/sets the current fill opacity. More...
 
virtual ASPOSE_TEX_SHARED_API void set_FillOpacity (float value)
 Gets/sets the current fill opacity. More...
 
ASPOSE_TEX_SHARED_API Device ()
 Creates a new instance. More...
 
virtual ASPOSE_TEX_SHARED_API void Initialize ()=0
 Initializes the device. More...
 
virtual ASPOSE_TEX_SHARED_API System::SharedPtr< DeviceCreate ()
 Creates a copy of this device. More...
 
virtual ASPOSE_TEX_SHARED_API void Dispose ()
 Disposes the device. More...
 
virtual ASPOSE_TEX_SHARED_API void StartDocument ()=0
 Starts the whole document. More...
 
virtual ASPOSE_TEX_SHARED_API void EndDocument ()=0
 Finalizes the whole document. More...
 
virtual ASPOSE_TEX_SHARED_API void StartPage (float width, float height)=0
 Starts a new page. More...
 
virtual ASPOSE_TEX_SHARED_API void EndPage ()=0
 Finalizes a page. More...
 
virtual ASPOSE_TEX_SHARED_API void AddHyperlink (System::Drawing::RectangleF activeRect, System::SharedPtr< System::Drawing::Pen > border, System::String targetUri)=0
 Sets the hyperlink with a URI as its target. More...
 
virtual ASPOSE_TEX_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > matrix)=0
 Sets the current coordinate space transformation. More...
 
virtual ASPOSE_TEX_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)=0
 Sets the current clip path. More...
 
virtual ASPOSE_TEX_SHARED_API void DrawString (System::String str, float originX, float originY, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< GlyphData >>> charInfos)=0
 Draws a text string. More...
 
virtual ASPOSE_TEX_SHARED_API void DrawPath (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)=0
 Draws a path. More...
 
virtual ASPOSE_TEX_SHARED_API void FillPath (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)=0
 Fills a path. More...
 
virtual ASPOSE_TEX_SHARED_API void ShowImage (System::Drawing::PointF origin, System::Drawing::SizeF size, System::ArrayPtr< uint8_t > imageData)=0
 Shows a raster image. 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 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)
 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...
 
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

System::SharedPtr< Aspose::TeX::Presentation::SaveOptionsget_SaveOptions () const
 
void set_SaveOptions (System::SharedPtr< Aspose::TeX::Presentation::SaveOptions > value)
 
System::String get_JobName () const
 
void set_JobName (System::String value)
 
System::SharedPtr< Aspose::TeX::IO::IOutputWorkingDirectoryget_OutputDirectory () const
 
void set_OutputDirectory (System::SharedPtr< Aspose::TeX::IO::IOutputWorkingDirectory > value)
 
System::SharedPtr< Aspose::Foundation::Drawing::DrFont > get_Font ()
 Gets/sets the current font. More...
 
void set_Font (System::SharedPtr< Aspose::Foundation::Drawing::DrFont > value)
 Gets/sets the current font. More...
 
ASPOSE_TEX_SHARED_API Device (System::SharedPtr< Device > device)
 Clone constructor. Initializes this device with another device. More...
 
virtual ASPOSE_TEX_SHARED_API void EndPageInternal (System::String evalMark)
 
virtual ASPOSE_TEX_SHARED_API void SaveGraphicsState ()
 Saves the current graphics state. More...
 
virtual ASPOSE_TEX_SHARED_API void RestoreGraphicsState ()
 Rolls back to the graphics state previously saved. More...
 
void AdjustLineDash ()
 
virtual ASPOSE_TEX_SHARED_API void ShowPage (System::Drawing::PointF origin, System::Drawing::SizeF size, System::String hash, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Rendering::ApsPage >>> pages, int32_t page)
 // More...
 

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

Detailed Description

Implements the interface for outputting text and graphic content to abstract device. Rendering is performed page by page.

Constructor & Destructor Documentation

◆ Device() [1/2]

ASPOSE_TEX_SHARED_API Aspose::TeX::Presentation::Device::Device ( )

Creates a new instance.

◆ Device() [2/2]

ASPOSE_TEX_SHARED_API Aspose::TeX::Presentation::Device::Device ( System::SharedPtr< Device device)
protected

Clone constructor. Initializes this device with another device.

Parameters
deviceThe device to clone.

Member Function Documentation

◆ AddHyperlink()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::AddHyperlink ( System::Drawing::RectangleF  activeRect,
System::SharedPtr< System::Drawing::Pen border,
System::String  targetUri 
)
pure virtual

Sets the hyperlink with a URI as its target.

Parameters
activeRectThe active rectangle of the link.
borderThe link border.
targetUriThe target URI.

Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.

◆ AdjustLineDash()

void Aspose::TeX::Presentation::Device::AdjustLineDash ( )
protected

◆ Create()

virtual ASPOSE_TEX_SHARED_API System::SharedPtr<Device> Aspose::TeX::Presentation::Device::Create ( )
virtual

◆ Dispose()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::Dispose ( )
virtual

◆ DrawPath()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::DrawPath ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
pure virtual

◆ DrawString()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::DrawString ( System::String  str,
float  originX,
float  originY,
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< GlyphData >>>  charInfos 
)
pure virtual

Draws a text string.

Parameters
strThe string.
originXThe x coordinate of the origin.
originYThe x coordinate of the origin.
charInfosGlyph data required for precise typesetting of a text string.

Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.

◆ EndDocument()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::EndDocument ( )
pure virtual

◆ EndPage()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::EndPage ( )
pure virtual

◆ EndPageInternal()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::EndPageInternal ( System::String  evalMark)
protectedvirtual

◆ FillPath()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::FillPath ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
pure virtual

◆ get_DestinationName()

virtual ASPOSE_TEX_SHARED_API System::String Aspose::TeX::Presentation::Device::get_DestinationName ( )
pure virtual

◆ get_Fill()

virtual ASPOSE_TEX_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::TeX::Presentation::Device::get_Fill ( )
virtual

◆ get_FillOpacity()

virtual ASPOSE_TEX_SHARED_API float Aspose::TeX::Presentation::Device::get_FillOpacity ( )
virtual

◆ get_Font()

System::SharedPtr<Aspose::Foundation::Drawing::DrFont> Aspose::TeX::Presentation::Device::get_Font ( )
protected

Gets/sets the current font.

◆ get_IsReady()

virtual ASPOSE_TEX_SHARED_API bool Aspose::TeX::Presentation::Device::get_IsReady ( )
pure virtual

◆ get_JobName()

System::String Aspose::TeX::Presentation::Device::get_JobName ( ) const
protected

◆ get_OutputDirectory()

System::SharedPtr<Aspose::TeX::IO::IOutputWorkingDirectory> Aspose::TeX::Presentation::Device::get_OutputDirectory ( ) const
protected

◆ get_PageCount()

virtual ASPOSE_TEX_SHARED_API int32_t Aspose::TeX::Presentation::Device::get_PageCount ( )
pure virtual

◆ get_SaveOptions()

System::SharedPtr<Aspose::TeX::Presentation::SaveOptions> Aspose::TeX::Presentation::Device::get_SaveOptions ( ) const
protected

◆ get_Stroke()

virtual ASPOSE_TEX_SHARED_API System::SharedPtr<System::Drawing::Pen> Aspose::TeX::Presentation::Device::get_Stroke ( )
virtual

◆ get_StrokeOpacity()

virtual ASPOSE_TEX_SHARED_API float Aspose::TeX::Presentation::Device::get_StrokeOpacity ( )
virtual

◆ Initialize()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::Initialize ( )
pure virtual

◆ RestoreGraphicsState()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::RestoreGraphicsState ( )
protectedvirtual

Rolls back to the graphics state previously saved.

◆ SaveGraphicsState()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::SaveGraphicsState ( )
protectedvirtual

Saves the current graphics state.

◆ set_Fill()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::set_Fill ( System::SharedPtr< System::Drawing::Brush value)
virtual

◆ set_FillOpacity()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::set_FillOpacity ( float  value)
virtual

◆ set_Font()

void Aspose::TeX::Presentation::Device::set_Font ( System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  value)
protected

Gets/sets the current font.

◆ set_JobName()

void Aspose::TeX::Presentation::Device::set_JobName ( System::String  value)
protected

◆ set_OutputDirectory()

void Aspose::TeX::Presentation::Device::set_OutputDirectory ( System::SharedPtr< Aspose::TeX::IO::IOutputWorkingDirectory value)
protected

◆ set_SaveOptions()

void Aspose::TeX::Presentation::Device::set_SaveOptions ( System::SharedPtr< Aspose::TeX::Presentation::SaveOptions value)
protected

◆ set_Stroke()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::set_Stroke ( System::SharedPtr< System::Drawing::Pen value)
virtual

◆ set_StrokeOpacity()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::set_StrokeOpacity ( float  value)
virtual

◆ SetClip()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::SetClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
pure virtual

◆ SetTransform()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::SetTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix matrix)
pure virtual

Sets the current coordinate space transformation.

Parameters
matrixA transformation matrix.

Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.

◆ ShowImage()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::ShowImage ( System::Drawing::PointF  origin,
System::Drawing::SizeF  size,
System::ArrayPtr< uint8_t >  imageData 
)
pure virtual

Shows a raster image.

Parameters
originThe bottom-left corner of the shown image.
sizeThe size of the shown image.
imageDataThe image data.

Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.

◆ ShowPage()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::ShowPage ( System::Drawing::PointF  origin,
System::Drawing::SizeF  size,
System::String  hash,
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Rendering::ApsPage >>>  pages,
int32_t  page 
)
protectedvirtual

//

// Shows a raster image. //

//

Parameters
originThe bottom-left corner of the shown image.

//

Parameters
sizeThe size of the shown image.

//

Parameters
imageDataThe image data.

//

Parameters
cropBoxThe crop box.

Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.

◆ StartDocument()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::StartDocument ( )
pure virtual

◆ StartPage()

virtual ASPOSE_TEX_SHARED_API void Aspose::TeX::Presentation::Device::StartPage ( float  width,
float  height 
)
pure virtual