wxPdfDocument  0.9.3
Public Member Functions | Protected Attributes
wxPdfFontParser Class Reference

Class representing font parsers. More...

#include <pdffontparser.h>

Inheritance diagram for wxPdfFontParser:
wxPdfFontParserTrueType wxPdfFontParserType1 wxPdfFontSubsetTrueType

List of all members.

Public Member Functions

 wxPdfFontParser ()
 Default constructor.
virtual ~wxPdfFontParser ()
 Default destructor.
void SeekI (int offset)
 Seek to offset in default input stream.
void SeekI (int offset, wxInputStream *stream)
 Seek to offset in specific input stream.
int TellI ()
 Tell current position in default input stream.
int TellI (wxInputStream *stream)
 Tell current position in specific input stream.
void SkipBytes (int count)
 Skip bytes in default input stream.
void SkipBytes (int count, wxInputStream *stream)
 Skip bytes in specific input stream.
int ReadInt ()
 Read integer from default input stream.
short ReadShort ()
 Read short integer from default input stream.
unsigned short ReadUShort ()
 Read unsigned short integer from default input stream.
unsigned char ReadByte ()
 Read byte from default input stream.
unsigned char ReadByte (wxInputStream *stream)
 Read byte from specific input stream.
wxString ReadString (int length)
 Read string from default input stream.
wxString ReadString (int length, wxInputStream *stream)
 Read string from specific input stream.
wxString ReadUnicodeString (int length)
 Read Unicode string from default input stream.
short ReadShortLE (wxInputStream *stream)
 Read short integer from specific input stream in little endian mode.
unsigned short ReadUShortLE (wxInputStream *stream)
 Read unsigned short integer from specific input stream in little endian mode.
unsigned int ReadUIntLE (wxInputStream *stream)
 Read unsigned integer from specific input stream in little endian mode.
wxString ReadString (wxInputStream &stream)
 Read string from specific input stream.

Protected Attributes

wxString m_fileName
 File name of the font file.
wxString m_fontName
 Name of font.
wxInputStream * m_inFont
 Font file input stream.
wxString m_style
 Font style.

Detailed Description

Class representing font parsers.


Constructor & Destructor Documentation

wxPdfFontParser::wxPdfFontParser ( )

Default constructor.

virtual wxPdfFontParser::~wxPdfFontParser ( )
virtual

Default destructor.


Member Function Documentation

unsigned char wxPdfFontParser::ReadByte ( )

Read byte from default input stream.

Returns:
the byte read
unsigned char wxPdfFontParser::ReadByte ( wxInputStream *  stream)

Read byte from specific input stream.

Parameters:
streaminput stream
Returns:
the byte read
int wxPdfFontParser::ReadInt ( )

Read integer from default input stream.

Returns:
the integer read
short wxPdfFontParser::ReadShort ( )

Read short integer from default input stream.

Returns:
the short integer read
short wxPdfFontParser::ReadShortLE ( wxInputStream *  stream)

Read short integer from specific input stream in little endian mode.

Parameters:
streaminput stream
Returns:
the short integer read
wxString wxPdfFontParser::ReadString ( int  length)

Read string from default input stream.

Parameters:
lengththe length of the string to read
Returns:
the string read
wxString wxPdfFontParser::ReadString ( int  length,
wxInputStream *  stream 
)

Read string from specific input stream.

Parameters:
lengththe length of the string to read
streaminput stream
Returns:
the string read
wxString wxPdfFontParser::ReadString ( wxInputStream &  stream)

Read string from specific input stream.

Parameters:
streaminput stream
Returns:
the string read
unsigned int wxPdfFontParser::ReadUIntLE ( wxInputStream *  stream)

Read unsigned integer from specific input stream in little endian mode.

Parameters:
streaminput stream
Returns:
the unsigned integer read
wxString wxPdfFontParser::ReadUnicodeString ( int  length)

Read Unicode string from default input stream.

Parameters:
lengththe length of the string to read
Returns:
the string read
unsigned short wxPdfFontParser::ReadUShort ( )

Read unsigned short integer from default input stream.

Returns:
the unsigned short integer read
unsigned short wxPdfFontParser::ReadUShortLE ( wxInputStream *  stream)

Read unsigned short integer from specific input stream in little endian mode.

Parameters:
streaminput stream
Returns:
the unsigned short integer read
void wxPdfFontParser::SeekI ( int  offset)

Seek to offset in default input stream.

Parameters:
offsetoffset to be seeked
void wxPdfFontParser::SeekI ( int  offset,
wxInputStream *  stream 
)

Seek to offset in specific input stream.

Parameters:
offsetoffset to be seeked
streaminput stream
void wxPdfFontParser::SkipBytes ( int  count)

Skip bytes in default input stream.

Parameters:
countnumber of bytes to skip
void wxPdfFontParser::SkipBytes ( int  count,
wxInputStream *  stream 
)

Skip bytes in specific input stream.

Parameters:
countnumber of bytes to skip
streaminput stream
int wxPdfFontParser::TellI ( )

Tell current position in default input stream.

Returns:
the current position in the default input stream
int wxPdfFontParser::TellI ( wxInputStream *  stream)

Tell current position in specific input stream.

Parameters:
streaminput stream
Returns:
the current position in the input stream

Member Data Documentation

wxString wxPdfFontParser::m_fileName
protected

File name of the font file.

wxString wxPdfFontParser::m_fontName
protected

Name of font.

wxInputStream* wxPdfFontParser::m_inFont
protected

Font file input stream.

wxString wxPdfFontParser::m_style
protected

Font style.


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