#include <xap_FontPreview.h>
Public Types | |
typedef std::map< std::string, std::string > | PropMap |
Public Member Functions | |
XAP_FontPreview () | |
virtual | ~XAP_FontPreview (void) |
void | addOrReplaceVecProp (const std::string &pszProp, const std::string &pszVal) |
void | setFontFamily (const gchar *pFontFamily) |
void | setText (const gchar *pFontFamily) |
void | draw (void) |
Protected Member Functions | |
void | _createFontPreviewFromGC (GR_Graphics *gc, UT_uint32 width, UT_uint32 height) |
Protected Attributes | |
UT_sint32 | m_width |
UT_sint32 | m_height |
Private Attributes | |
XAP_Preview_FontPreview * | m_pFontPreview |
UT_UCSChar * | m_drawString |
PropMap | m_mapProps |
typedef std::map<std::string,std::string> XAP_FontPreview::PropMap |
XAP_FontPreview::XAP_FontPreview | ( | ) |
References m_drawString, PREVIEW_ENTRY_DEFAULT_STRING, and UT_UCS4_cloneString_char().
XAP_FontPreview::~XAP_FontPreview | ( | void | ) | [virtual] |
References DELETEP, FREEP, m_drawString, and m_pFontPreview.
void XAP_FontPreview::_createFontPreviewFromGC | ( | GR_Graphics * | gc, | |
UT_uint32 | width, | |||
UT_uint32 | height | |||
) | [protected] |
References addOrReplaceVecProp(), m_drawString, m_height, m_mapProps, m_pFontPreview, m_width, XAP_Preview_FontPreview::setDrawString(), XAP_Preview_FontPreview::setVecProperties(), XAP_Preview::setWindowSize(), GR_Graphics::tlu(), UT_ASSERT, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by XAP_UnixFontPreview::XAP_UnixFontPreview().
void XAP_FontPreview::addOrReplaceVecProp | ( | const std::string & | pszProp, | |
const std::string & | pszVal | |||
) |
References m_mapProps.
Referenced by _createFontPreviewFromGC(), and setFontFamily().
void XAP_FontPreview::draw | ( | void | ) |
References XAP_Preview_FontPreview::draw(), and m_pFontPreview.
Referenced by _wd::s_font_prelight().
void XAP_FontPreview::setFontFamily | ( | const gchar * | pFontFamily | ) |
References addOrReplaceVecProp().
Referenced by _wd::s_font_prelight().
void XAP_FontPreview::setText | ( | const gchar * | pFontFamily | ) |
References FREEP, m_drawString, m_pFontPreview, XAP_Preview_FontPreview::setDrawString(), UT_return_if_fail, and UT_UCS4_cloneString_char().
Referenced by _wd::s_font_prelight().
UT_UCSChar* XAP_FontPreview::m_drawString [private] |
Referenced by _createFontPreviewFromGC(), setText(), XAP_FontPreview(), and ~XAP_FontPreview().
UT_sint32 XAP_FontPreview::m_height [protected] |
Referenced by _createFontPreviewFromGC(), and XAP_UnixFontPreview::XAP_UnixFontPreview().
PropMap XAP_FontPreview::m_mapProps [private] |
Referenced by _createFontPreviewFromGC(), and addOrReplaceVecProp().
Referenced by _createFontPreviewFromGC(), draw(), setText(), and ~XAP_FontPreview().
UT_sint32 XAP_FontPreview::m_width [protected] |
Referenced by _createFontPreviewFromGC(), and XAP_UnixFontPreview::XAP_UnixFontPreview().