LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
vcl::TrueTypeTablePost Class Reference

Creates a new 'post' table of one of the supported formats. More...

#include <ttcr.hxx>

Inheritance diagram for vcl::TrueTypeTablePost:
[legend]
Collaboration diagram for vcl::TrueTypeTablePost:
[legend]

Public Member Functions

 TrueTypeTablePost (sal_Int32 format, sal_Int32 italicAngle, sal_Int16 underlinePosition, sal_Int16 underlineThickness, sal_uInt32 isFixedPitch)
 
virtual ~TrueTypeTablePost () override
 
virtual int GetRawData (TableEntry *) override
 This function converts the data of a TrueType table to a raw array of bytes. More...
 
- Public Member Functions inherited from vcl::TrueTypeTable
virtual ~TrueTypeTable ()
 
virtual int GetRawData (TableEntry *)=0
 This function converts the data of a TrueType table to a raw array of bytes. More...
 

Private Attributes

sal_uInt32 m_format
 
sal_uInt32 m_italicAngle
 
sal_Int16 m_underlinePosition
 
sal_Int16 m_underlineThickness
 
sal_uInt32 m_isFixedPitch
 

Additional Inherited Members

- Public Attributes inherited from vcl::TrueTypeTable
sal_uInt32 m_tag = 0
 
std::unique_ptr< sal_uInt8[]> m_rawdata
 
- Protected Member Functions inherited from vcl::TrueTypeTable
 TrueTypeTable (sal_uInt32 tag_)
 

Detailed Description

Creates a new 'post' table of one of the supported formats.

Definition at line 274 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTablePost()

vcl::TrueTypeTablePost::TrueTypeTablePost ( sal_Int32  format,
sal_Int32  italicAngle,
sal_Int16  underlinePosition,
sal_Int16  underlineThickness,
sal_uInt32  isFixedPitch 
)

◆ ~TrueTypeTablePost()

vcl::TrueTypeTablePost::~TrueTypeTablePost ( )
overridevirtual

Definition at line 310 of file ttcr.cxx.

References m_format, and SAL_WARN.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTablePost::GetRawData ( TableEntry )
overridevirtual

This function converts the data of a TrueType table to a raw array of bytes.

It may allocates the memory for it and returns the size of the raw data in bytes. If memory is allocated it does not need to be freed by the caller of this function, since the pointer to it is stored in the TrueTypeTable and it is freed by the destructor

Returns
TTCRErrCode

Implements vcl::TrueTypeTable.

Definition at line 574 of file ttcr.cxx.

References vcl::TableEntry::data, vcl::TableEntry::length, m_format, m_isFixedPitch, m_italicAngle, vcl::TrueTypeTable::m_rawdata, m_underlinePosition, m_underlineThickness, vcl::PutUInt16(), vcl::PutUInt32(), SAL_WARN, vcl::T_post, vcl::TableEntry::tag, vcl::TTCR_OK, vcl::TTCR_POSTFORMAT, and vcl::ttmalloc().

Member Data Documentation

◆ m_format

sal_uInt32 vcl::TrueTypeTablePost::m_format
private

Definition at line 285 of file ttcr.hxx.

Referenced by GetRawData(), TrueTypeTablePost(), and ~TrueTypeTablePost().

◆ m_isFixedPitch

sal_uInt32 vcl::TrueTypeTablePost::m_isFixedPitch
private

Definition at line 289 of file ttcr.hxx.

Referenced by GetRawData(), and TrueTypeTablePost().

◆ m_italicAngle

sal_uInt32 vcl::TrueTypeTablePost::m_italicAngle
private

Definition at line 286 of file ttcr.hxx.

Referenced by GetRawData(), and TrueTypeTablePost().

◆ m_underlinePosition

sal_Int16 vcl::TrueTypeTablePost::m_underlinePosition
private

Definition at line 287 of file ttcr.hxx.

Referenced by GetRawData(), and TrueTypeTablePost().

◆ m_underlineThickness

sal_Int16 vcl::TrueTypeTablePost::m_underlineThickness
private

Definition at line 288 of file ttcr.hxx.

Referenced by GetRawData(), and TrueTypeTablePost().


The documentation for this class was generated from the following files: