wxPdfDocument  0.9.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
wxPdfEncoding Class Reference

Class representing a font encoding. More...

#include <pdfencoding.h>

Public Member Functions

 wxPdfEncoding ()
 Default constructor. More...
 
virtual ~wxPdfEncoding ()
 Destructor. More...
 
 wxPdfEncoding (const wxPdfEncoding &encoding)
 Copy constructor. More...
 
wxPdfEncodingoperator= (const wxPdfEncoding &encoding)
 Assignment operator. More...
 
bool IsOk () const
 Check whether the encoding is valid. More...
 
bool SetEncoding (const wxString &encoding)
 Set the encoding. More...
 
wxString GetEncodingName () const
 Get the name of the encoding. More...
 
wxString GetBaseEncodingName () const
 Get the name of the base encoding. More...
 
wxString GetDifferences () const
 Get the differences between the encoding and the associated base encoding. More...
 
wxPdfArrayUint32 GetCMap () const
 Get the character map of the encoding. More...
 
void InitializeEncodingMap ()
 Initialize the encoding map. More...
 
const wxPdfChar2GlyphMap * GetEncodingMap () const
 Get the encoding map. More...
 
wxArrayString GetGlyphNames () const
 Get the list of glyph names supported by the encoding. More...
 

Static Public Member Functions

static bool GlyphName2Unicode (const wxString &glyphName, wxUint32 &unicode)
 Convert a glyph name to a unicode character. More...
 
static bool Unicode2GlyphName (wxUint32 unicode, wxString &glyphName)
 Convert a unicode character to a glyph name. More...
 
static wxArrayString GetKnownEncodings ()
 Get a list of known encodings. More...
 

Protected Member Functions

void CreateEncodingConvMap ()
 Create the encoding conversion map for user defined encodings. More...
 

Detailed Description

Class representing a font encoding.

Constructor & Destructor Documentation

wxPdfEncoding::wxPdfEncoding ( )

Default constructor.

virtual wxPdfEncoding::~wxPdfEncoding ( )
virtual

Destructor.

wxPdfEncoding::wxPdfEncoding ( const wxPdfEncoding encoding)

Copy constructor.

Member Function Documentation

void wxPdfEncoding::CreateEncodingConvMap ( )
protected

Create the encoding conversion map for user defined encodings.

wxString wxPdfEncoding::GetBaseEncodingName ( ) const

Get the name of the base encoding.

Returns
the name of the base encoding
wxPdfArrayUint32 wxPdfEncoding::GetCMap ( ) const

Get the character map of the encoding.

Returns
the character map
wxString wxPdfEncoding::GetDifferences ( ) const

Get the differences between the encoding and the associated base encoding.

Returns
the difference string
const wxPdfChar2GlyphMap* wxPdfEncoding::GetEncodingMap ( ) const

Get the encoding map.

Returns
the encoding map
wxString wxPdfEncoding::GetEncodingName ( ) const

Get the name of the encoding.

Returns
the name of the encoding
wxArrayString wxPdfEncoding::GetGlyphNames ( ) const

Get the list of glyph names supported by the encoding.

Returns
a list of glyph names
static wxArrayString wxPdfEncoding::GetKnownEncodings ( )
static

Get a list of known encodings.

Returns
an array containing all known encodings
static bool wxPdfEncoding::GlyphName2Unicode ( const wxString &  glyphName,
wxUint32 &  unicode 
)
static

Convert a glyph name to a unicode character.

Parameters
[in]glyphNamename of the glyph
[out]unicodeunicode character of the glyph
Returns
TRUE if the conversion was successful, FALSE otherwise
void wxPdfEncoding::InitializeEncodingMap ( )

Initialize the encoding map.

bool wxPdfEncoding::IsOk ( ) const

Check whether the encoding is valid.

Returns
TRUE if the encoding is valid, FALSE otherwise
wxPdfEncoding& wxPdfEncoding::operator= ( const wxPdfEncoding encoding)

Assignment operator.

bool wxPdfEncoding::SetEncoding ( const wxString &  encoding)

Set the encoding.

Parameters
encodingthe encoding that should be set
static bool wxPdfEncoding::Unicode2GlyphName ( wxUint32  unicode,
wxString &  glyphName 
)
static

Convert a unicode character to a glyph name.

Parameters
[in]unicodeunicode character of the glyph
[out]glyphNamename of the glyph
Returns
TRUE if the conversion was successful, FALSE otherwise

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