-static const wxChar* FONTMAPPER_ROOT_PATH = wxT("/wxWindows/FontMapper");
-static const wxChar* FONTMAPPER_CHARSET_PATH = wxT("Charsets");
-static const wxChar* FONTMAPPER_CHARSET_ALIAS_PATH = wxT("Aliases");
-
-// we only ask questions in GUI mode
-#if wxUSE_GUI
- static const wxChar* FONTMAPPER_FONT_FROM_ENCODING_PATH = wxT("Encodings");
- static const wxChar* FONTMAPPER_FONT_DONT_ASK = wxT("none");
-#endif // wxUSE_GUI
-#endif // wxUSE_CONFIG
-
-// encodings supported by GetEncodingDescription
-static wxFontEncoding gs_encodings[] =
-{
- wxFONTENCODING_ISO8859_1,
- wxFONTENCODING_ISO8859_2,
- wxFONTENCODING_ISO8859_3,
- wxFONTENCODING_ISO8859_4,
- wxFONTENCODING_ISO8859_5,
- wxFONTENCODING_ISO8859_6,
- wxFONTENCODING_ISO8859_7,
- wxFONTENCODING_ISO8859_8,
- wxFONTENCODING_ISO8859_9,
- wxFONTENCODING_ISO8859_10,
- wxFONTENCODING_ISO8859_11,
- wxFONTENCODING_ISO8859_12,
- wxFONTENCODING_ISO8859_13,
- wxFONTENCODING_ISO8859_14,
- wxFONTENCODING_ISO8859_15,
- wxFONTENCODING_KOI8,
- wxFONTENCODING_CP932,
- wxFONTENCODING_CP936,
- wxFONTENCODING_CP949,
- wxFONTENCODING_CP950,
- wxFONTENCODING_CP1250,
- wxFONTENCODING_CP1251,
- wxFONTENCODING_CP1252,
- wxFONTENCODING_CP1253,
- wxFONTENCODING_CP1254,
- wxFONTENCODING_CP1255,
- wxFONTENCODING_CP1256,
- wxFONTENCODING_CP1257,
- wxFONTENCODING_CP437,
- wxFONTENCODING_UTF7,
- wxFONTENCODING_UTF8,
-};
-
-// the descriptions for them
-static const wxChar* gs_encodingDescs[] =
-{
- wxTRANSLATE( "Western European (ISO-8859-1)" ),
- wxTRANSLATE( "Central European (ISO-8859-2)" ),
- wxTRANSLATE( "Esperanto (ISO-8859-3)" ),
- wxTRANSLATE( "Baltic (old) (ISO-8859-4)" ),
- wxTRANSLATE( "Cyrillic (ISO-8859-5)" ),
- wxTRANSLATE( "Arabic (ISO-8859-6)" ),
- wxTRANSLATE( "Greek (ISO-8859-7)" ),
- wxTRANSLATE( "Hebrew (ISO-8859-8)" ),
- wxTRANSLATE( "Turkish (ISO-8859-9)" ),
- wxTRANSLATE( "Nordic (ISO-8859-10)" ),
- wxTRANSLATE( "Thai (ISO-8859-11)" ),
- wxTRANSLATE( "Indian (ISO-8859-12)" ),
- wxTRANSLATE( "Baltic (ISO-8859-13)" ),
- wxTRANSLATE( "Celtic (ISO-8859-14)" ),
- wxTRANSLATE( "Western European with Euro (ISO-8859-15)" ),
- wxTRANSLATE( "KOI8-R" ),
- wxTRANSLATE( "Windows Japanese (CP 932)" ),
- wxTRANSLATE( "Windows Chinese Simplified (CP 936)" ),
- wxTRANSLATE( "Windows Korean (CP 949)" ),
- wxTRANSLATE( "Windows Chinese Traditional (CP 950)" ),
- wxTRANSLATE( "Windows Central European (CP 1250)" ),
- wxTRANSLATE( "Windows Cyrillic (CP 1251)" ),
- wxTRANSLATE( "Windows Western European (CP 1252)" ),
- wxTRANSLATE( "Windows Greek (CP 1253)" ),
- wxTRANSLATE( "Windows Turkish (CP 1254)" ),
- wxTRANSLATE( "Windows Hebrew (CP 1255)" ),
- wxTRANSLATE( "Windows Arabic (CP 1256)" ),
- wxTRANSLATE( "Windows Baltic (CP 1257)" ),
- wxTRANSLATE( "Windows/DOS OEM (CP 437)" ),
- wxTRANSLATE( "Unicode 7 bit (UTF-7)" ),
- wxTRANSLATE( "Unicode 8 bit (UTF-8)" ),
-};
-
-// and the internal names (these are not translated on purpose!)
-static const wxChar* gs_encodingNames[] =
-{
- wxT( "iso-8859-1" ),
- wxT( "iso-8859-2" ),
- wxT( "iso-8859-3" ),
- wxT( "iso-8859-4" ),
- wxT( "iso-8859-5" ),
- wxT( "iso-8859-6" ),
- wxT( "iso-8859-7" ),
- wxT( "iso-8859-8" ),
- wxT( "iso-8859-9" ),
- wxT( "iso-8859-10" ),
- wxT( "iso-8859-11" ),
- wxT( "iso-8859-12" ),
- wxT( "iso-8859-13" ),
- wxT( "iso-8859-14" ),
- wxT( "iso-8859-15" ),
- wxT( "koi8-r" ),
- wxT( "windows-932" ),
- wxT( "windows-936" ),
- wxT( "windows-949" ),
- wxT( "windows-950" ),
- wxT( "windows-1250" ),
- wxT( "windows-1251" ),
- wxT( "windows-1252" ),
- wxT( "windows-1253" ),
- wxT( "windows-1254" ),
- wxT( "windows-1255" ),
- wxT( "windows-1256" ),
- wxT( "windows-1257" ),
- wxT( "windows-437" ),
- wxT( "utf-7" ),
- wxT( "utf-8" ),
-};
-
-// ----------------------------------------------------------------------------
-// global data
-// ----------------------------------------------------------------------------
-
-wxFontMapper * wxTheFontMapper = NULL;
-
-class wxFontMapperModule: public wxModule
-{
-public:
- wxFontMapperModule() : wxModule() { }
- virtual bool OnInit() { wxTheFontMapper = new wxFontMapper; return TRUE; }
- virtual void OnExit()
- {
- delete wxTheFontMapper;
- wxTheFontMapper = NULL;
- }