#include <fl_SectionLayout.h>
fl_HdrFtrSectionLayout::fl_HdrFtrSectionLayout | ( | HdrFtrType | iHFType, | |
FL_DocLayout * | pLayout, | |||
fl_DocSectionLayout * | pDocSL, | |||
pf_Frag_Strux * | sdh, | |||
PT_AttrPropIndex | ap | |||
) |
References getDocSectionLayout(), m_iHFType, PTX_SectionHdrFtr, fl_Layout::setType(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
fl_HdrFtrSectionLayout::~fl_HdrFtrSectionLayout | ( | ) | [virtual] |
References fl_SectionLayout::_purgeLayout(), DELETEP, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), m_iHFType, m_pDocSL, m_pHdrFtrContainer, fl_SectionLayout::m_pLayout, m_vecPages, fl_SectionLayout::removeFromUpdate(), FL_DocLayout::removeHdrFtrSection(), fl_DocSectionLayout::setHdrFtr(), UT_VECTOR_PURGEALL, and xxx_UT_DEBUGMSG.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getPage(), and m_vecPages.
Referenced by addPage(), addValidPages(), deletePage(), findShadow(), and isPageHere().
void fl_HdrFtrSectionLayout::_localCollapse | ( | void | ) | [private] |
Just collapse the HdrFtrSectionLayout blocks for an insertBlock method. This removes all lines and references to containers but leaves the blocks and runs intact.
References fl_ContainerLayout::collapse(), fl_ContainerLayout::getFirstLayout(), and fl_ContainerLayout::getNext().
Referenced by collapse().
void fl_HdrFtrSectionLayout::_lookupMarginProperties | ( | const PP_AttrProp * | pAP | ) | [private, virtual] |
Reimplemented from fl_ContainerLayout.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_ContainerLayout::lookupMarginProperties(), and m_vecPages.
void fl_HdrFtrSectionLayout::_lookupProperties | ( | const PP_AttrProp * | pAP | ) | [private, virtual] |
this function is only to be called by fl_ContainerLayout::lookupProperties() all other code must call lookupProperties() instead
Implements fl_ContainerLayout.
void fl_HdrFtrSectionLayout::addPage | ( | fp_Page * | pPage | ) |
References _findShadow(), UT_GenericVector< T >::addItem(), deletePage(), FL_HDRFTR_FOOTER, PD_Document::getBounds(), getDocSectionLayout(), fl_ContainerLayout::getFirstLayout(), fp_Page::getHdrFtrP(), fp_ShadowContainer::getHdrFtrSectionLayout(), PD_Document::getNextStruxOfType(), fl_ContainerLayout::getPosition(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fl_Layout::m_apIndex, m_iHFType, fl_Layout::m_pDoc, fl_SectionLayout::m_pLayout, m_vecPages, markAllRunsDirty(), PTX_SectionHdrFtr, fp_Page::removeHdrFtr(), _PageHdrFtrShadowPair::setPage(), _PageHdrFtrShadowPair::setShadow(), PD_Document::tellListenerSubset(), UT_ASSERT, UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by fl_DocSectionLayout::addOwnedPage(), addValidPages(), fl_DocSectionLayout::prependOwnedFooterPage(), and fl_DocSectionLayout::prependOwnedHeaderPage().
void fl_HdrFtrSectionLayout::addValidPages | ( | void | ) |
This method adds valid pages to the collection of shadows.
References _findShadow(), addPage(), fl_SectionLayout::getDocLayout(), fl_DocSectionLayout::getFirstContainer(), fp_Container::getNext(), fp_Page::getOwningSection(), fp_Column::getPage(), and m_pDocSL.
Referenced by fl_DocSectionLayout::addValidPages(), and format().
bool fl_HdrFtrSectionLayout::bl_doclistener_changeFmtMark | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_FmtMarkChange * | pcrfmc | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_changeFmtMark(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_changeObject | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_ObjectChange * | pcroc | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_changeObject(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_changeSpan | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_SpanChange * | pcrsc | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_changeSpan(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_changeStrux | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_StruxChange * | pcrxc | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), doclistener_changeStrux(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_changeStrux(), fl_DocListener::change(), fl_CellLayout::doclistener_changeStrux(), and fl_TableLayout::doclistener_changeStrux().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteCellStrux | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Strux * | pcrx | |||
) |
Delete Just the cell struxes from the HdrFtr shadows
References doclistener_deleteStrux(), fl_HdrFtrShadow::findMatchingContainer(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, and UT_ASSERT.
Referenced by fl_CellLayout::doclistener_deleteStrux().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteFmtMark | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_FmtMark * | pcrfm | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_deleteFmtMark(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteObject | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Object * | pcro | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_deleteObject(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteSpan | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Span * | pcrs | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_deleteSpan(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteStrux | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Strux * | pcrx | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), doclistener_deleteStrux(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), and UT_ASSERT.
Referenced by fl_SectionLayout::bl_doclistener_deleteStrux(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_deleteTableStrux | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Strux * | pcrx | |||
) |
Delete Just the table struxes from the HdrFtr shadows
References doclistener_deleteStrux(), fl_HdrFtrShadow::findMatchingContainer(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, and UT_ASSERT.
Referenced by fl_TableLayout::doclistener_deleteStrux().
virtual bool fl_HdrFtrSectionLayout::bl_doclistener_insertBlock | ( | 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] |
Reimplemented from fl_SectionLayout.
Referenced by fl_SectionLayout::bl_doclistener_insertBlock(), and fl_DocListener::insertStrux().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertCell | ( | fl_ContainerLayout * | pCell, | |
const PX_ChangeRecord_Strux * | pcrx, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
fl_TableLayout * | pTL | |||
) |
Insert a cell into every table in the HdrFtr
References PD_Document::allowChangeInsPoint(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), and UT_DEBUGMSG.
Referenced by fl_TableLayout::bl_doclistener_insertCell().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertEndTable | ( | fl_ContainerLayout * | pTab, | |
const PX_ChangeRecord_Strux * | pcrx, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid | |||
) |
Insert an endTable cell into every table in the HdrFtr
References PD_Document::allowChangeInsPoint(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), and UT_DEBUGMSG.
Referenced by fl_TableLayout::bl_doclistener_insertEndTable().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertFirstBlock | ( | fl_ContainerLayout * | pCL, | |
const PX_ChangeRecord_Strux * | pcrx, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid | |||
) |
Insert the first block of the container in HdrFtr. We need to propage this to all the shadows.
References PD_Document::allowChangeInsPoint(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_HdrFtrShadow::findMatchingContainer(), PX_ChangeRecord::getIndexAP(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_ContainerLayout::insert(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), and UT_DEBUGMSG.
Referenced by fl_SectionLayout::bl_doclistener_insertBlock().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertFmtMark | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_FmtMark * | pcrfm | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_insertFmtMark(), fl_DocListener::change(), and fl_DocListener::populate().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertObject | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Object * | pcro | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_insertObject(), and fl_DocListener::change().
bool fl_HdrFtrSectionLayout::bl_doclistener_insertSection | ( | fl_ContainerLayout * | pBL, | |
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] |
bool fl_HdrFtrSectionLayout::bl_doclistener_insertSpan | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Span * | pcrs | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_insertSpan(), and fl_DocListener::change().
fl_SectionLayout * fl_HdrFtrSectionLayout::bl_doclistener_insertTable | ( | fl_ContainerLayout * | pBL, | |
SectionType | iType, | |||
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] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), fl_SectionLayout::checkAndAdjustCellSize(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), UT_ASSERT, and UT_DEBUGMSG.
fl_SectionLayout * fl_HdrFtrSectionLayout::bl_doclistener_insertTable | ( | SectionType | iType, | |
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] |
Insert a Table at the start of a HdrFtr
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), fl_SectionLayout::bl_doclistener_insertTable(), fl_SectionLayout::checkAndAdjustCellSize(), FL_SECTION_TABLE, PX_ChangeRecord::getIndexAP(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), _PageHdrFtrShadowPair::getShadow(), FL_DocLayout::getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_Layout::m_pDoc, fl_SectionLayout::m_pLayout, m_vecPages, PD_Document::setDontChangeInsPoint(), FV_View::setPoint(), FV_View::updateCarets(), and UT_DEBUGMSG.
bool fl_HdrFtrSectionLayout::bl_doclistener_populateObject | ( | fl_ContainerLayout * | pBL, | |
PT_BlockOffset | blockOffset, | |||
const PX_ChangeRecord_Object * | pcro | |||
) | [virtual] |
Now for all these methods which manipulate the shadow sections, turn off Insertion Point changes while the shadows are manipulated. Re Enabled insertion point changes for the overall hdrftrsection so it is changed just once.
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, and PD_Document::setDontChangeInsPoint().
Referenced by fl_SectionLayout::bl_doclistener_populateObject(), and fl_DocListener::populate().
bool fl_HdrFtrSectionLayout::bl_doclistener_populateSpan | ( | fl_ContainerLayout * | pBL, | |
const PX_ChangeRecord_Span * | pcrs, | |||
PT_BlockOffset | blockOffset, | |||
UT_uint32 | len | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References PD_Document::allowChangeInsPoint(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_Layout::m_pDoc, m_vecPages, PD_Document::setDontChangeInsPoint(), and UT_ASSERT.
Referenced by fl_SectionLayout::bl_doclistener_populateSpan(), and fl_DocListener::populate().
void fl_HdrFtrSectionLayout::changeIntoHdrFtrSection | ( | fl_DocSectionLayout * | pSL | ) |
This method converts a previously existing section to this header/footer. Code liberally stolen from fl_DocSectionLayout::doclistener_deleteStrux
fl_DocSectionLayout | * pSL sectionlayout to be converted to a HdrFtrSectionLayout |
References fl_ContainerLayout::add(), fl_ContainerLayout::collapse(), DELETEP, format(), fl_DocSectionLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), fl_DocSectionLayout::getPrevDocSection(), fl_SectionLayout::m_pLayout, fl_ContainerLayout::remove(), FL_DocLayout::removeSection(), setHdrFtr(), and UT_ASSERT.
Referenced by fl_DocListener::change().
void fl_HdrFtrSectionLayout::checkAndAdjustCellSize | ( | fl_ContainerLayout * | pCL | ) |
References fl_SectionLayout::checkAndAdjustCellSize(), findMatchingContainer(), fl_HdrFtrShadow::findMatchingContainer(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), and m_vecPages.
Referenced by fl_SectionLayout::bl_doclistener_changeFmtMark(), fl_SectionLayout::bl_doclistener_changeObject(), fl_SectionLayout::bl_doclistener_changeSpan(), fl_SectionLayout::bl_doclistener_changeStrux(), fl_SectionLayout::bl_doclistener_deleteFmtMark(), fl_SectionLayout::bl_doclistener_deleteObject(), fl_SectionLayout::bl_doclistener_deleteSpan(), fl_SectionLayout::bl_doclistener_deleteStrux(), fl_SectionLayout::bl_doclistener_insertBlock(), fl_SectionLayout::bl_doclistener_insertFmtMark(), fl_SectionLayout::bl_doclistener_insertObject(), and fl_SectionLayout::bl_doclistener_insertSpan().
void fl_HdrFtrSectionLayout::checkAndRemovePages | ( | void | ) |
This method checks that the pages in this header are valid and removes them if they're not.
References UT_GenericVector< T >::addItem(), deletePage(), fl_SectionLayout::getDocLayout(), getDocSectionLayout(), getHFType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getPage(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, markAllRunsDirty(), UT_ASSERT, and UT_continue_if_fail.
Referenced by fl_DocSectionLayout::checkAndRemovePages().
void fl_HdrFtrSectionLayout::clearScreen | ( | void | ) |
void fl_HdrFtrSectionLayout::collapse | ( | void | ) | [virtual] |
This method removes all the lines and containers associated with the shadows and the lines associated with this HdrFtrSectionLayout.
Implements fl_ContainerLayout.
References _localCollapse(), UT_GenericVector< T >::clear(), FV_View::clearHdrFtrEdit(), DELETEP, getHFType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getPage(), _PageHdrFtrShadowPair::getShadow(), FL_DocLayout::getView(), FV_View::isHdrFtrEdit(), m_pHdrFtrContainer, fl_SectionLayout::m_pLayout, m_vecPages, FV_View::rememberCurrentPosition(), fp_Page::removeHdrFtr(), and FV_View::warpInsPtToXY().
Referenced by fl_DocSectionLayout::collapse(), and doclistener_deleteStrux().
void fl_HdrFtrSectionLayout::collapseBlock | ( | fl_ContainerLayout * | pBlock | ) |
This method removes the block pBlock from all the shadowLayouts.
References fl_HdrFtrShadow::findMatchingContainer(), fl_HdrFtrShadow::format(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_SectionLayout::m_pLayout, m_vecPages, fl_ContainerLayout::remove(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by fl_SectionLayout::bl_doclistener_insertSection(), and fl_BlockLayout::doclistener_insertSection().
void fl_HdrFtrSectionLayout::deletePage | ( | fp_Page * | pPage | ) |
Removes the shadow and the corresponding element pointing to the shadow for this Page.
References _findShadow(), UT_GenericVector< T >::deleteNthItem(), fl_SectionLayout::getDocLayout(), getHFType(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getPage(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, UT_ASSERT, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by addPage(), checkAndRemovePages(), fl_DocSectionLayout::deleteOwnedPage(), and fp_Page::~fp_Page().
bool fl_HdrFtrSectionLayout::doclistener_changeStrux | ( | const PX_ChangeRecord_StruxChange * | pcrxc | ) | [virtual] |
Implements fl_SectionLayout.
References PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), fl_Layout::setAttrPropIndex(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by bl_doclistener_changeStrux().
bool fl_HdrFtrSectionLayout::doclistener_deleteStrux | ( | const PX_ChangeRecord * | pcr | ) |
Remove the strux identifing this as a seperate section has been deleted so we have to remove this HdrFtrSectionLayout class and all the shadow sections attached to it. The blocks in this class are moved to the DocSectionLayout associated with this class. I do this because I expect that this will be called as part on an undo "Insert Header" command. The rest of the undo needs blocks to delete so I'm putting them there to keep the rest of the undo code happy
pcr | the changerecord identifying this action as necesary. |
References fl_ContainerLayout::add(), collapse(), fl_DocSectionLayout::format(), fl_ContainerLayout::getFirstLayout(), PX_ChangeRecord_Strux::getStruxType(), PX_ChangeRecord::getType(), PX_ChangeRecord_StruxChange::isRevisionDelete(), m_iHFType, m_pDocSL, PX_ChangeRecord::PXT_DeleteStrux, fl_DocSectionLayout::setHdrFtr(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and UT_UNUSED.
Referenced by bl_doclistener_deleteCellStrux(), bl_doclistener_deleteStrux(), and bl_doclistener_deleteTableStrux().
fl_ContainerLayout * fl_HdrFtrSectionLayout::findMatchingContainer | ( | fl_ContainerLayout * | pBL | ) |
This routine returns the matching block within this HdrFtrSectionLayout of the shadow.
fl_ContainerLayout | * Pointer to block in shadow |
References fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), fl_Layout::getStruxDocHandle(), fl_ContainerLayout::myContainingLayout(), and UT_ASSERT.
Referenced by bl_doclistener_changeFmtMark(), bl_doclistener_changeObject(), bl_doclistener_changeSpan(), bl_doclistener_changeStrux(), bl_doclistener_deleteFmtMark(), bl_doclistener_deleteObject(), bl_doclistener_deleteSpan(), bl_doclistener_deleteStrux(), bl_doclistener_insertFmtMark(), bl_doclistener_insertObject(), bl_doclistener_insertSpan(), bl_doclistener_populateObject(), bl_doclistener_populateSpan(), and checkAndAdjustCellSize().
fl_HdrFtrShadow * fl_HdrFtrSectionLayout::findShadow | ( | fp_Page * | pPage | ) |
References _findShadow(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), and m_vecPages.
Referenced by fp_ShadowContainer::getShadow().
void fl_HdrFtrSectionLayout::format | ( | void | ) | [virtual] |
Format the overall HdrFtrSectionLayout in it's virtual container. Also check that all the correct pages have been found for this HdrFtr. Then format the Shadows.
Implements fl_ContainerLayout.
References addValidPages(), fl_HdrFtrShadow::format(), fl_ContainerLayout::getFirstLayout(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), layout(), localFormat(), and m_vecPages.
Referenced by fl_DocListener::change(), changeIntoHdrFtrSection(), fl_DocSectionLayout::formatAllHdrFtr(), and updateLayout().
fl_DocSectionLayout* fl_HdrFtrSectionLayout::getDocSectionLayout | ( | void | ) | const [inline, virtual] |
Reimplemented from fl_ContainerLayout.
Referenced by addPage(), checkAndRemovePages(), FV_View::cmdRemoveHdrFtr(), fl_HdrFtrSectionLayout(), fl_BlockLayout::getDocSectionLayout(), FV_View::getLeftRulerInfo(), FV_View::getTopRulerInfo(), fp_ShadowContainer::layout(), localFormat(), and AP_LeftRuler::mouseRelease().
fp_Container * fl_HdrFtrSectionLayout::getFirstContainer | ( | void | ) | const [virtual] |
Reimplemented from fl_ContainerLayout.
References m_pHdrFtrContainer.
fl_HdrFtrShadow * fl_HdrFtrSectionLayout::getFirstShadow | ( | void | ) |
HdrFtrType fl_HdrFtrSectionLayout::getHFType | ( | void | ) | const [inline] |
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback(), FV_View::_insertSectionBreak(), fl_DocSectionLayout::addOwnedPage(), checkAndRemovePages(), collapse(), deletePage(), fp_Page::getHdrFtrContainer(), FV_View::getLeftRulerInfo(), fp_ShadowContainer::layout(), AP_LeftRuler::mouseMotion(), AP_LeftRuler::mouseRelease(), fl_DocSectionLayout::prependOwnedFooterPage(), and fl_DocSectionLayout::prependOwnedHeaderPage().
fp_Container * fl_HdrFtrSectionLayout::getLastContainer | ( | void | ) | const [virtual] |
Reimplemented from fl_ContainerLayout.
References m_pHdrFtrContainer.
fp_Container * fl_HdrFtrSectionLayout::getNewContainer | ( | fp_Container * | pFirstContainer = NULL |
) | [virtual] |
Implements fl_SectionLayout.
References DELETEP, fl_DocSectionLayout::getFirstContainer(), fp_Container::getPage(), fp_Page::getWidth(), m_pDocSL, and m_pHdrFtrContainer.
virtual fl_SectionLayout* fl_HdrFtrSectionLayout::getSectionLayout | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
Referenced by fl_HdrFtrShadow::getSectionLayout().
bool fl_HdrFtrSectionLayout::isPageHere | ( | fp_Page * | pPage | ) |
References _findShadow().
Referenced by fl_DocSectionLayout::deleteOwnedPage(), and fp_Page::~fp_Page().
bool fl_HdrFtrSectionLayout::isPointInHere | ( | PT_DocPosition | pos | ) |
References PD_Document::getBounds(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), fl_Layout::m_pDoc, and PTX_Block.
Referenced by FL_DocLayout::findBlockAtPosition(), and FL_DocLayout::findBlockAtPositionReverse().
void fl_HdrFtrSectionLayout::layout | ( | void | ) |
Layout the overall HdrFtr and everything underneath it.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), fl_HdrFtrShadow::layout(), m_pHdrFtrContainer, and m_vecPages.
Referenced by format(), redrawUpdate(), and updateLayout().
void fl_HdrFtrSectionLayout::localFormat | ( | void | ) |
Just format the HdrFtrSectionLayout blocks for an insertBlock method. these blocks will be collapsed afterwards.
References fl_ContainerLayout::format(), fl_ContainerLayout::getContainerType(), getDocSectionLayout(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), setHdrFtr(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by format().
void fl_HdrFtrSectionLayout::markAllRunsDirty | ( | void | ) | [virtual] |
Mark all runs and lines in the all shadows for redraw.
Implements fl_SectionLayout.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, and fl_HdrFtrShadow::markAllRunsDirty().
Referenced by addPage(), checkAndRemovePages(), and fl_DocSectionLayout::markAllRunsDirty().
bool fl_HdrFtrSectionLayout::recalculateFields | ( | UT_uint32 | iUpdateCount | ) | [virtual] |
Reimplemented from fl_SectionLayout.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), m_vecPages, fl_SectionLayout::recalculateFields(), and UT_continue_if_fail.
void fl_HdrFtrSectionLayout::redrawUpdate | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References FL_DocLayout::findPage(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getPage(), _PageHdrFtrShadowPair::getShadow(), layout(), m_pHdrFtrContainer, fl_SectionLayout::m_pLayout, m_vecPages, and fl_HdrFtrShadow::redrawUpdate().
void fl_HdrFtrSectionLayout::setDocSectionLayout | ( | fl_DocSectionLayout * | pDSL | ) | [inline] |
Referenced by fl_DocListener::change(), and fl_BlockLayout::doclistener_insertSection().
void fl_HdrFtrSectionLayout::setHdrFtr | ( | HdrFtrType | iHFType | ) | [inline] |
void fl_HdrFtrSectionLayout::updateLayout | ( | bool | bDoFull | ) | [virtual] |
Implements fl_ContainerLayout.
References UT_GenericVector< T >::clear(), fl_ContainerLayout::format(), format(), fl_ContainerLayout::getFirstLayout(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getNext(), UT_GenericVector< T >::getNthItem(), _PageHdrFtrShadowPair::getShadow(), layout(), fl_SectionLayout::m_bNeedsReformat, m_pHdrFtrContainer, fl_SectionLayout::m_vecFormatLayout, m_vecPages, fl_ContainerLayout::needsReformat(), fl_SectionLayout::needsReformat(), and fl_HdrFtrShadow::updateLayout().
friend class fl_DocListener [friend] |
Reimplemented from fl_SectionLayout.
HdrFtrType fl_HdrFtrSectionLayout::m_iHFType [private] |
Referenced by addPage(), doclistener_deleteStrux(), fl_HdrFtrSectionLayout(), and ~fl_HdrFtrSectionLayout().
Referenced by addValidPages(), doclistener_deleteStrux(), getNewContainer(), and ~fl_HdrFtrSectionLayout().
Referenced by collapse(), getFirstContainer(), getLastContainer(), getNewContainer(), layout(), redrawUpdate(), updateLayout(), and ~fl_HdrFtrSectionLayout().
Referenced by _findShadow(), _lookupMarginProperties(), addPage(), bl_doclistener_changeFmtMark(), bl_doclistener_changeObject(), bl_doclistener_changeSpan(), bl_doclistener_changeStrux(), bl_doclistener_deleteCellStrux(), bl_doclistener_deleteFmtMark(), bl_doclistener_deleteObject(), bl_doclistener_deleteSpan(), bl_doclistener_deleteStrux(), bl_doclistener_deleteTableStrux(), bl_doclistener_insertCell(), bl_doclistener_insertEndTable(), bl_doclistener_insertFirstBlock(), bl_doclistener_insertFmtMark(), bl_doclistener_insertObject(), bl_doclistener_insertSection(), bl_doclistener_insertSpan(), bl_doclistener_insertTable(), bl_doclistener_populateObject(), bl_doclistener_populateSpan(), checkAndAdjustCellSize(), checkAndRemovePages(), clearScreen(), collapse(), collapseBlock(), deletePage(), findShadow(), format(), getFirstShadow(), layout(), markAllRunsDirty(), recalculateFields(), redrawUpdate(), updateLayout(), and ~fl_HdrFtrSectionLayout().