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("")
Referenced by getOdtInfo(), and updateCache().
| 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
Referenced by getId().
| 
 | protected | 
initializes the map
Referenced by State().
| 
 | inline | 
fixes the name corresponding to an id
Referenced by getId().
| 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
Referenced by unicode().
| 
 | protected | 
map sysid -> font name
Referenced by getName(), getUnusedId(), initMaps(), and setCorrespondance().
| 
 | protected | 
the basic conversion map
Referenced by getOdtInfo(), setCorrespondance(), and updateCache().
| 
 | protected | 
Internal: a counter modified when a new correspondance name<->id is found.
Referenced by setCorrespondance(), and updateCache().
| 
 | protected | 
map font name -> sysid
Referenced by getId(), initMaps(), and setCorrespondance().
| 
 | protected | 
a SJIS convertor to convert Shit-JIS font
Referenced by unicode().
| 
 | protected | 
Referenced by unicode(), and updateCache().
| 
 | protected | 
a int used to create new id for a name
Referenced by getUnusedId().