#include <fp_Run.h>
fp_ImageRun::fp_ImageRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_uint32 | iLen, | |||
FG_GraphicPtr && | pGraphic, | |||
pf_Frag_Object * | oh | |||
) |
void fp_ImageRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
void fp_ImageRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Implements fp_Run.
References fp_Run::_getView(), GR_Graphics::DGP_SCREEN, GR_Painter::drawImage(), FV_View::drawSelectionBox(), fp_Run::Fill(), GR_Painter::fillRect(), fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), fp_Run::getBlockOffset(), GR_Graphics::getClipRect(), FV_View::getColorImage(), fp_Container::getContainer(), fl_BlockLayout::getDocLayout(), fl_BlockLayout::getDocSectionLayout(), FL_DocLayout::getGraphicTick(), fp_Run::getHeight(), fp_ContainerObject::getHeight(), fp_Run::getLine(), fp_Line::getOffsets(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), FV_View::getSelectionAnchor(), fp_Run::getWidth(), fp_ContainerObject::getWidth(), fp_Line::getY(), GR_Image::hasAlpha(), UT_Rect::height, UT_Rect::left, m_iGraphicTick, m_pImage, dg_DrawArgs::pG, GR_Graphics::queryProperties(), regenerateImage(), GR_Graphics::setClipRect(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, UT_MAX, UT_MIN, VIEW_PRINT, and UT_Rect::width.
bool fp_ImageRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_ImageRun::_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(), fp_Run::_getHeight(), fp_Run::_setAscent(), fp_Run::_setDescent(), fp_Run::_setField(), fp_Run::_setFont(), fp_Run::_setHeight(), fp_Run::_setWidth(), UT_String::c_str(), PD_Document::changeObjectFormatNoUpdate(), DELETEP, GR_Graphics::DGP_PAPER, DIM_IN, fd, FL_DocLayout::findFont(), gchar, fl_DocSectionLayout::getActualColumnHeight(), fl_DocSectionLayout::getActualColumnWidth(), PD_Document::getAPIFromSOH(), PD_Document::getAttrProp(), fp_Run::getBlock(), fp_Run::getBlockAP(), fp_Run::getBlockOffset(), fl_ContainerLayout::getContainerType(), GR_Image::getDisplayHeight(), GR_Image::getDisplayWidth(), fl_BlockLayout::getDocLayout(), fl_BlockLayout::getDocSectionLayout(), fl_Layout::getDocument(), fl_Layout::getField(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), fl_FrameLayout::getFrameHeight(), fl_FrameLayout::getFrameWidth(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Run::getLine(), PP_AttrProp::getProperty(), fp_Run::getWidth(), fp_Line::getY(), m_bImageForPrinter, m_iImageHeight, m_iImageWidth, m_iPointHeight, m_OH, m_pFGraphic, m_pImage, m_pSpanAP, m_sCachedHeightProp, m_sCachedWidthProp, fp_Run::markAsDirty(), fl_ContainerLayout::myContainingLayout(), PTC_AddFmt, GR_Graphics::queryProperties(), fp_Line::setNeedsRedraw(), GR_Graphics::tdu(), GR_Graphics::tlu(), UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_formatDimensionString(), UT_LAYOUT_RESOLUTION, and UT_return_if_fail.
bool fp_ImageRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
bool fp_ImageRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
void fp_ImageRun::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::getBlockOffset(), fp_Run::getHeight(), fp_Run::getLength(), fp_Run::getLine(), fp_Line::getOffsets(), fp_Run::getVisDirection(), fp_Run::getWidth(), m_iPointHeight, and UT_ASSERT.
const char * fp_ImageRun::getDataId | ( | void | ) | const |
References m_pFGraphic.
Referenced by Defun1().
UT_sint32 fp_ImageRun::getPointHeight | ( | void | ) | [inline] |
bool fp_ImageRun::hasLayoutProperties | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
void fp_ImageRun::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_ImageRun::regenerateImage | ( | GR_Graphics * | pG | ) |
References DELETEP, GR_Graphics::DGP_PAPER, fp_Run::getBlock(), fl_BlockLayout::getDocLayout(), FL_DocLayout::getGraphicTick(), m_bImageForPrinter, m_iGraphicTick, m_pFGraphic, m_pImage, and GR_Graphics::queryProperties().
Referenced by _draw().
bool fp_ImageRun::m_bImageForPrinter [private] |
Referenced by _lookupProperties(), and regenerateImage().
UT_uint32 fp_ImageRun::m_iGraphicTick [private] |
Referenced by _draw(), fp_ImageRun(), and regenerateImage().
UT_sint32 fp_ImageRun::m_iImageHeight [private] |
Referenced by _lookupProperties().
UT_sint32 fp_ImageRun::m_iImageWidth [private] |
Referenced by _lookupProperties().
UT_sint32 fp_ImageRun::m_iPointHeight [private] |
Referenced by _lookupProperties(), and findPointCoords().
pf_Frag_Object* fp_ImageRun::m_OH [private] |
Referenced by _lookupProperties().
FG_GraphicPtr fp_ImageRun::m_pFGraphic [private] |
Referenced by _lookupProperties(), fp_ImageRun(), getDataId(), and regenerateImage().
GR_Image* fp_ImageRun::m_pImage [private] |
Referenced by _draw(), _lookupProperties(), fp_ImageRun(), getImage(), regenerateImage(), and ~fp_ImageRun().
const PP_AttrProp* fp_ImageRun::m_pSpanAP [private] |
Referenced by _lookupProperties().
UT_String fp_ImageRun::m_sCachedHeightProp [private] |
Referenced by _lookupProperties(), and fp_ImageRun().
UT_String fp_ImageRun::m_sCachedWidthProp [private] |
Referenced by _lookupProperties(), and fp_ImageRun().