the default font converter More...
Classes | |
| struct | UnicodeCache |
| small structure to speedup unicode More... | |
Public Member Functions | |
| State () | |
| the constructor More... | |
| int | getUnusedId () |
| returns an unused id More... | |
| int | getId (std::string const &name, std::string const &family="") |
| returns the identificator for a name, if not set creates one More... | |
| std::string | getName (int macId) |
| returns the name corresponding to an id or return std::string("") More... | |
| int | unicode (int macId, unsigned char c) |
| int | unicode (int macId, unsigned char c, MWAWInputStreamPtr &input) |
| int | unicode (int macId, unsigned char c, unsigned char const *(&str), int len) |
| converts a character in unicode, if needed can read the next input caracter in str More... | |
| void | getOdtInfo (int macId, std::string &nm, int &deltaSize) |
| final font name and a delta which can be used to change the size if no name is found, return "Times New Roman" More... | |
| void | setCorrespondance (int macId, std::string const &name, std::string family="") |
| fixes the name corresponding to an id More... | |
Protected Member Functions | |
| void | initMaps () |
| initializes the map More... | |
| bool | updateCache (int macId) |
| try to update the cache More... | |
Protected Attributes | |
| MWAWFontConverterInternal::Data::KnownConversion | m_knownConversion |
| the basic conversion map More... | |
| std::map< int, std::string > | m_idNameMap |
| map sysid -> font name More... | |
| std::map< std::string, int > | m_nameIdMap |
| map font name -> sysid More... | |
| long | m_nameIdCounter |
| Internal: a counter modified when a new correspondance name<->id is found. More... | |
| int | m_uniqueId |
| a int used to create new id for a name More... | |
| std::shared_ptr< MWAWFontSJISConverter > | m_sjisConverter |
| a SJIS convertor to convert Shit-JIS font More... | |
| struct MWAWFontConverterInternal::State::UnicodeCache | m_unicodeCache |
the default font converter
|
inline |
the constructor
|
inline |
returns the identificator for a name, if not set creates one
|
inline |
returns the name corresponding to an id or return std::string("")
| void MWAWFontConverterInternal::State::getOdtInfo | ( | int | macId, |
| std::string & | nm, | ||
| int & | deltaSize | ||
| ) |
final font name and a delta which can be used to change the size if no name is found, return "Times New Roman"
|
inline |
returns an unused id
|
protected |
initializes the map
|
inline |
fixes the name corresponding to an id
| int MWAWFontConverterInternal::State::unicode | ( | int | macId, |
| unsigned char | c | ||
| ) |
| int MWAWFontConverterInternal::State::unicode | ( | int | macId, |
| unsigned char | c, | ||
| MWAWInputStreamPtr & | input | ||
| ) |
| int MWAWFontConverterInternal::State::unicode | ( | int | macId, |
| unsigned char | c, | ||
| unsigned char const *& | str, | ||
| int | len | ||
| ) |
converts a character in unicode, if needed can read the next input caracter in str
|
protected |
try to update the cache
|
protected |
map sysid -> font name
|
protected |
the basic conversion map
|
protected |
Internal: a counter modified when a new correspondance name<->id is found.
|
protected |
map font name -> sysid
|
protected |
a SJIS convertor to convert Shit-JIS font
|
protected |
|
protected |
a int used to create new id for a name