#include "gr_Win32USPGraphics.h"#include "ut_debugmsg.h"#include "xap_App.h"#include "xap_Prefs.h"#include "xap_Frame.h"#include "xav_View.h"#include "ut_Win32OS.h"Classes | |
| class | GR_Win32USPItem |
| class | GR_Win32USPRenderInfo |
Defines | |
| #define | LOG_USP_EXCPT(msg) |
| #define | LOG_USP_EXCPT_X(msg, par) |
| #define | LOG_USP_EXCPT_S(msg, str) |
| #define | LOG_USP_EXCPT_SX(msg, str, par) |
| #define | GR_WIN32_USP_FONT_SCALING 20 |
| #define | loadUSPFunction(name) |
| #define | logScript(iId) |
| #define | GRWIN32USP_CHARBUFF_SIZE 100 |
| #define | GRWIN32USP_ITEMBUFF_SIZE 20 |
Functions | |
| UT_uint16 | wvLangToLIDConverter (const char *lang) |
| const char * | wvLIDToLangConverter (UT_uint16) |
| #define GR_WIN32_USP_FONT_SCALING 20 |
Referenced by GR_Win32USPGraphics::measureRenderedCharWidths().
| #define GRWIN32USP_CHARBUFF_SIZE 100 |
Referenced by GR_Win32USPGraphics::itemize(), and GR_Win32USPGraphics::shape().
| #define GRWIN32USP_ITEMBUFF_SIZE 20 |
Referenced by GR_Win32USPGraphics::itemize().
| #define loadUSPFunction | ( | name | ) |
f##name = (t##name)GetProcAddress(s_hUniscribe, #name); \ if(!f##name) \ { \ LOG_USP_EXCPT(#name) \ return false; \ }
Referenced by GR_Win32USPGraphics::_constructorCommonCode().
| #define LOG_USP_EXCPT | ( | msg | ) |
{ \
UT_String __s; \
UT_String_sprintf(__s, "%s (%d): %s",__FILE__, __LINE__, msg); \
UT_DEBUGMSG(("%s",__s.c_str())); \
if(XAP_App::getApp()->getPrefs()) \
{ \
XAP_App::getApp()->getPrefs()->log("USPGraphics", __s.c_str()); \
} \
}
Referenced by GR_Win32USPGraphics::_constructorCommonCode(), and GR_Win32USPGraphics::_setupFontOnDC().
| #define LOG_USP_EXCPT_S | ( | msg, | ||
| str | ||||
| ) |
{ \
UT_String __s; \
UT_String_sprintf(__s, "%s (%d): %s [%s]",__FILE__, __LINE__, msg, str); \
UT_DEBUGMSG(("%s",__s.c_str())); \
if(XAP_App::getApp()->getPrefs()) \
{ \
XAP_App::getApp()->getPrefs()->log("USPGraphics", __s.c_str()); \
} \
}
| #define LOG_USP_EXCPT_SX | ( | msg, | ||
| str, | ||||
| par | ||||
| ) |
{ \
UT_String __s; \
UT_String_sprintf(__s, "%s (%d): %s [%s, 0x%x]",__FILE__, __LINE__, msg, str, par); \
UT_DEBUGMSG(("%s",__s.c_str())); \
if(XAP_App::getApp()->getPrefs()) \
{ \
XAP_App::getApp()->getPrefs()->log("USPGraphics", __s.c_str()); \
} \
}
Referenced by GR_Win32USPGraphics::_setupFontOnDC().
| #define LOG_USP_EXCPT_X | ( | msg, | ||
| par | ||||
| ) |
{ \
UT_String __s; \
UT_String_sprintf(__s, "%s (%d): %s [0x%x]",__FILE__, __LINE__, msg, par); \
UT_DEBUGMSG(("%s",__s.c_str())); \
if(XAP_App::getApp()->getPrefs()) \
{ \
XAP_App::getApp()->getPrefs()->log("USPGraphics", __s.c_str()); \
} \
}
Referenced by GR_Win32USPGraphics::_constructorCommonCode(), GR_Win32USPGraphics::_drawChars(), GR_Win32USPGraphics::measureRenderedCharWidths(), GR_Win32USPGraphics::positionToXY(), GR_Win32USPGraphics::renderChars(), and GR_Win32USPGraphics::XYToPosition().
| #define logScript | ( | iId | ) |
{ \
{ \
UT_String s; \
char _buff[100]; \
GetLocaleInfoA(MAKELCID((WORD)s_ppScriptProperties[iId]->langid, SORT_DEFAULT), \
LOCALE_SENGLANGUAGE, \
_buff, \
100); \
\
s += _buff; \
\
GetLocaleInfoA(MAKELCID((WORD)s_ppScriptProperties[iId]->langid, SORT_DEFAULT), \
LOCALE_SENGCOUNTRY, \
_buff, \
100); \
\
s += " ("; \
s += _buff; \
s += ")"; \
\
UT_DEBUGMSG(("Uniscribe %s\n", s.c_str())); \
if(XAP_App::getApp()->getPrefs()) \
{ \
XAP_App::getApp()->getPrefs()->log("gr_Win32USPGraphics", s.c_str()); \
} \
} \
}
Referenced by GR_Win32USPGraphics::_constructorCommonCode().
| UT_uint16 wvLangToLIDConverter | ( | const char * | lang | ) |
Referenced by IE_Exp_RTF::_write_charfmt(), and GR_Win32USPGraphics::itemize().
| const char* wvLIDToLangConverter | ( | UT_uint16 | ) |
1.7.1