#include <fp_EmbedRun.h>

| fp_EmbedRun::fp_EmbedRun | ( | fl_BlockLayout * | pBL, | |
| PT_BlockOffset | iOffsetFirst, | |||
| PT_AttrPropIndex | indexAP, | |||
| PL_ObjectHandle | oh | |||
| ) |
| fp_EmbedRun::~fp_EmbedRun | ( | void | ) | [virtual] |
References getEmbedManager(), m_iEmbedUID, and GR_EmbedManager::releaseEmbedView().
| void fp_EmbedRun::mapXYToPosition | ( | UT_sint32 | xPos, | |
| UT_sint32 | yPos, | |||
| PT_DocPosition & | pos, | |||
| bool & | bBOL, | |||
| bool & | bEOL, | |||
| bool & | isTOC | |||
| ) | [virtual] |
Implements fp_Run.
References fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_Run::getLength(), fl_BlockLayout::getPosition(), and fp_Run::getWidth().
| void fp_EmbedRun::findPointCoords | ( | UT_uint32 | iOffset, | |
| UT_sint32 & | x, | |||
| UT_sint32 & | y, | |||
| UT_sint32 & | x2, | |||
| UT_sint32 & | y2, | |||
| UT_sint32 & | height, | |||
| bool & | bDirection | |||
| ) | [virtual] |
Implements fp_Run.
References fp_Run::getAscent(), fp_Run::getBlockOffset(), fp_Run::getLength(), fp_Run::getLine(), fp_Line::getOffsets(), fp_Run::getVisDirection(), fp_Run::getWidth(), m_iPointHeight, UT_ASSERT, and UT_BIDI_LTR.
| bool fp_EmbedRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
| bool fp_EmbedRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
| bool fp_EmbedRun::isSuperscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| bool fp_EmbedRun::isSubscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| bool fp_EmbedRun::hasLayoutProperties | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| void fp_EmbedRun::updateVerticalMetric | ( | ) | [virtual] |
Reimplemented from fp_Run.
References _lookupLocalProperties(), fp_Run::_setRecalcWidth(), getEmbedManager(), m_iEmbedUID, and GR_EmbedManager::releaseEmbedView().
| GR_EmbedManager * fp_EmbedRun::getEmbedManager | ( | void | ) |
References m_pEmbedManager.
Referenced by _draw(), _lookupProperties(), _recalcWidth(), _updatePropValuesIfNeeded(), Defun(), Defun1(), isEdittable(), isResizeable(), updateVerticalMetric(), and ~fp_EmbedRun().
| bool fp_EmbedRun::isEdittable | ( | void | ) |
Returns true if the embedable plugin is editable.
References getEmbedManager(), GR_EmbedManager::isEdittable(), and m_iEmbedUID.
| bool fp_EmbedRun::isResizeable | ( | void | ) |
References getEmbedManager(), GR_EmbedManager::isResizeable(), and m_iEmbedUID.
Referenced by _drawResizeBox().
| const char * fp_EmbedRun::getDataID | ( | void | ) | const |
| void fp_EmbedRun::update | ( | void | ) |
| EV_EditMouseContext fp_EmbedRun::getContextualMenu | ( | void | ) | const |
| void fp_EmbedRun::_lookupProperties | ( | const PP_AttrProp * | pSpanAP, | |
| const PP_AttrProp * | pBlockAP, | |||
| const PP_AttrProp * | pSectionAP, | |||
| GR_Graphics * | pG = NULL | |||
| ) | [protected, virtual] |
Implements fp_Run.
References fp_Run::_getFont(), _getLayoutPropFromObject(), fp_Run::_setAscent(), fp_Run::_setDescent(), fp_Run::_setFont(), fp_Run::_setHeight(), fp_Run::_setWidth(), _updatePropValuesIfNeeded(), GR_Graphics::DGP_PAPER, FL_DocLayout::findFont(), gchar, GR_EmbedManager::getAscent(), PP_AttrProp::getAttribute(), fp_Run::getBlock(), fp_Run::getBlockAP(), fl_DocSectionLayout::getBottomMargin(), GR_EmbedManager::getDescent(), fl_SectionLayout::getDocLayout(), fl_BlockLayout::getDocLayout(), fl_BlockLayout::getDocSectionLayout(), fl_Layout::getDocument(), FL_DocLayout::getEmbedManager(), getEmbedManager(), fl_DocSectionLayout::getFirstContainer(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), fp_Run::getGraphics(), fp_Page::getHeight(), fl_DocSectionLayout::getLeftMargin(), fp_Run::getLine(), FL_DocLayout::getNthPage(), fp_Container::getPage(), PP_AttrProp::getProperty(), FL_DocLayout::getQuickPrintEmbedManager(), fl_DocSectionLayout::getRightMargin(), fl_DocSectionLayout::getTopMargin(), fp_Page::getWidth(), GR_EmbedManager::getWidth(), GR_EmbedManager::initializeEmbedView(), FL_DocLayout::isQuickPrint(), GR_EmbedManager::loadEmbedData(), m_bNeedsSnapshot, m_iEmbedUID, m_iIndexAP, m_iPointHeight, m_pDocLayout, m_pEmbedManager, m_pSpanAP, m_pszDataID, GR_EmbedManager::makeEmbedView(), fp_Run::markAsDirty(), PP_evalProperty(), GR_Graphics::queryProperties(), GR_EmbedManager::releaseEmbedView(), GR_EmbedManager::setDefaultFontSize(), fp_Line::setNeedsRedraw(), GR_EmbedManager::setRun(), UT_ASSERT, UT_convertToLogicalUnits(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _lookupLocalProperties().
| void fp_EmbedRun::_lookupLocalProperties | ( | ) | [protected] |
References _lookupProperties(), fp_Run::getBlock(), fp_Run::getBlockAP(), fp_Run::getGraphics(), and fp_Run::getSpanAP().
Referenced by _recalcWidth(), and updateVerticalMetric().
| void fp_EmbedRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Implements fp_Run.
References _drawResizeBox(), fp_Run::_getView(), GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, fp_Run::Fill(), GR_Painter::fillRect(), fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), getEmbedManager(), fp_Run::getFGColor(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Line::getHeight(), fp_Run::getLine(), fp_Run::getOffsetFirstVis(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), FV_View::getSelectionAnchor(), fp_Run::getWidth(), UT_Rect::height, fp_Run::isInSelectedTOC(), UT_Rect::left, m_bNeedsSnapshot, m_iEmbedUID, m_sEmbedML, GR_EmbedManager::makeSnapShot(), dg_DrawArgs::pG, GR_Graphics::queryProperties(), GR_EmbedManager::render(), GR_EmbedManager::setColor(), UT_Rect::top, UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_MIN, UT_return_if_fail, UT_UTF8String::utf8_str(), UT_Rect::width, dg_DrawArgs::xoff, and dg_DrawArgs::yoff.
| void fp_EmbedRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
| bool fp_EmbedRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
| void fp_EmbedRun::_drawResizeBox | ( | UT_Rect | box | ) | [protected] |
References fp_Run::_getView(), FV_View::drawSelectionBox(), and isResizeable().
Referenced by _draw().
| UT_sint32 fp_EmbedRun::_getLayoutPropFromObject | ( | const char * | szProp | ) | [protected] |
This method is used to determine the value of the layout properties of the embed runs. The values returned are in logical units. The properties are "height","width","ascent","decent". If the propeties are not defined return -1
References PD_Document::getAPIFromSOH(), PD_Document::getAttrProp(), fp_Run::getBlock(), fl_Layout::getDocument(), PP_AttrProp::getProperty(), m_OH, and UT_convertToLogicalUnits().
Referenced by _lookupProperties().
| bool fp_EmbedRun::_updatePropValuesIfNeeded | ( | void | ) | [protected] |
Returns true if the properties are changed in the document.
References PD_Document::changeObjectFormatNoUpdate(), PD_Document::getAPIFromSOH(), fp_Run::getAscent(), PD_Document::getAttrProp(), fp_Run::getBlock(), fp_Run::getDescent(), fl_Layout::getDocument(), getEmbedManager(), fp_Run::getHeight(), PP_AttrProp::getProperty(), fp_Run::getWidth(), m_OH, PTC_AddFmt, UT_convertToLogicalUnits(), UT_return_val_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by _lookupProperties().
| bool fp_EmbedRun::_recalcWidth | ( | void | ) | [protected, virtual] |
Reimplemented from fp_Run.
References fp_Run::_getRecalcWidth(), _lookupLocalProperties(), getEmbedManager(), fp_Run::getWidth(), m_iEmbedUID, and GR_EmbedManager::releaseEmbedView().
UT_sint32 fp_EmbedRun::m_iPointHeight [protected] |
Referenced by _lookupProperties(), and findPointCoords().
const PP_AttrProp* fp_EmbedRun::m_pSpanAP [protected] |
Referenced by _lookupProperties().
UT_uint32 fp_EmbedRun::m_iGraphicTick [protected] |
const gchar* fp_EmbedRun::m_pszDataID [protected] |
Referenced by _lookupProperties(), and getDataID().
UT_UTF8String fp_EmbedRun::m_sEmbedML [protected] |
Referenced by _draw().
GR_EmbedManager* fp_EmbedRun::m_pEmbedManager [protected] |
Referenced by _lookupProperties(), getContextualMenu(), getEmbedManager(), and update().
UT_sint32 fp_EmbedRun::m_iEmbedUID [protected] |
Referenced by _draw(), _lookupProperties(), _recalcWidth(), isEdittable(), isResizeable(), update(), updateVerticalMetric(), and ~fp_EmbedRun().
PT_AttrPropIndex fp_EmbedRun::m_iIndexAP [protected] |
Referenced by _lookupProperties(), and update().
FL_DocLayout* fp_EmbedRun::m_pDocLayout [protected] |
Referenced by _lookupProperties().
bool fp_EmbedRun::m_bNeedsSnapshot [protected] |
Referenced by _draw(), and _lookupProperties().
PL_ObjectHandle fp_EmbedRun::m_OH [protected] |
Referenced by _getLayoutPropFromObject(), _updatePropValuesIfNeeded(), and update().
1.5.5