#include <AbiGOComponent.h>
Public Member Functions | |
| GOComponentView (GR_GOComponentManager *pGOMan) | |
| virtual | ~GOComponentView (void) |
| void | render (UT_Rect &rec) |
| void | loadBuffer (const UT_ConstByteBufPtr &sGOComponentData, const char *_mime_type) |
| void | setDefaultFontSize (UT_sint32 iSize) |
| void | modify (void) |
| void | update (void) |
| GOComponent * | getComponent (void) |
| bool | IsEdittable () |
| bool | IsResizable () |
| UT_ConstByteBufPtr | getSnapShot (std::string &mime_type) |
| void | SetRun (fp_Run *pRun) |
| bool | setFont (const GR_Font *pFont) |
Private Attributes | |
| GR_GOComponentManager * | m_pGOMan |
| GOComponent * | component |
| std::string | mime_type |
| GR_Image * | m_Image |
| UT_sint32 | width |
| UT_sint32 | ascent |
| UT_sint32 | descent |
| UT_sint32 | pix_width |
| UT_sint32 | pix_height |
| GdkPixbuf * | pixbuf |
| GdkWindowAttr | attributes |
| fp_Run * | m_pRun |
Friends | |
| class | GR_GOComponentManager |
| GOComponentView::GOComponentView | ( | GR_GOComponentManager * | pGOMan | ) |
| GOComponent* GOComponentView::getComponent | ( | void | ) | [inline] |
References component.
Referenced by GR_GOComponentManager::getAscent(), GR_GOComponentManager::getDescent(), GR_GOComponentManager::getWidth(), and GR_GOComponentManager::render().
| UT_ConstByteBufPtr GOComponentView::getSnapShot | ( | std::string & | mime_type | ) |
| bool GOComponentView::IsEdittable | ( | ) | [inline] |
References component.
Referenced by GR_GOComponentManager::isEdittable().
| bool GOComponentView::IsResizable | ( | ) | [inline] |
References component.
Referenced by GR_GOComponentManager::isResizeable().
| void GOComponentView::loadBuffer | ( | const UT_ConstByteBufPtr & | sGOComponentData, | |
| const char * | _mime_type | |||
| ) |
References ascent, changed_cb(), component, descent, gchar, PP_AttrProp::getNthProperty(), fp_Run::getSpanAP(), m_pRun, szName, UT_LAYOUT_RESOLUTION, UT_return_if_fail, and width.
| void GOComponentView::modify | ( | void | ) |
References component, and UT_return_if_fail.
Referenced by GR_GOComponentManager::modify().
| void GOComponentView::render | ( | UT_Rect & | rec | ) |
References ascent, GR_Graphics::beginPaint(), component, descent, GR_Graphics::endPaint(), GR_CairoGraphics::getCairo(), GR_EmbedManager::getGraphics(), UT_Rect::height, UT_Rect::left, m_pGOMan, GR_Graphics::tdu(), UT_Rect::top, UT_LAYOUT_RESOLUTION, UT_return_if_fail, width, and UT_Rect::width.
Referenced by GR_GOComponentManager::render().
| void GOComponentView::setDefaultFontSize | ( | UT_sint32 | iSize | ) |
Referenced by GR_GOComponentManager::setDefaultFontSize().
| bool GOComponentView::setFont | ( | const GR_Font * | pFont | ) |
References component, GR_PangoFont::getPangoDescription(), and UT_return_val_if_fail.
Referenced by GR_GOComponentManager::setFont().
| void GOComponentView::SetRun | ( | fp_Run * | pRun | ) | [inline] |
References m_pRun.
Referenced by GR_GOComponentManager::setRun().
| void GOComponentView::update | ( | void | ) |
References UT_String::c_str(), FV_View::cmdDeleteEmbed(), FV_View::cmdUpdateEmbed(), component, flags, fp_Run::getBlock(), fl_BlockLayout::getView(), m_pRun, UT_return_if_fail, UT_String_sprintf(), and void().
Referenced by changed_cb().
friend class GR_GOComponentManager [friend] |
UT_sint32 GOComponentView::ascent [private] |
Referenced by GR_GOComponentManager::getAscent(), getSnapShot(), GOComponentView(), loadBuffer(), and render().
GdkWindowAttr GOComponentView::attributes [private] |
GOComponent* GOComponentView::component [private] |
Referenced by getComponent(), getSnapShot(), GOComponentView(), IsEdittable(), IsResizable(), loadBuffer(), modify(), render(), setFont(), update(), and ~GOComponentView().
UT_sint32 GOComponentView::descent [private] |
Referenced by GR_GOComponentManager::getDescent(), getSnapShot(), GOComponentView(), loadBuffer(), and render().
GR_Image* GOComponentView::m_Image [private] |
Referenced by GOComponentView(), and ~GOComponentView().
GR_GOComponentManager* GOComponentView::m_pGOMan [private] |
Referenced by render().
fp_Run* GOComponentView::m_pRun [private] |
Referenced by GOComponentView(), loadBuffer(), SetRun(), and update().
std::string GOComponentView::mime_type [private] |
UT_sint32 GOComponentView::pix_height [private] |
Referenced by GOComponentView().
UT_sint32 GOComponentView::pix_width [private] |
Referenced by GOComponentView().
GdkPixbuf* GOComponentView::pixbuf [private] |
Referenced by GOComponentView().
UT_sint32 GOComponentView::width [private] |
Referenced by getSnapShot(), GR_GOComponentManager::getWidth(), GOComponentView(), loadBuffer(), and render().
1.7.1