#include <fp_Column.h>
Public Member Functions | |
fp_ShadowContainer (UT_sint32 iX, UT_sint32 iY, UT_sint32 iWidth, UT_sint32 iHeight, fl_SectionLayout *pSL) | |
~fp_ShadowContainer () | |
fl_HdrFtrSectionLayout * | getHdrFtrSectionLayout (void) const |
fl_HdrFtrShadow * | getShadow () |
virtual void | draw (dg_DrawArgs *) |
virtual void | draw (GR_Graphics *) |
virtual void | layout (void) |
void | layout (bool bForce) |
virtual void | clearScreen (void) |
void | clearHdrFtrBoundaries (void) |
void | setPage (fp_Page *pPage) |
virtual fp_Page * | getPage (void) const |
Protected Member Functions | |
void | _drawHdrFtrBoundaries (dg_DrawArgs *pDA) |
Private Attributes | |
bool | m_bHdrFtrBoxDrawn |
UT_sint32 | m_ixoffBegin |
UT_sint32 | m_iyoffBegin |
UT_sint32 | m_ixoffEnd |
UT_sint32 | m_iyoffEnd |
fp_Page * | m_pPage |
fp_ShadowContainer::fp_ShadowContainer | ( | UT_sint32 | iX, | |
UT_sint32 | iY, | |||
UT_sint32 | iWidth, | |||
UT_sint32 | iHeight, | |||
fl_SectionLayout * | pSectionLayout | |||
) |
This container is actually to display HdrFtrShadows which are repeated for every page in the document. If the text is too high it is clipped to to fit in the container. It's up to the user to adjust the height of the header/footer region to fit the text.
References fp_VerticalContainer::_setX(), fp_VerticalContainer::_setY(), m_bHdrFtrBoxDrawn, fp_VerticalContainer::setHeight(), fp_VerticalContainer::setMaxHeight(), and fp_VerticalContainer::setWidth().
fp_ShadowContainer::~fp_ShadowContainer | ( | ) |
void fp_ShadowContainer::_drawHdrFtrBoundaries | ( | dg_DrawArgs * | pDA | ) | [protected] |
This method draws a solid box around the currently editted Header/Footer
References GR_Graphics::DGP_SCREEN, GR_Painter::drawLine(), fp_Page::getDocLayout(), fp_ContainerObject::getGraphics(), fp_VerticalContainer::getMaxHeight(), getPage(), FL_DocLayout::getView(), FV_View::getViewMode(), fp_VerticalContainer::getWidth(), m_bHdrFtrBoxDrawn, m_ixoffBegin, m_ixoffEnd, m_iyoffBegin, m_iyoffEnd, dg_DrawArgs::pG, GR_Graphics::queryProperties(), GR_Graphics::setColor(), GR_Graphics::setLineWidth(), GR_Graphics::tlu(), UT_DEBUGMSG, dg_DrawArgs::xoff, and dg_DrawArgs::yoff.
Referenced by draw().
void fp_ShadowContainer::clearHdrFtrBoundaries | ( | void | ) |
This method clears the solid box around the curently editted Header/Footer
References GR_Painter::drawLine(), fg_FillType::getColor(), fp_Page::getFillType(), fp_ContainerObject::getGraphics(), getPage(), m_bHdrFtrBoxDrawn, m_ixoffBegin, m_ixoffEnd, m_iyoffBegin, m_iyoffEnd, GR_Graphics::setColor(), and GR_Graphics::setLineWidth().
Referenced by clearScreen(), and draw().
void fp_ShadowContainer::clearScreen | ( | void | ) | [virtual] |
Clear container content from screen.
Reimplemented from fp_VerticalContainer.
References clearHdrFtrBoundaries(), fp_ContainerObject::clearScreen(), fp_Container::countCons(), fp_Page::getDocLayout(), fp_Container::getNthCon(), getPage(), FL_DocLayout::getView(), FV_View::getViewMode(), and UT_DEBUGMSG.
Referenced by fp_Page::TopBotMarginChanged().
virtual void fp_ShadowContainer::draw | ( | GR_Graphics * | ) | [inline, virtual] |
Reimplemented from fp_VerticalContainer.
void fp_ShadowContainer::draw | ( | dg_DrawArgs * | pDA | ) | [virtual] |
Draw container content
pDA | Draw arguments |
Reimplemented from fp_VerticalContainer.
References fp_VerticalContainer::_drawBoundaries(), _drawHdrFtrBoundaries(), clearHdrFtrBoundaries(), fp_Container::countCons(), GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, fp_ContainerObject::draw(), fp_Page::getDocLayout(), FV_View::getEditShadow(), fp_ContainerObject::getHeight(), fp_Container::getMarginAfter(), fp_VerticalContainer::getMaxHeight(), fp_Container::getNthCon(), getPage(), getShadow(), FL_DocLayout::getView(), FV_View::getViewMode(), fp_ContainerObject::getX(), fp_ContainerObject::getY(), FV_View::isHdrFtrEdit(), layout(), dg_DrawArgs::pG, GR_Graphics::queryProperties(), UT_DEBUGMSG, dg_DrawArgs::xoff, and dg_DrawArgs::yoff.
Referenced by fp_Page::draw().
fl_HdrFtrSectionLayout * fp_ShadowContainer::getHdrFtrSectionLayout | ( | void | ) | const |
References FL_SECTION_HDRFTR, fp_ContainerObject::getSectionLayout(), and UT_ASSERT.
Referenced by fl_HdrFtrSectionLayout::addPage(), getShadow(), layout(), and fp_Page::~fp_Page().
virtual fp_Page* fp_ShadowContainer::getPage | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Container.
Referenced by _drawHdrFtrBoundaries(), clearHdrFtrBoundaries(), clearScreen(), draw(), fp_CellContainer::getScreenPositions(), getShadow(), and layout().
fl_HdrFtrShadow * fp_ShadowContainer::getShadow | ( | void | ) |
get the shadow associated with this hdrftrContainer
References fl_HdrFtrSectionLayout::findShadow(), getHdrFtrSectionLayout(), and getPage().
Referenced by FV_View::_cmdEditHdrFtr(), fl_DocSectionLayout::_HdrFtrChangeCallback(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdRemoveHdrFtr(), draw(), FV_View::insertHeaderFooter(), fp_Page::mapXYToPosition(), and AP_LeftRuler::mouseRelease().
void fp_ShadowContainer::layout | ( | bool | bForce | ) |
References fp_Container::countCons(), fp_ContainerObject::getContainerType(), fp_Page::getDocLayout(), fl_HdrFtrSectionLayout::getDocSectionLayout(), fp_ContainerObject::getGraphics(), getHdrFtrSectionLayout(), fp_Page::getHeight(), fp_VerticalContainer::getHeight(), fp_TOCContainer::getHeight(), fp_ContainerObject::getHeight(), fp_TableContainer::getHeight(), fl_HdrFtrSectionLayout::getHFType(), fp_Container::getMarginAfter(), fp_VerticalContainer::getMaxHeight(), fp_Container::getNthCon(), getPage(), FL_DocLayout::getView(), FV_View::getViewMode(), fl_DocSectionLayout::setHdrFtrHeightChange(), fp_VerticalContainer::setHeight(), fp_ContainerObject::setY(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
void fp_ShadowContainer::layout | ( | void | ) | [virtual] |
Referenced by draw(), fl_TableLayout::format(), and fp_Page::TopBotMarginChanged().
void fp_ShadowContainer::setPage | ( | fp_Page * | pPage | ) |
Set the page for this shadow. Also set the fg_FillType parent.
References fp_Page::getFillType(), fp_Container::getFillType(), m_pPage, and fg_FillType::setParent().
bool fp_ShadowContainer::m_bHdrFtrBoxDrawn [private] |
Referenced by _drawHdrFtrBoundaries(), clearHdrFtrBoundaries(), and fp_ShadowContainer().
UT_sint32 fp_ShadowContainer::m_ixoffBegin [private] |
Referenced by _drawHdrFtrBoundaries(), and clearHdrFtrBoundaries().
UT_sint32 fp_ShadowContainer::m_ixoffEnd [private] |
Referenced by _drawHdrFtrBoundaries(), and clearHdrFtrBoundaries().
UT_sint32 fp_ShadowContainer::m_iyoffBegin [private] |
Referenced by _drawHdrFtrBoundaries(), and clearHdrFtrBoundaries().
UT_sint32 fp_ShadowContainer::m_iyoffEnd [private] |
Referenced by _drawHdrFtrBoundaries(), and clearHdrFtrBoundaries().
fp_Page* fp_ShadowContainer::m_pPage [private] |
Referenced by setPage().