MWAWFontConverter.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 /* This header contains code specific to a mac file :
35  * - a namespace used to convert Mac font characters in unicode
36  */
37 
38 #ifndef MWAW_FONT_CONVERTER
39 # define MWAW_FONT_CONVERTER
40 
41 # include <string>
42 # include <map>
43 
44 # include "libmwaw_internal.hxx"
45 
47 {
48 class State;
49 }
50 
63 {
64 public:
67 
72 
74  int getId(std::string const &name, std::string family="") const;
76  std::string getName(int macId) const;
78  void setCorrespondance(int macId, std::string const &name, std::string family="");
79 
80  //
81  // Odt data
82  //
83 
86  void getOdtInfo(int macId, std::string &name, int &deltaSize) const;
87 
90  int unicode(int macId, unsigned char c) const;
91 
94  int unicode(int macId, unsigned char c, MWAWInputStreamPtr &input) const;
95 
98  int unicode(int macId, unsigned char c, unsigned char const *(&str), int len) const;
99 protected:
101  static std::string getValidName(std::string const &name);
102 
104  mutable shared_ptr<MWAWFontConverterInternal::State> m_manager;
105 };
106 
107 #endif
108 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWFontConverterInternal::Data::KnownConversion::m_unknown200Conv
ConversionData m_unknown200Conv
Internal and Low level: the converter for font 200.
Definition: MWAWFontConverter.cxx:768
MWAWFontConverterInternal::Data::s_windowsCP1254Unicode
static int const s_windowsCP1254Unicode[]
Internal and Low Level: the Windows CP1254 encoding.
Definition: MWAWFontConverter.cxx:542
MWAWFontConverterInternal::Data::s_turkishUnicode
static int const s_turkishUnicode[]
Internal and Low level: vector (char, unicode) for Turkish font ( diff to mac roman)
Definition: MWAWFontConverter.cxx:189
MWAWFontConverterInternal::Data::s_centralEuroUnicode
static int const s_centralEuroUnicode[]
Internal and Low level: vector (char, unicode) for Central european font.
Definition: MWAWFontConverter.cxx:123
MWAWFontConverterInternal::Data::KnownConversion
Definition: MWAWFontConverter.cxx:626
MWAWFontConverter::E_DEFAULT
@ E_DEFAULT
Definition: MWAWFontConverter.hxx:66
MWAWFontConverter::E_SJIS
@ E_SJIS
Definition: MWAWFontConverter.hxx:66
MWAWFontConverterInternal::State::UnicodeCache
small structure to speedup unicode
Definition: MWAWFontConverter.cxx:998
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWFontConverterInternal::Data::KnownConversion::m_unknown107Conv
ConversionData m_unknown107Conv
Internal and Low level: the converter for font 107.
Definition: MWAWFontConverter.cxx:764
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1250Conv
ConversionData m_windowsCP1250Conv
Internal and Low level: the converter for Windows CP1250.
Definition: MWAWFontConverter.cxx:771
MWAWFontConverterInternal::Data::ConversionData
Internal and low level: a class to store a conversion map for character, ...
Definition: MWAWFontConverter.cxx:49
MWAWFontConverterInternal::State::m_sjisConverter
shared_ptr< MWAWFontSJISConverter > m_sjisConverter
a SJIS convertor to convert Shit-JIS font
Definition: MWAWFontConverter.cxx:995
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1251Map
std::map< unsigned char, unsigned long > m_windowsCP1251Map
Internal and Low level: map char -> unicode for Windows CP1251.
Definition: MWAWFontConverter.cxx:718
MWAWFontConverterInternal::Data::s_unknown200IncompleteUnicode
static int const s_unknown200IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 200.
Definition: MWAWFontConverter.cxx:440
MWAWFontConverterInternal::Data::KnownConversion::m_dingbatsMap
std::map< unsigned char, unsigned long > m_dingbatsMap
Internal and Low level: map char -> unicode for dingbats font.
Definition: MWAWFontConverter.cxx:696
MWAWFontConverterInternal::Data::KnownConversion::m_wingdingsMap
std::map< unsigned char, unsigned long > m_wingdingsMap
Internal and Low level: map char -> unicode for wingdings font.
Definition: MWAWFontConverter.cxx:706
MWAWFontConverterInternal::Data::s_wingdingsUnicode
static int const s_wingdingsUnicode[]
Internal and Low level: vector (char, unicode) for wingdings font.
Definition: MWAWFontConverter.cxx:340
MWAWFontConverterInternal::Data::s_unknown128IncompleteUnicode
static int const s_unknown128IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 128.
Definition: MWAWFontConverter.cxx:434
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1258Conv
ConversionData m_windowsCP1258Conv
Internal and Low level: the converter for Windows CP1258.
Definition: MWAWFontConverter.cxx:787
MWAWFontConverterInternal::Data::s_windowsCP1257Unicode
static int const s_windowsCP1257Unicode[]
Internal and Low Level: the Windows CP1257 encoding.
Definition: MWAWFontConverter.cxx:592
MWAWFontConverterInternal::Data::s_windowsCP1253Unicode
static int const s_windowsCP1253Unicode[]
Internal and Low Level: the Windows CP1253 encoding.
Definition: MWAWFontConverter.cxx:521
MWAWFontConverterInternal::Data::KnownConversion::m_dingbatsConv
ConversionData m_dingbatsConv
Internal and Low level: the converter for dingbats font.
Definition: MWAWFontConverter.cxx:750
MWAWFontConverterInternal::State::getOdtInfo
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,...
Definition: MWAWFontConverter.cxx:1186
MWAWFontConverterInternal::State::UnicodeCache::UnicodeCache
UnicodeCache()
constructor
Definition: MWAWFontConverter.cxx:1000
MWAWFontConverter::MWAWFontConverter
MWAWFontConverter()
the constructor
Definition: MWAWFontConverter.cxx:1213
MWAWFontConverter.hxx
MWAWFontConverterInternal::Data::KnownConversion::m_symbolMap
std::map< unsigned char, unsigned long > m_symbolMap
Internal and Low level: map char -> unicode for symbol font.
Definition: MWAWFontConverter.cxx:694
MWAWFontConverterInternal::Data::KnownConversion::m_unknown128Conv
ConversionData m_unknown128Conv
Internal and Low level: the converter for font 128.
Definition: MWAWFontConverter.cxx:766
MWAWFontConverterInternal::Data::KnownConversion::m_mathConv
ConversionData m_mathConv
Internal and Low level: the converter for math font.
Definition: MWAWFontConverter.cxx:754
MWAWFontConverterInternal::Data::KnownConversion::m_scientificMap
std::map< unsigned char, unsigned long > m_scientificMap
Internal and Low level: map char -> unicode for scientific font.
Definition: MWAWFontConverter.cxx:704
MWAWFontConverterInternal::Data::KnownConversion::m_scientificConv
ConversionData m_scientificConv
Internal and Low level: the converter for scientific font.
Definition: MWAWFontConverter.cxx:758
MWAWFontConverterInternal::State::m_uniqueId
int m_uniqueId
a int used to create new id for a name
Definition: MWAWFontConverter.cxx:992
MWAWFontConverterInternal::Data::s_windowsCP1251Unicode
static int const s_windowsCP1251Unicode[]
Internal and Low Level: the Windows CP1251 encoding.
Definition: MWAWFontConverter.cxx:493
MWAWFontConverterInternal::State::UnicodeCache::m_nameIdCounter
long m_nameIdCounter
actual counter
Definition: MWAWFontConverter.cxx:1002
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1254Conv
ConversionData m_windowsCP1254Conv
Internal and Low level: the converter for Windows CP1254.
Definition: MWAWFontConverter.cxx:779
MWAWFontConverterInternal::State::UnicodeCache::m_macId
int m_macId
actual macId
Definition: MWAWFontConverter.cxx:1004
MWAWFontSJISConverter
a namespace used to convert Mac SJIS font characters in unicode
Definition: MWAWFontSJISConverter.hxx:48
MWAWFontConverterInternal::State::m_nameIdMap
std::map< std::string, int > m_nameIdMap
map font name -> sysid
Definition: MWAWFontConverter.cxx:986
MWAWFontConverter::Encoding
Encoding
the character encoding type
Definition: MWAWFontConverter.hxx:66
MWAWFontConverterInternal::State::setCorrespondance
void setCorrespondance(int macId, std::string const &name, std::string family="")
fixes the name corresponding to an id
Definition: MWAWFontConverter.cxx:966
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1257Conv
ConversionData m_windowsCP1257Conv
Internal and Low level: the converter for Windows CP1257.
Definition: MWAWFontConverter.cxx:785
MWAWFontConverterInternal::Data::KnownConversion::m_cyrillicConv
ConversionData m_cyrillicConv
Internal and Low level: the default converter: cyrillic.
Definition: MWAWFontConverter.cxx:739
MWAWFontConverterInternal::Data::KnownConversion::m_familyMap
std::map< std::string, std::string > m_familyMap
Internal and Low level: map font name -> family font name.
Definition: MWAWFontConverter.cxx:682
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1255Conv
ConversionData m_windowsCP1255Conv
Internal and Low level: the converter for Windows CP1255.
Definition: MWAWFontConverter.cxx:781
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1252Map
std::map< unsigned char, unsigned long > m_windowsCP1252Map
Internal and Low level: map char -> unicode for Windows CP1252.
Definition: MWAWFontConverter.cxx:720
MWAWFontConverterInternal::Data::KnownConversion::m_defaultConv
ConversionData m_defaultConv
Internal and Low level: the default converter: roman.
Definition: MWAWFontConverter.cxx:735
MWAWFontConverterInternal::Data::s_windowsCP1252Unicode
static int const s_windowsCP1252Unicode[]
Internal and Low Level: the Windows CP1252 encoding.
Definition: MWAWFontConverter.cxx:513
MWAWFontConverterInternal::Data::KnownConversion::m_turkishConv
ConversionData m_turkishConv
Internal and Low level: the default converter: turkish.
Definition: MWAWFontConverter.cxx:741
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1252Conv
ConversionData m_windowsCP1252Conv
Internal and Low level: the converter for Windows CP1252.
Definition: MWAWFontConverter.cxx:775
MWAWFontConverterInternal::Data::KnownConversion::m_wingdingsConv
ConversionData m_wingdingsConv
Internal and Low level: the converter for wingdings font.
Definition: MWAWFontConverter.cxx:760
MWAWFontConverterInternal::State::getUnusedId
int getUnusedId()
returns an unused id
Definition: MWAWFontConverter.cxx:924
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1256Map
std::map< unsigned char, unsigned long > m_windowsCP1256Map
Internal and Low level: map char -> unicode for Windows CP1256.
Definition: MWAWFontConverter.cxx:728
MWAWFontConverterInternal::Data::s_windowsCP1250Unicode
static int const s_windowsCP1250Unicode[]
Internal and Low Level: the Windows CP1250 encoding.
Definition: MWAWFontConverter.cxx:473
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1255Map
std::map< unsigned char, unsigned long > m_windowsCP1255Map
Internal and Low level: map char -> unicode for Windows CP1255.
Definition: MWAWFontConverter.cxx:726
MWAWFontConverterInternal::Data::ConversionData::m_encoding
MWAWFontConverter::Encoding m_encoding
the character encoding
Definition: MWAWFontConverter.cxx:59
MWAWFontConverterInternal::Data::KnownConversion::m_zapfChanceryConv
ConversionData m_zapfChanceryConv
Internal and Low level: the converter for zapfChancery font.
Definition: MWAWFontConverter.cxx:746
MWAWFontConverterInternal::Data::s_mathIncompleteUnicode
static int const s_mathIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for math font.
Definition: MWAWFontConverter.cxx:405
MWAWFontConverter::unicode
int unicode(int macId, unsigned char c) const
converts a character in unicode
Definition: MWAWFontConverter.cxx:1256
libmwaw_internal.hxx
MWAWFontConverterInternal::Data::KnownConversion::KnownConversion
KnownConversion()
constructor
Definition: MWAWFontConverter.cxx:629
MWAWFontConverterInternal::Data::KnownConversion::m_SJISMap
std::map< unsigned char, unsigned long > m_SJISMap
Internal and Low level: simplified map char -> unicode for SJIS font.
Definition: MWAWFontConverter.cxx:708
MWAWFontConverterInternal::Data::KnownConversion::m_symbolConv
ConversionData m_symbolConv
Internal and Low level: the converter for symbol font.
Definition: MWAWFontConverter.cxx:748
MWAWFontConverterInternal::State::m_nameIdCounter
long m_nameIdCounter
Internal: a counter modified when a new correspondance name<->id is found.
Definition: MWAWFontConverter.cxx:989
MWAWFontConverterInternal::Data::KnownConversion::initAMap
static void initAMap(int const *arr, size_t numElt, std::map< unsigned char, unsigned long > &map)
Internal and Low level: initializes a map with a vector of numElt elements (char, unicode)
Definition: MWAWFontConverter.cxx:669
MWAWFontConverterInternal::Data::KnownConversion::m_timeConv
ConversionData m_timeConv
Internal and Low level: the converter for times font.
Definition: MWAWFontConverter.cxx:744
MWAWFontConverterInternal::State::State
State()
the constructor
Definition: MWAWFontConverter.cxx:917
MWAWFontConverterInternal::Data::KnownConversion::m_cursiveConv
ConversionData m_cursiveConv
Internal and Low level: the converter for cursive font.
Definition: MWAWFontConverter.cxx:752
MWAWFontConverterInternal::State
the default font converter
Definition: MWAWFontConverter.cxx:914
MWAWFontConverterInternal::Data::KnownConversion::m_unknown128Map
std::map< unsigned char, unsigned long > m_unknown128Map
Internal and Low level: map char -> unicode for font 128.
Definition: MWAWFontConverter.cxx:712
MWAWFontConverterInternal::Data::s_windowsCP1255Unicode
static int const s_windowsCP1255Unicode[]
Internal and Low Level: the Windows CP1255 encoding.
Definition: MWAWFontConverter.cxx:554
MWAWFontConverterInternal::Data::KnownConversion::m_cyrillicMap
std::map< unsigned char, unsigned long > m_cyrillicMap
Internal and Low level: map char -> unicode for cyrillic font.
Definition: MWAWFontConverter.cxx:689
MWAWFontConverterInternal::State::m_unicodeCache
struct MWAWFontConverterInternal::State::UnicodeCache m_unicodeCache
MWAWFontConverterInternal::Data::KnownConversion::m_SJISConv
ConversionData m_SJISConv
Internal and Low level: the converter for SJIS font.
Definition: MWAWFontConverter.cxx:762
MWAWFontConverterInternal::Data::KnownConversion::m_unknown200Map
std::map< unsigned char, unsigned long > m_unknown200Map
Internal and Low level: map char -> unicode for font 200.
Definition: MWAWFontConverter.cxx:714
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1254Map
std::map< unsigned char, unsigned long > m_windowsCP1254Map
Internal and Low level: map char -> unicode for Windows CP1254.
Definition: MWAWFontConverter.cxx:724
MWAWFontConverter::getId
int getId(std::string const &name, std::string family="") const
returns an unique id > 255, if unknown
Definition: MWAWFontConverter.cxx:1241
MWAWFontConverterInternal::Data::KnownConversion::setFamily
void setFamily(std::string const &fName, std::string const &family)
set a family correspondance
Definition: MWAWFontConverter.cxx:654
MWAWFontConverterInternal::State::initMaps
void initMaps()
initializes the map
Definition: MWAWFontConverter.cxx:1012
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1253Conv
ConversionData m_windowsCP1253Conv
Internal and Low level: the converter for Windows CP1253.
Definition: MWAWFontConverter.cxx:777
MWAWFontConverterInternal::Data::s_windowsCP1258Unicode
static int const s_windowsCP1258Unicode[]
Internal and Low Level: the Windows CP1258 encoding.
Definition: MWAWFontConverter.cxx:610
MWAWFontConverterInternal::Data::KnownConversion::m_centralEuroConv
ConversionData m_centralEuroConv
Internal and Low level: the default converter: central european.
Definition: MWAWFontConverter.cxx:737
MWAWFontConverter::setCorrespondance
void setCorrespondance(int macId, std::string const &name, std::string family="")
fixes the name corresponding to an id
Definition: MWAWFontConverter.cxx:1236
MWAWFontConverterInternal::Data::ConversionData::ConversionData
ConversionData(std::map< unsigned char, unsigned long > &map, char const *odtName="", int delta=0)
constructor
Definition: MWAWFontConverter.cxx:51
MWAWFontConverterInternal::Data::s_unknown107IncompleteUnicode
static int const s_unknown107IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 107.
Definition: MWAWFontConverter.cxx:428
MWAWFontConverterInternal::Data::s_windowsCP1256Unicode
static int const s_windowsCP1256Unicode[]
Internal and Low Level: the Windows CP1256 encoding.
Definition: MWAWFontConverter.cxx:573
MWAWFontConverter::~MWAWFontConverter
~MWAWFontConverter()
the destructor
Definition: MWAWFontConverter.cxx:1214
MWAWFontConverterInternal::Data::KnownConversion::m_mathMap
std::map< unsigned char, unsigned long > m_mathMap
Internal and Low level: map char -> unicode for math font.
Definition: MWAWFontConverter.cxx:700
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWFontConverterInternal::State::m_idNameMap
std::map< int, std::string > m_idNameMap
map sysid -> font name
Definition: MWAWFontConverter.cxx:984
MWAWFontConverterInternal::State::updateCache
bool updateCache(int macId)
try to update the cache
Definition: MWAWFontConverter.cxx:1130
MWAWFontConverterInternal::Data::s_SJISSimplifiedUnicode
static int const s_SJISSimplifiedUnicode[]
Internal and Low level: vector (char, unicode) for SJIS font (see MWAWFontSJISConverter )
Definition: MWAWFontConverter.cxx:445
MWAWFontConverterInternal
Internal namespace used to store the data used by MWAWFontConverterInternal.
Definition: MWAWFontConverter.cxx:44
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1251Conv
ConversionData m_windowsCP1251Conv
Internal and Low level: the converter for Windows CP1251.
Definition: MWAWFontConverter.cxx:773
MWAWFontConverterInternal::Data::KnownConversion::getConversionMaps
Data::ConversionData const & getConversionMaps(std::string fName)
returns the conversion map which corresponds to a name, or the default map
Definition: MWAWFontConverter.cxx:876
MWAWFontConverterInternal::State::getId
int getId(std::string const &name, std::string family="")
returns the identificator for a name, if not set creates one
Definition: MWAWFontConverter.cxx:933
MWAWFontConverterInternal::Data::KnownConversion::m_centralEuroMap
std::map< unsigned char, unsigned long > m_centralEuroMap
Internal and Low level: map char -> unicode for central european font.
Definition: MWAWFontConverter.cxx:687
MWAWFontConverterInternal::Data::s_scientificIncompleteUnicode
static int const s_scientificIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for scientific font.
Definition: MWAWFontConverter.cxx:416
MWAWFontConverterInternal::Data::ConversionData::m_deltaSize
int m_deltaSize
the size delta: odtSize = fSize + deltaSize
Definition: MWAWFontConverter.cxx:65
MWAWFontConverterInternal::Data::KnownConversion::m_monotypeSortsMap
std::map< unsigned char, unsigned long > m_monotypeSortsMap
Internal and Low level: map char -> unicode for monotypeSorts font.
Definition: MWAWFontConverter.cxx:702
MWAWFontConverterInternal::Data::s_cursiveIncompleteUnicode
static int const s_cursiveIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for cursive font.
Definition: MWAWFontConverter.cxx:397
MWAWFontConverterInternal::Data::KnownConversion::m_cursiveMap
std::map< unsigned char, unsigned long > m_cursiveMap
Internal and Low level: map char -> unicode for cursive font.
Definition: MWAWFontConverter.cxx:698
MWAWFontConverterInternal::Data::ConversionData::ConversionData
ConversionData(std::map< unsigned char, unsigned long > &map, MWAWFontConverter::Encoding encoding, char const *odtName="", int delta=0)
constructor for different encoding
Definition: MWAWFontConverter.cxx:55
MWAWFontConverterInternal::State::unicode
int unicode(int macId, unsigned char c)
Definition: MWAWFontConverter.cxx:1145
MWAWFontConverter::getValidName
static std::string getValidName(std::string const &name)
check if a string is valid, if not, convert it to a valid string
Definition: MWAWFontConverter.cxx:1217
MWAWFontConverter
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
MWAWFontConverterInternal::Data::s_cyrillicUnicode
static int const s_cyrillicUnicode[]
Internal and Low level: vector (char, unicode) for Cyrillic font.
Definition: MWAWFontConverter.cxx:156
MWAWFontConverterInternal::Data::ConversionData::m_name
std::string m_name
the odt font name (if empty used the name)
Definition: MWAWFontConverter.cxx:63
MWAWFontConverterInternal::Data::KnownConversion::m_unknown107Map
std::map< unsigned char, unsigned long > m_unknown107Map
Internal and Low level: map char -> unicode for font 107.
Definition: MWAWFontConverter.cxx:710
MWAWFontConverterInternal::Data::s_symbolUnicode
static int const s_symbolUnicode[]
Internal and Low level: vector (char, unicode) for symbol font.
Definition: MWAWFontConverter.cxx:195
MWAWFontConverter::getOdtInfo
void getOdtInfo(int macId, std::string &name, int &deltaSize) const
final font name and a delta which can be used to change the size if no name is found,...
Definition: MWAWFontConverter.cxx:1251
MWAWFontConverterInternal::State::getName
std::string getName(int macId)
returns the name corresponding to an id or return std::string("")
Definition: MWAWFontConverter.cxx:944
MWAWFontConverterInternal::Data::ConversionData::m_conversion
std::map< unsigned char, unsigned long > & m_conversion
the conversion map character -> unicode
Definition: MWAWFontConverter.cxx:61
MWAWFontSJISConverter.hxx
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1257Map
std::map< unsigned char, unsigned long > m_windowsCP1257Map
Internal and Low level: map char -> unicode for Windows CP1257.
Definition: MWAWFontConverter.cxx:730
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1256Conv
ConversionData m_windowsCP1256Conv
Internal and Low level: the converter for Windows CP1256.
Definition: MWAWFontConverter.cxx:783
MWAWFontConverterInternal::State::UnicodeCache::m_conv
MWAWFontConverterInternal::Data::ConversionData const * m_conv
actual convertor
Definition: MWAWFontConverter.cxx:1006
MWAWFontConverterInternal::Data::KnownConversion::m_monotypeSortsConv
ConversionData m_monotypeSortsConv
Internal and Low level: the converter for monotypeSorts font.
Definition: MWAWFontConverter.cxx:756
MWAWFontConverterInternal::Data::s_monotypeSortsUnicode
static int const s_monotypeSortsUnicode[]
Internal and Low level: vector (char, unicode) for Monotype Sorts font.
Definition: MWAWFontConverter.cxx:283
MWAWFontConverterInternal::Data::KnownConversion::m_romanMap
std::map< unsigned char, unsigned long > m_romanMap
Internal and Low level: map char -> unicode for roman font.
Definition: MWAWFontConverter.cxx:685
MWAWFontConverter::getName
std::string getName(int macId) const
returns empty string if unknown
Definition: MWAWFontConverter.cxx:1246
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1250Map
std::map< unsigned char, unsigned long > m_windowsCP1250Map
Internal and Low level: map char -> unicode for Windows CP1250.
Definition: MWAWFontConverter.cxx:716
MWAWFontConverterInternal::Data::KnownConversion::m_turkishMap
std::map< unsigned char, unsigned long > m_turkishMap
Internal and Low level: map char -> unicode for turkish font.
Definition: MWAWFontConverter.cxx:691
MWAWFontConverterInternal::Data::KnownConversion::initMaps
void initMaps()
Internal and Low level: initializes all the conversion maps.
Definition: MWAWFontConverter.cxx:792
MWAWFontConverterInternal::Data::KnownConversion::m_convertMap
std::map< std::string, ConversionData const * > m_convertMap
the conversiont map fName -> ConversionData
Definition: MWAWFontConverter.cxx:679
MWAWFontConverterInternal::Data::KnownConversion::getDefault
ConversionData const & getDefault() const
return the default converter
Definition: MWAWFontConverter.cxx:660
MWAWFontConverterInternal::Data::s_romanUnicode
static int const s_romanUnicode[]
Internal and Low level: vector ( char, unicode) for roman font.
Definition: MWAWFontConverter.cxx:70
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1253Map
std::map< unsigned char, unsigned long > m_windowsCP1253Map
Internal and Low level: map char -> unicode for Windows CP1253.
Definition: MWAWFontConverter.cxx:722
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1258Map
std::map< unsigned char, unsigned long > m_windowsCP1258Map
Internal and Low level: map char -> unicode for Windows CP1258.
Definition: MWAWFontConverter.cxx:732
MWAWFontConverter::m_manager
shared_ptr< MWAWFontConverterInternal::State > m_manager
the main manager
Definition: MWAWFontConverter.hxx:104
MWAWFontConverterInternal::Data::s_dingbatsUnicode
static int const s_dingbatsUnicode[]
Internal and Low level: vector (char, unicode) for dingbats font.
Definition: MWAWFontConverter.cxx:238
MWAWFontConverterInternal::State::m_knownConversion
MWAWFontConverterInternal::Data::KnownConversion m_knownConversion
the basic conversion map
Definition: MWAWFontConverter.cxx:982

Generated on Wed Jun 17 2020 06:30:11 for libmwaw by doxygen 1.8.18