#include <gr_EmbedManager.h>
Public Member Functions | |
GR_EmbedView (AD_Document *pDoc, UT_uint32 api) | |
virtual | ~GR_EmbedView (void) |
bool | getSnapShots (void) |
Public Attributes | |
AD_Document * | m_pDoc |
UT_uint32 | m_iAPI |
bool | m_bHasSVGSnapshot |
bool | m_bHasPNGSnapshot |
UT_ByteBufPtr | m_SVGBuf |
UT_ByteBufPtr | m_PNGBuf |
GR_Image * | m_pPreview |
UT_UTF8String | m_sDataID |
UT_uint32 | m_iZoom |
GR_EmbedView::GR_EmbedView | ( | AD_Document * | pDoc, | |
UT_uint32 | api | |||
) |
see the document abi/src/doc/EmbedablePlugins.abw for a more detailed Descrition of the this class. Almost all the methods in this class are overridden by a specific embedable plugin. However this code is pure XP AbiWord that can be happily used through the rest of the AbiWord program without needing any external libraries. The idea is to have a generic XP class with a well defined API with default implementations. Plugins are subclasses of this class which override the default implementations.
The basic idea is that the EmbedManager takes care of drawing each object of the Managers Type. Each object created by the manager gets it's own unique identifier which is used as index into a collection of valid classes which each draw their own object.
Little helper class to keep track of default views. api is the Attribute/Properties Index which gives the attributes/properties the Embedded object.
GR_EmbedView::~GR_EmbedView | ( | void | ) | [virtual] |
References DELETEP, and m_pPreview.
bool GR_EmbedView::getSnapShots | ( | void | ) |
References AD_Document::getDataItemDataByName(), m_bHasPNGSnapshot, m_bHasSVGSnapshot, m_pDoc, m_PNGBuf, m_sDataID, m_SVGBuf, and UT_UTF8String::utf8_str().
Referenced by GR_EmbedManager::makeEmbedView().
Referenced by GR_EmbedManager::getAscent(), getSnapShots(), GR_EmbedManager::getWidth(), and GR_EmbedManager::render().
Referenced by getSnapShots(), and GR_EmbedManager::render().
Referenced by GR_EmbedManager::makeEmbedView(), and GR_EmbedManager::render().
Referenced by getSnapShots().
Referenced by GR_EmbedManager::getAscent(), getSnapShots(), GR_EmbedManager::getWidth(), and GR_EmbedManager::render().
Referenced by GR_EmbedManager::changeAPI(), GR_EmbedManager::render(), GR_EmbedManager::setGraphics(), and ~GR_EmbedView().
Referenced by getSnapShots(), GR_EmbedManager::makeEmbedView(), and GR_EmbedManager::render().
Referenced by getSnapShots(), and GR_EmbedManager::render().