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::Pen > | get_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::Brush > | get_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 | Init ()=0 |
Initializes device. More... | |
virtual ASPOSE_TEX_SHARED_API System::SharedPtr< Device > | Create () |
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... | |
![]() | |
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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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::SaveOptions > | get_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::IOutputWorkingDirectory > | get_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 | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
![]() | |
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 TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Implements the interface for outputting text and graphic content to abstract device. Rendering is performed page by page.
ASPOSE_TEX_SHARED_API Aspose::TeX::Presentation::Device::Device | ( | ) |
Creates a new instance.
|
protected |
Clone constructor. Initializes this device with another device.
device | The device to clone. |
|
pure virtual |
Sets the hyperlink with a URI as its target.
activeRect | The active rectangle of the link. |
border | The link border. |
targetUri | The 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.
|
protected |
|
virtual |
Creates a copy of this device.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Disposes the device.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Draws a path.
path | A path to draw. |
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Draws a text string.
str | The string. |
originX | The x coordinate of the origin. |
originY | The x coordinate of the origin. |
charInfos | Glyph 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.
|
pure virtual |
Finalizes the whole document.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Finalizes a page.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protectedvirtual |
|
pure virtual |
Fills a path.
path | A path to fill. |
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Gets destination name: output file name or device description.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Gets/sets the current fill.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Gets/sets the current fill opacity.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protected |
Gets/sets the current font.
|
pure virtual |
Shows if device is ready for output.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protected |
|
protected |
|
pure virtual |
Gets the number of pages.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protected |
|
virtual |
Gets/sets the current stroke.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Gets/sets the current stroke opacity.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Initializes device.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protectedvirtual |
Rolls back to the graphics state previously saved.
|
protectedvirtual |
Saves the current graphics state.
|
virtual |
Gets/sets the current fill.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Gets/sets the current fill opacity.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
protected |
Gets/sets the current font.
|
protected |
|
protected |
|
protected |
|
virtual |
Gets/sets the current stroke.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
virtual |
Gets/sets the current stroke opacity.
Reimplemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Sets the current clip path.
path | A clip path. |
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Sets the current coordinate space transformation.
matrix | A 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.
|
pure virtual |
Shows a raster image.
origin | The bottom-left corner of the shown image. |
size | The size of the shown image. |
imageData | The 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.
|
protectedvirtual |
//
// Shows a raster image. //
//
origin | The bottom-left corner of the shown image. |
//
size | The size of the shown image. |
//
imageData | The image data. |
//
cropBox | The 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.
|
pure virtual |
Starts the whole document.
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.
|
pure virtual |
Starts a new page.
width | The page width. |
height | The page height. |
Implemented in Aspose::TeX::Presentation::Pdf::PdfDevice, Aspose::TeX::Presentation::Xps::XpsDevice, Aspose::TeX::Presentation::Svg::SvgDevice, and Aspose::TeX::Presentation::Image::ImageDevice.