#include <fp_ContainerObject.h>
fg_FillType::fg_FillType | ( | fg_FillType * | pParent, | |
fp_ContainerObject * | pContainer, | |||
FG_Fill_Type | iType | |||
) |
To draw the background under text. Basic idea is to draw the colour or image defined here unless the fill type is transparent. If't transparent we recursively call it's parents until it's not transparent.
fg_FillType::~fg_FillType | ( | void | ) | [virtual] |
void fg_FillType::_regenerateImage | ( | GR_Graphics * | pG | ) | [private] |
void fg_FillType::Fill | ( | GR_Graphics * | pG, | |
UT_sint32 & | srcX, | |||
UT_sint32 & | srcY, | |||
UT_sint32 | x, | |||
UT_sint32 | y, | |||
UT_sint32 | width, | |||
UT_sint32 | height | |||
) |
Actually do the fill for this class.
References fp_Run::_setFont(), GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, GR_Painter::drawImage(), FG_FILL_COLOR, FG_FILL_IMAGE, FG_FILL_TRANSPARENT, Fill(), GR_Painter::fillRect(), fp_Line::getAbsLeftRight(), GR_Graphics::getClipRect(), fp_ContainerObject::getContainerString(), fp_ContainerObject::getContainerType(), FL_DocLayout::getGraphicTick(), fp_CellContainer::getLeftTopOffsets(), getParent(), fp_ContainerObject::getX(), fp_FrameContainer::getXPad(), fp_ContainerObject::getY(), fp_FrameContainer::getYPad(), UT_Rect::height, UT_Rect::left, fp_Run::lookupProperties(), m_bColorSet, m_bIgnoreLineLevel, m_bTransColorSet, m_bTransparentForPrint, m_color, m_FillType, m_iGraphicTick, m_pContainer, m_pDocImage, m_pDocLayout, m_pParent, m_TransColor, GR_Graphics::queryProperties(), GR_Graphics::tlu(), UT_Rect::top, UT_DEBUGMSG, UT_Rect::width, and xxx_UT_DEBUGMSG.
Referenced by fp_CellContainer::_clear(), fp_TOCContainer::clearScreen(), fp_FrameContainer::clearScreen(), fp_EndnoteContainer::clearScreen(), fp_AnnotationContainer::clearScreen(), fp_FootnoteContainer::clearScreen(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fp_CellContainer::drawBroken(), fp_Run::Fill(), and Fill().
const UT_RGBColor * fg_FillType::getColor | ( | void | ) | const |
Return the most appropriate color.
References getColor(), getParent(), m_bColorSet, m_bTransColorSet, m_color, and m_TransColor.
Referenced by fp_CellContainer::_clear(), AP_Dialog_Styles::_createCharPreviewFromGC(), FV_View::_draw(), FV_View::_fixInsertionPointCoords(), AP_Dialog_Styles::_populateAbiPreview(), fp_ShadowContainer::clearHdrFtrBoundaries(), fp_FootnoteContainer::clearScreen(), fp_Run::draw(), getColor(), AP_Dialog_Styles::ModifyFont(), and s_doFontDlg().
const FL_DocLayout* fg_FillType::getDocLayout | ( | void | ) | const |
FG_Fill_Type fg_FillType::getFillType | ( | void | ) | const |
Return the filltype of this class.
References m_FillType.
fg_FillType * fg_FillType::getParent | ( | void | ) | const |
Return the parent of this class.
References m_pParent.
Referenced by fp_CellContainer::_clear(), fp_FrameContainer::clearScreen(), Fill(), and getColor().
void fg_FillType::markTransparentForPrint | ( | void | ) |
Set that the fill should be transparent if we're printing.
References m_bTransparentForPrint.
Referenced by fl_DocSectionLayout::addOwnedPage(), and FL_DocLayout::updateColor().
void fg_FillType::setColor | ( | UT_RGBColor & | color | ) |
set this class to have a solid color fill
References m_bColorSet, m_bTransparentForPrint, m_color, m_FillType, and xxx_UT_DEBUGMSG.
Referenced by fl_DocSectionLayout::addOwnedPage(), fp_Run::draw(), fp_CellContainer::setBackground(), fp_FrameContainer::setBackground(), and fp_Line::setBlock().
void fg_FillType::setColor | ( | const char * | pszColor | ) |
set this class to have a solid color fill unless this is a NULL string pointer. This is an on-screen color only. Don't print this.
References m_bColorSet, m_bTransColorSet, m_bTransparentForPrint, m_color, m_FillType, and UT_RGBColor::setColor().
void fg_FillType::setDocLayout | ( | FL_DocLayout * | pDocLayout | ) |
Set the doc layout for this class.
References FL_DocLayout::getGraphicTick(), m_iGraphicTick, and m_pDocLayout.
Referenced by fl_DocSectionLayout::addOwnedPage(), fp_Container::fp_Container(), and fp_Run::fp_Run().
void fg_FillType::setHeight | ( | GR_Graphics * | pG, | |
UT_sint32 | height | |||
) |
References DELETEP, m_iHeight, m_iWidth, m_pDocGraphic, and m_pDocImage.
Referenced by fp_VerticalContainer::setHeight().
void fg_FillType::setIgnoreLineLevel | ( | bool | b | ) |
References m_bIgnoreLineLevel.
Referenced by fp_Line::_doClearScreenFromRunToEnd(), fp_Line::clearScreen(), and fp_Run::Run_ClearScreen().
void fg_FillType::setImagePointer | ( | const FG_SharedGraphicPtr & | pDocGraphic, | |
GR_Image ** | pDocImage | |||
) |
Set a pointer to the Image pointer in fl_DocSectionLayout. This enables many pages to share the same image without having to generate a new image for every page.
References m_FillType, m_pDocGraphic, and m_pDocImage.
Referenced by fl_DocSectionLayout::addOwnedPage(), fl_CellLayout::setCellContainerProperties(), and fl_FrameLayout::setContainerProperties().
void fg_FillType::setParent | ( | fg_FillType * | pParent | ) |
Set the parent of this fill class.
References m_pParent.
Referenced by fp_Line::setContainer(), fp_Container::setContainer(), fp_Run::setLine(), fp_FrameContainer::setPage(), fp_AnnotationContainer::setPage(), fp_FootnoteContainer::setPage(), fp_ShadowContainer::setPage(), and fp_Column::setPage().
void fg_FillType::setTransColor | ( | UT_RGBColor & | color | ) |
set this class to have a solid color fill but not print this color.
References m_bTransColorSet, m_FillType, m_TransColor, and UT_DEBUGMSG.
Referenced by fl_DocSectionLayout::addOwnedPage(), and FL_DocLayout::updateColor().
void fg_FillType::setTransColor | ( | const char * | pszColor | ) |
set this class to have a solid color fill unless this is a NULL string pointer
References m_bColorSet, m_bTransColorSet, m_bTransparentForPrint, m_FillType, m_TransColor, and UT_RGBColor::setColor().
void fg_FillType::setTransparent | ( | void | ) |
set this class to be transparent.
References m_bTransparentForPrint, and m_FillType.
void fg_FillType::setWidth | ( | GR_Graphics * | pG, | |
UT_sint32 | width | |||
) |
References DELETEP, m_iHeight, m_iWidth, m_pDocGraphic, and m_pDocImage.
Referenced by fp_VerticalContainer::setWidth().
void fg_FillType::setWidthHeight | ( | GR_Graphics * | pG, | |
UT_sint32 | width, | |||
UT_sint32 | height, | |||
bool | doImage = false | |||
) |
References DELETEP, m_iHeight, m_iWidth, m_pDocGraphic, and m_pDocImage.
Referenced by fp_CellContainer::_clear(), fp_TOCContainer::clearScreen(), fp_CellContainer::drawBroken(), and fl_FrameLayout::miniFormat().
friend class fp_Run [friend] |
bool fg_FillType::m_bColorSet [private] |
Referenced by Fill(), getColor(), setColor(), and setTransColor().
bool fg_FillType::m_bIgnoreLineLevel [private] |
Referenced by Fill(), and setIgnoreLineLevel().
bool fg_FillType::m_bTransColorSet [private] |
Referenced by Fill(), getColor(), setColor(), and setTransColor().
bool fg_FillType::m_bTransparentForPrint [private] |
Referenced by Fill(), markTransparentForPrint(), setColor(), setTransColor(), and setTransparent().
UT_RGBColor fg_FillType::m_color [private] |
Referenced by Fill(), getColor(), and setColor().
FG_Fill_Type fg_FillType::m_FillType [private] |
Referenced by Fill(), getFillType(), setColor(), setImagePointer(), setTransColor(), and setTransparent().
UT_uint32 fg_FillType::m_iGraphicTick [private] |
Referenced by Fill(), and setDocLayout().
UT_sint32 fg_FillType::m_iHeight [private] |
Referenced by fp_Run::_getHeight(), fp_Run::_setHeight(), setHeight(), setWidth(), and setWidthHeight().
UT_sint32 fg_FillType::m_iWidth [private] |
Referenced by fp_Run::_getWidth(), fp_Run::_setWidth(), setHeight(), setWidth(), and setWidthHeight().
fp_ContainerObject* fg_FillType::m_pContainer [private] |
Referenced by Fill().
Referenced by setHeight(), setImagePointer(), setWidth(), and setWidthHeight().
GR_Image** fg_FillType::m_pDocImage [private] |
Referenced by Fill(), setHeight(), setImagePointer(), setWidth(), and setWidthHeight().
FL_DocLayout* fg_FillType::m_pDocLayout [private] |
Referenced by Fill(), and setDocLayout().
GR_Image* fg_FillType::m_pImage [private] |
fg_FillType* fg_FillType::m_pParent [private] |
Referenced by Fill(), getParent(), and setParent().
UT_RGBColor fg_FillType::m_TransColor [private] |
Referenced by Fill(), getColor(), and setTransColor().