#include <fl_FrameLayout.h>
fl_FrameLayout::fl_FrameLayout | ( | FL_DocLayout * | pLayout, | |
pf_Frag_Strux * | sdh, | |||
PT_AttrPropIndex | ap, | |||
fl_ContainerLayout * | pMyContainerLayout | |||
) |
fl_FrameLayout::~fl_FrameLayout | ( | ) | [virtual] |
References _purgeLayout(), FV_FrameEdit_NOT_ACTIVE, fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getFirstContainer(), FV_View::getFrameEdit(), FV_FrameEdit::getFrameLayout(), fl_ContainerLayout::getLastContainer(), fp_Container::getNext(), FL_DocLayout::getView(), fp_VerticalContainer::getView(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), FV_FrameEdit::setMode(), and UT_DEBUGMSG.
void fl_FrameLayout::_createFrameContainer | ( | void | ) | [private] |
This method creates a new footnote with its properties initially set from the Attributes/properties of this Layout
References FG_Graphic::createFromStrux(), DELETEP, fp_FrameContainer, gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), fp_FrameContainer::getFullHeight(), fp_FrameContainer::getFullWidth(), fl_ContainerLayout::lookupProperties(), m_iHeight, m_iWidth, fl_SectionLayout::m_pGraphicImage, fl_SectionLayout::m_pImageImage, PT_STRUX_IMAGE_DATAID, setContainerProperties(), fl_ContainerLayout::setFirstContainer(), fp_FrameContainer::setHeight(), fl_SectionLayout::setImageHeight(), fl_SectionLayout::setImageWidth(), fl_ContainerLayout::setLastContainer(), fp_VerticalContainer::setWidth(), and UT_DEBUGMSG.
Referenced by getNewContainer().
void fl_FrameLayout::_insertFrameContainer | ( | fp_Container * | pNewFC | ) | [private] |
void fl_FrameLayout::_lookupMarginProperties | ( | const PP_AttrProp * | pAP | ) | [private, virtual] |
Reimplemented from fl_ContainerLayout.
References collapse(), GR_Graphics::DGP_PAPER, gchar, fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getFirstLayout(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getNext(), PP_AttrProp::getProperty(), FL_DocLayout::getView(), FV_View::getViewMode(), fl_ContainerLayout::lookupMarginProperties(), m_bIsTightWrap, m_iFramePositionTo, m_iFrameWrapMode, m_iXColumn, m_iXPage, m_iXpos, m_iYColumn, m_iYPage, m_iYpos, GR_Graphics::queryProperties(), UT_ASSERT, UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and VIEW_NORMAL.
void fl_FrameLayout::_lookupProperties | ( | const PP_AttrProp * | pSectionAP | ) | [private, virtual] |
this function is only to be called by fl_ContainerLayout::lookupProperties() all other code must call lookupProperties() instead
Implements fl_ContainerLayout.
References gchar, fl_DocSectionLayout::getActualColumnWidth(), fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getDocSectionLayout(), fp_ContainerObject::getGraphics(), FL_DocLayout::getGraphics(), PP_AttrProp::getProperty(), FL_DocLayout::getView(), m_background, m_bExpandHeight, m_bIsTightWrap, m_iBoundingSpace, m_iFramePositionTo, m_iFrameType, m_iFrameWrapMode, m_iHeight, m_iMinHeight, m_iPrefColumn, m_iPrefPage, m_iWidth, m_iXColumn, m_iXpad, m_iXPage, m_iXpos, m_iYColumn, m_iYpad, m_iYPage, m_iYpos, m_lineBottom, m_lineLeft, m_lineRight, m_lineTop, fl_SectionLayout::m_pLayout, PP_PropertyMap::Background::reset(), s_background_properties(), s_border_properties(), GR_Graphics::tlu(), UT_ASSERT, UT_convertFraction(), UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_return_if_fail, and UT_SHOULD_NOT_HAPPEN.
void fl_FrameLayout::_purgeLayout | ( | void | ) | [private] |
This method removes all layout structures contained by this layout structure.
Reimplemented from fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), and UT_DEBUGMSG.
Referenced by ~fl_FrameLayout().
bool fl_FrameLayout::bl_doclistener_insertEndFrame | ( | fl_ContainerLayout * | , | |
const PX_ChangeRecord_Strux * | pcrx, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) | [virtual] |
References FV_View::getPoint(), PX_ChangeRecord::getPosition(), FL_DocLayout::getView(), FV_View::isActive(), FV_View::isPreview(), m_bHasEndFrame, fl_SectionLayout::m_pLayout, fl_Layout::setEndStruxDocHandle(), FV_View::setPoint(), and FV_View::updateCarets().
Referenced by fl_DocListener::insertStrux().
void fl_FrameLayout::collapse | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References FV_FrameEdit_NOT_ACTIVE, fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getFirstContainer(), FV_View::getFrameEdit(), FV_FrameEdit::getFrameLayout(), fp_Container::getNext(), fp_FrameContainer::getPage(), fp_Container::getPrev(), FL_DocLayout::getView(), localCollapse(), fp_Page::removeFrameContainer(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), FV_FrameEdit::setMode(), fp_Container::setNext(), fp_FrameContainer::setPage(), and fp_ContainerObject::setPrev().
Referenced by _lookupMarginProperties(), doclistener_changeStrux(), and doclistener_deleteStrux().
bool fl_FrameLayout::doclistener_changeStrux | ( | const PX_ChangeRecord_StruxChange * | pcrxc | ) | [virtual] |
Implements fl_SectionLayout.
References UT_GenericVector< T >::clear(), collapse(), fl_ContainerLayout::collapse(), fl_ContainerLayout::format(), format(), fp_Page::getAllLayouts(), fl_ContainerLayout::getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), PX_ChangeRecord::getIndexAP(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PX_ChangeRecord::getType(), fl_ContainerLayout::lookupProperties(), fl_DocSectionLayout::markAllRunsDirty(), fl_ContainerLayout::markAllRunsDirty(), fl_Layout::setAttrPropIndex(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by fl_DocListener::change().
bool fl_FrameLayout::doclistener_deleteEndFrame | ( | const PX_ChangeRecord_Strux * | pcrx | ) | [virtual] |
This signals an incomplete frame section.
References m_bHasEndFrame.
bool fl_FrameLayout::doclistener_deleteStrux | ( | const PX_ChangeRecord_Strux * | pcrx | ) | [virtual] |
References collapse(), fl_BlockLayout::collapse(), fl_BlockLayout::format(), fp_FrameContainer::getBlocksAroundFrame(), fl_ContainerLayout::getFirstContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), getParentContainer(), PX_ChangeRecord::getType(), fl_ContainerLayout::myContainingLayout(), fl_ContainerLayout::remove(), fl_ContainerLayout::removeFrame(), UT_ASSERT, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, UT_UNUSED, and xxx_UT_DEBUGMSG.
bool fl_FrameLayout::expandHeight | ( | void | ) | const [inline] |
Referenced by fp_FrameContainer::layout().
void fl_FrameLayout::format | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::format(), FP_VISIBLE, fl_ContainerLayout::getContainerType(), fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getLastContainer(), getNewContainer(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), fp_FrameContainer::getPage(), getParentContainer(), FL_DocLayout::getView(), fl_BlockLayout::isCollapsed(), fl_ContainerLayout::isHidden(), fp_AnnotationContainer::layout(), m_bIsOnPage, m_bNeedsFormat, fl_SectionLayout::m_bNeedsReformat, fl_BlockLayout::setFramesOnPage(), setNeedsReformat(), fl_DocSectionLayout::setNeedsSectionBreak(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by doclistener_changeStrux(), and updateLayout().
UT_sint32 fl_FrameLayout::getBoundingSpace | ( | void | ) | const |
PT_DocPosition fl_FrameLayout::getDocPosition | ( | void | ) |
Returns the position in the document of the PTX_SectionFrame strux
References FL_DocLayout::getDocument(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), and fl_SectionLayout::m_pLayout.
Referenced by getLength().
UT_sint32 fl_FrameLayout::getFrameHeight | ( | void | ) | const [inline] |
References fp_VerticalContainer::m_iHeight.
Referenced by fp_ImageRun::_lookupProperties().
FL_FrameFormatMode fl_FrameLayout::getFramePositionTo | ( | void | ) | const [inline] |
FL_FrameType fl_FrameLayout::getFrameType | ( | void | ) | const [inline] |
Referenced by FV_View::_getMouseContext(), Defun(), Defun_EV_GetMenuItemState_Fn(), FV_FrameEdit::drawFrame(), fp_FrameContainer::getLeftPad(), fp_FrameContainer::getRightPad(), FV_FrameEdit::isImageWrapper(), fp_Page::mapXYToPosition(), fp_VerticalContainer::mapXYToPosition(), FV_FrameEdit::mouseLeftPress(), and FL_DocLayout::relocateFrame().
UT_sint32 fl_FrameLayout::getFrameWidth | ( | void | ) | const [inline] |
References fp_VerticalContainer::m_iWidth.
Referenced by fp_ImageRun::_lookupProperties().
FL_FrameWrapMode fl_FrameLayout::getFrameWrapMode | ( | void | ) | const [inline] |
Referenced by Defun1(), and AP_UnixDialog_FormatFrame::notifyActiveFrame().
UT_sint32 fl_FrameLayout::getFrameXColpos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_sint32 fl_FrameLayout::getFrameXPagepos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_sint32 fl_FrameLayout::getFrameXpos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_sint32 fl_FrameLayout::getFrameYColpos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_sint32 fl_FrameLayout::getFrameYPagepos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_sint32 fl_FrameLayout::getFrameYpos | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::setFramesOnPage().
UT_uint32 fl_FrameLayout::getLength | ( | void | ) |
This method returns the length of the Frame. This is such that getDocPosition() + getLength() is one value beyond the the EndFrame strux
References getDocPosition(), FL_DocLayout::getDocument(), PD_Document::getNextStruxOfType(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fl_SectionLayout::m_pLayout, PTX_EndFrame, and UT_ASSERT.
Referenced by FV_View::_deleteSelection(), FV_View::cmdCharDelete(), FV_View::cmdSelect(), FV_View::copyFrame(), FL_DocLayout::relocateFrame(), FV_View::selectFrame(), and FV_FrameEdit::setPointInside().
fp_Container * fl_FrameLayout::getNewContainer | ( | fp_Container * | = NULL |
) | [virtual] |
Create a new Frame container.
If | pPrevFrame is non-null place the new cell after this in the linked list, otherwise just append it to the end. |
Implements fl_SectionLayout.
References _createFrameContainer(), fl_ContainerLayout::getLastContainer(), m_bIsOnPage, and UT_DEBUGMSG.
Referenced by format().
fl_ContainerLayout* fl_FrameLayout::getParentContainer | ( | void | ) | const [inline] |
fl_SectionLayout * fl_FrameLayout::getSectionLayout | ( | void | ) | const [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::getContainerType(), and fl_ContainerLayout::myContainingLayout().
Referenced by fp_FrameContainer::getDocSectionLayout().
bool fl_FrameLayout::insertBlockAfter | ( | fl_ContainerLayout * | pCL, | |
const PX_ChangeRecord_Strux * | pcrx, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) |
This code actually inserts a block AFTER the frame in the docsectionlayout Code copied from tablelayout
References PX_ChangeRecord::getIndexAP(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), PX_ChangeRecord_Strux::getStruxType(), PX_ChangeRecord::getType(), FL_DocLayout::getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_SectionLayout::m_pLayout, fl_ContainerLayout::myContainingLayout(), FV_View::setPoint(), fl_BlockLayout::setSectionLayout(), FV_View::updateCarets(), and UT_ASSERT.
bool fl_FrameLayout::isEndFrameIn | ( | void | ) | const [inline] |
bool fl_FrameLayout::isTightWrap | ( | void | ) | [inline] |
Referenced by Defun1().
void fl_FrameLayout::localCollapse | ( | void | ) |
void fl_FrameLayout::markAllRunsDirty | ( | void | ) | [virtual] |
Implements fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), and fl_ContainerLayout::markAllRunsDirty().
Referenced by fp_Page::removeFrameContainer().
UT_sint32 fl_FrameLayout::minHeight | ( | void | ) | const [inline] |
Referenced by fp_FrameContainer::layout().
void fl_FrameLayout::miniFormat | ( | void | ) |
References fl_ContainerLayout::format(), fl_SectionLayout::getDocLayout(), fp_Container::getFillType(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fp_FrameContainer::getFullHeight(), fp_FrameContainer::getFullWidth(), fp_ContainerObject::getGraphics(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getNext(), FL_DocLayout::getView(), fp_FrameContainer::layout(), m_bNeedsFormat, fl_SectionLayout::m_bNeedsReformat, fg_FillType::setWidthHeight(), and UT_return_if_fail.
Referenced by FV_FrameEdit::_mouseDrag().
bool fl_FrameLayout::recalculateFields | ( | UT_uint32 | iUpdateCount | ) | [virtual] |
void fl_FrameLayout::redrawUpdate | ( | void | ) | [virtual] |
void fl_FrameLayout::setContainerProperties | ( | void | ) |
This loads all the properties of the container found in the piecetable into the physical frame container
References FL_FRAME_BELOW_TEXT, FL_FRAME_WRAPPED_TO_LEFT, FL_FRAME_WRAPPED_TO_RIGHT, FL_FRAME_WRAPPED_TOPBOT, fl_ContainerLayout::getAP(), fl_SectionLayout::getDocLayout(), fp_Container::getFillType(), fp_FrameContainer::getFullHeight(), fp_FrameContainer::getFullWidth(), FL_DocLayout::getGraphics(), FL_DocLayout::getGraphicTick(), fl_ContainerLayout::getLastContainer(), m_background, m_bIsTightWrap, fl_SectionLayout::m_iDocImageHeight, fl_SectionLayout::m_iDocImageWidth, m_iFrameWrapMode, fl_SectionLayout::m_iGraphicTick, m_iPrefColumn, m_iPrefPage, m_iXpad, m_iYpad, m_lineBottom, m_lineLeft, m_lineRight, m_lineTop, fl_SectionLayout::m_pGraphicImage, fl_SectionLayout::m_pImageImage, GR_Image::scaleImageTo(), fp_FrameContainer::setAbove(), fp_FrameContainer::setBackground(), fp_FrameContainer::setBottomStyle(), fg_FillType::setImagePointer(), fp_FrameContainer::setLeftStyle(), fp_FrameContainer::setLeftWrapped(), fp_FrameContainer::setPreferedColumnNo(), fp_FrameContainer::setPreferedPageNo(), fp_FrameContainer::setRightStyle(), fp_FrameContainer::setRightWrapped(), fp_FrameContainer::setTightWrapping(), fp_FrameContainer::setTopBot(), fp_FrameContainer::setTopStyle(), fp_FrameContainer::setWrapping(), fp_FrameContainer::setXpad(), fp_FrameContainer::setYpad(), GR_Graphics::tlu(), UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by _createFrameContainer().
void fl_FrameLayout::setFrameHeight | ( | UT_sint32 | iH | ) | [inline] |
References fp_VerticalContainer::m_iHeight.
Referenced by FV_FrameEdit::_mouseDrag().
void fl_FrameLayout::setFrameWidth | ( | UT_sint32 | iW | ) | [inline] |
References fp_VerticalContainer::m_iWidth.
Referenced by FV_FrameEdit::_mouseDrag().
void fl_FrameLayout::setFrameXpos | ( | UT_sint32 | iX | ) | [inline] |
void fl_FrameLayout::setFrameYpos | ( | UT_sint32 | iY | ) | [inline] |
void fl_FrameLayout::setNeedsReformat | ( | fl_ContainerLayout * | pCL, | |
UT_uint32 | offset = 0 | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References fl_SectionLayout::m_bNeedsReformat, fl_ContainerLayout::myContainingLayout(), and fl_ContainerLayout::setNeedsReformat().
Referenced by format().
void fl_FrameLayout::setParentContainer | ( | fl_ContainerLayout * | pCon | ) | [inline] |
Referenced by fl_ContainerLayout::addFrame(), and fl_ContainerLayout::removeFrame().
void fl_FrameLayout::updateLayout | ( | bool | bDoFull | ) | [virtual] |
Implements fl_ContainerLayout.
References UT_GenericVector< T >::clear(), fl_ContainerLayout::format(), format(), fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getFirstLayout(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getNext(), FL_DocLayout::getView(), fl_SectionLayout::m_vecFormatLayout, fl_ContainerLayout::needsReformat(), fl_SectionLayout::needsReformat(), UT_return_if_fail, and xxx_UT_DEBUGMSG.
friend class fl_DocListener [friend] |
Reimplemented from fl_SectionLayout.
friend class fp_FrameContainer [friend] |
Referenced by _createFrameContainer().
Referenced by _lookupProperties(), and setContainerProperties().
bool fl_FrameLayout::m_bExpandHeight [private] |
Referenced by _lookupProperties().
bool fl_FrameLayout::m_bHasEndFrame [private] |
Referenced by bl_doclistener_insertEndFrame(), and doclistener_deleteEndFrame().
bool fl_FrameLayout::m_bIsOnPage [private] |
Referenced by format(), and getNewContainer().
bool fl_FrameLayout::m_bIsTightWrap [private] |
Referenced by _lookupMarginProperties(), _lookupProperties(), and setContainerProperties().
bool fl_FrameLayout::m_bNeedsFormat [private] |
Referenced by format(), and miniFormat().
bool fl_FrameLayout::m_bNeedsRebuild [private] |
UT_sint32 fl_FrameLayout::m_iBoundingSpace [private] |
Referenced by _lookupProperties(), and getBoundingSpace().
Referenced by _lookupMarginProperties(), and _lookupProperties().
FL_FrameType fl_FrameLayout::m_iFrameType [private] |
Referenced by _lookupProperties().
Referenced by _lookupMarginProperties(), _lookupProperties(), and setContainerProperties().
UT_sint32 fl_FrameLayout::m_iHeight [private] |
Referenced by _createFrameContainer(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iMinHeight [private] |
Referenced by _lookupProperties().
UT_sint32 fl_FrameLayout::m_iPrefColumn [private] |
Referenced by _lookupProperties(), and setContainerProperties().
UT_sint32 fl_FrameLayout::m_iPrefPage [private] |
Referenced by _lookupProperties(), and setContainerProperties().
UT_sint32 fl_FrameLayout::m_iWidth [private] |
Referenced by _createFrameContainer(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iXColumn [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iXpad [private] |
Referenced by _lookupProperties(), and setContainerProperties().
UT_sint32 fl_FrameLayout::m_iXPage [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iXpos [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iYColumn [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iYpad [private] |
Referenced by _lookupProperties(), and setContainerProperties().
UT_sint32 fl_FrameLayout::m_iYPage [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_FrameLayout::m_iYpos [private] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
Referenced by _lookupProperties(), and setContainerProperties().
Referenced by _lookupProperties(), and setContainerProperties().
Referenced by _lookupProperties(), and setContainerProperties().
Referenced by _lookupProperties(), and setContainerProperties().