#include <xap_Draw_Symbol.h>
XAP_Draw_Symbol::XAP_Draw_Symbol | ( | GR_Graphics * | gc | ) |
XAP_Draw_Symbol::~XAP_Draw_Symbol | ( | void | ) | [virtual] |
UT_UCSChar XAP_Draw_Symbol::calcSymbol | ( | UT_uint32 | x, | |
UT_uint32 | y | |||
) |
UT_UCSChar XAP_Draw_Symbol::calcSymbolFromCoords | ( | UT_uint32 | x, | |
UT_uint32 | y | |||
) |
References m_start_base, m_start_nb_char, m_vCharSet, UT_GenericVector< T >::size(), and UT_DEBUGMSG.
Referenced by calcSymbol(), and XAP_UnixDialog_Insert_Symbol::Key_Pressed().
void XAP_Draw_Symbol::calculatePosition | ( | UT_UCSChar | c, | |
UT_uint32 & | x, | |||
UT_uint32 & | y | |||
) |
void XAP_Draw_Symbol::draw | ( | const UT_Rect * | clip = NULL |
) | [virtual] |
Implements XAP_CustomWidget.
References GR_Painter::clearArea(), GR_Painter::drawChars(), GR_Painter::drawLine(), GR_CW_ABSENT, m_areagc, m_drawHeight, m_drawWidth, XAP_Preview::m_gc, m_start_base, m_start_nb_char, m_vCharSet, GR_Graphics::measureUnRemappedChar(), UT_GenericVector< T >::size(), GR_Graphics::tlu(), UT_ASSERT, and UT_UNUSED.
Referenced by XAP_Win32Dialog_Insert_Symbol::_setFontFromCombo(), XAP_Dialog_Insert_Symbol::_updateDrawSymbol(), XAP_UnixDialog_Insert_Symbol::New_Font(), setRow(), and XAP_UnixDialog_Insert_Symbol::SymbolMap_exposed().
void XAP_Draw_Symbol::drawarea | ( | UT_UCSChar | c, | |
UT_UCSChar | p | |||
) |
References calculatePosition(), GR_Painter::clearArea(), GR_Painter::drawChars(), GR_Painter::drawLine(), GR_Painter::fillRect(), GR_CW_ABSENT, m_areagc, m_drawareaHeight, m_drawareaWidth, m_drawHeight, m_drawWidth, XAP_Preview::m_gc, GR_Graphics::measureUnRemappedChar(), GR_Graphics::tlu(), and UT_ASSERT.
Referenced by XAP_Win32Dialog_Insert_Symbol::_setFontFromCombo(), XAP_Dialog_Insert_Symbol::_updateDrawSymbolarea(), XAP_UnixDialog_Insert_Symbol::Key_Pressed(), XAP_UnixDialog_Insert_Symbol::New_Font(), XAP_UnixDialog_Insert_Symbol::runModeless(), setCurrent(), XAP_UnixDialog_Insert_Symbol::Symbolarea_exposed(), XAP_UnixDialog_Insert_Symbol::SymbolMap_clicked(), and XAP_UnixDialog_Insert_Symbol::SymbolMap_exposed().
UT_UCSChar XAP_Draw_Symbol::getCurrent | ( | ) | [inline] |
References m_CurrentSymbol.
Referenced by XAP_Win32Dialog_Insert_Symbol::doInsertSymbol().
GR_Graphics* XAP_Draw_Symbol::getGraphics | ( | void | ) | [inline] |
Referenced by XAP_Win32Dialog_Insert_Symbol::_onInitDialog().
const char * XAP_Draw_Symbol::getSelectedFont | ( | ) |
References UT_String::c_str(), and m_stFont.
Referenced by XAP_UnixDialog_Insert_Symbol::event_WindowDelete(), XAP_Dialog_Insert_Symbol::getInsertedFont(), and XAP_UnixDialog_Insert_Symbol::runModeless().
UT_uint32 XAP_Draw_Symbol::getSymbolRows | ( | void | ) |
References m_start_base, m_vCharSet, rows, and UT_GenericVector< T >::size().
Referenced by XAP_UnixDialog_Insert_Symbol::_setScrolledWindow().
Reimplemented from XAP_Preview.
References calcSymbol(), and setCurrent().
void XAP_Draw_Symbol::setAreaGc | ( | GR_Graphics * | gc | ) |
References m_areagc.
Referenced by XAP_Dialog_Insert_Symbol::_createSymbolareaFromGC().
References m_areagc, m_drawareaHeight, m_drawareaWidth, setFontStringarea(), and GR_Graphics::tlu().
Referenced by XAP_Dialog_Insert_Symbol::_createSymbolareaFromGC().
void XAP_Draw_Symbol::setCurrent | ( | UT_UCSChar | c | ) |
References drawarea(), m_CurrentSymbol, and m_PreviousSymbol.
Referenced by onLeftButtonDown().
void XAP_Draw_Symbol::setFontfont | ( | GR_Font * | font | ) |
void XAP_Draw_Symbol::setFontString | ( | void | ) |
References m_drawHeight, m_drawWidth, XAP_Preview::m_gc, and setFontToGC().
Referenced by setSelectedFont(), and XAP_UnixDialog_Insert_Symbol::setSymbolMap_size().
void XAP_Draw_Symbol::setFontStringarea | ( | void | ) |
References m_areagc, m_drawareaHeight, m_drawareaWidth, and setFontToGC().
Referenced by setAreaSize(), and setSelectedFont().
void XAP_Draw_Symbol::setFontToGC | ( | GR_Graphics * | p_gc, | |
UT_uint32 | MaxWidthAllowable, | |||
UT_uint32 | MaxHeightAllowable | |||
) |
References UT_String::c_str(), GR_Graphics::findFont(), GR_Graphics::getCoverage(), GR_Font::getFamily(), GR_Graphics::getMaxCharacterDimension(), m_start_base, m_start_nb_char, m_stFont, m_vCharSet, MaxHeightChar, MaxWidthChar, GR_Graphics::setFont(), UT_GenericVector< T >::size(), and UT_ASSERT.
Referenced by setFontString(), and setFontStringarea().
void XAP_Draw_Symbol::setRow | ( | UT_uint32 | row | ) |
References draw(), m_start_base, m_start_nb_char, m_vCharSet, and UT_GenericVector< T >::size().
Referenced by XAP_UnixDialog_Insert_Symbol::New_Row().
void XAP_Draw_Symbol::setSelectedFont | ( | const char * | font | ) |
References m_CurrentSymbol, m_PreviousSymbol, m_start_base, m_start_nb_char, m_stFont, MaxHeightChar, MaxWidthChar, setFontString(), and setFontStringarea().
Referenced by XAP_Win32Dialog_Insert_Symbol::_setFontFromCombo(), XAP_UnixDialog_Insert_Symbol::New_Font(), and XAP_UnixDialog_Insert_Symbol::runModeless().
References m_drawHeight, m_drawWidth, XAP_Preview::m_gc, and GR_Graphics::tlu().
Referenced by XAP_Dialog_Insert_Symbol::_createSymbolFromGC(), and XAP_UnixDialog_Insert_Symbol::setSymbolMap_size().
GR_Graphics* XAP_Draw_Symbol::m_areagc [protected] |
Referenced by draw(), drawarea(), setAreaGc(), setAreaSize(), and setFontStringarea().
UT_UCSChar XAP_Draw_Symbol::m_CurrentSymbol [protected] |
Referenced by setCurrent(), and setSelectedFont().
UT_uint32 XAP_Draw_Symbol::m_drawareaHeight [protected] |
Referenced by drawarea(), setAreaSize(), and setFontStringarea().
UT_uint32 XAP_Draw_Symbol::m_drawareaWidth [protected] |
Referenced by drawarea(), setAreaSize(), and setFontStringarea().
UT_uint32 XAP_Draw_Symbol::m_drawHeight [protected] |
Referenced by calcSymbol(), draw(), drawarea(), setFontString(), and setWindowSize().
UT_uint32 XAP_Draw_Symbol::m_drawWidth [protected] |
Referenced by calcSymbol(), draw(), drawarea(), setFontString(), and setWindowSize().
GR_Font* XAP_Draw_Symbol::m_pFont [protected] |
UT_UCSChar XAP_Draw_Symbol::m_PreviousSymbol [protected] |
Referenced by setCurrent(), and setSelectedFont().
UT_sint32 XAP_Draw_Symbol::m_start_base [protected] |
Referenced by calcSymbolFromCoords(), calculatePosition(), draw(), getSymbolRows(), setFontToGC(), setRow(), and setSelectedFont().
UT_sint32 XAP_Draw_Symbol::m_start_nb_char [protected] |
Referenced by calcSymbolFromCoords(), calculatePosition(), draw(), setFontToGC(), setRow(), and setSelectedFont().
UT_String XAP_Draw_Symbol::m_stFont [private] |
Referenced by getSelectedFont(), setFontToGC(), and setSelectedFont().
UT_NumberVector XAP_Draw_Symbol::m_vCharSet [private] |
Referenced by calcSymbolFromCoords(), calculatePosition(), draw(), getSymbolRows(), setFontToGC(), and setRow().