#include <fl_FootnoteLayout.h>
fl_EmbedLayout::fl_EmbedLayout | ( | FL_DocLayout * | pLayout, | |
fl_DocSectionLayout * | pDocSL, | |||
pf_Frag_Strux * | sdh, | |||
PT_AttrPropIndex | ap, | |||
fl_ContainerLayout * | pMyContainerLayout, | |||
SectionType | iSecType, | |||
fl_ContainerType | myType, | |||
PTStruxType | myStruxType | |||
) |
References fl_ContainerLayout::getContainerType(), m_pDocSL, and UT_ASSERT.
fl_EmbedLayout::~fl_EmbedLayout | ( | ) | [virtual] |
void fl_EmbedLayout::_purgeLayout | ( | void | ) | [protected, virtual] |
This method removes all layout structures contained by this layout structure.
Reimplemented from fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), and xxx_UT_DEBUGMSG.
Referenced by fl_AnnotationLayout::~fl_AnnotationLayout(), fl_EndnoteLayout::~fl_EndnoteLayout(), and fl_FootnoteLayout::~fl_FootnoteLayout().
bool fl_EmbedLayout::bl_doclistener_insertEndEmbed | ( | 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 fl_ContainerLayout::getFirstLayout(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), FL_DocLayout::getView(), FV_View::isActive(), FV_View::isPreview(), m_bHasEndFootnote, fl_SectionLayout::m_pLayout, fl_Layout::setEndStruxDocHandle(), FV_View::setPoint(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
Referenced by fl_DocListener::insertStrux().
virtual void fl_EmbedLayout::collapse | ( | void | ) | [pure virtual] |
Implements fl_ContainerLayout.
Implemented in fl_FootnoteLayout, fl_EndnoteLayout, and fl_AnnotationLayout.
Referenced by doclistener_changeStrux(), and doclistener_deleteStrux().
bool fl_EmbedLayout::doclistener_changeStrux | ( | const PX_ChangeRecord_StruxChange * | pcrxc | ) | [virtual] |
Implements fl_SectionLayout.
References collapse(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord::getType(), fl_Layout::setAttrPropIndex(), and UT_ASSERT.
bool fl_EmbedLayout::doclistener_deleteEndEmbed | ( | const PX_ChangeRecord_Strux * | pcrx | ) | [virtual] |
This signals an incomplete footnote section.
References m_bHasEndFootnote.
bool fl_EmbedLayout::doclistener_deleteStrux | ( | const PX_ChangeRecord_Strux * | pcrx | ) | [virtual] |
References collapse(), FL_DocLayout::findBlockAtPosition(), getOldSize(), PX_ChangeRecord::getPosition(), fl_ContainerLayout::getPrev(), getSectionLayout(), PX_ChangeRecord::getType(), FL_DocLayout::getView(), m_bHasEndFootnote, fl_SectionLayout::m_pLayout, fl_ContainerLayout::remove(), fl_ContainerLayout::setNeedsReformat(), FV_View::setPoint(), fl_BlockLayout::updateOffsets(), and UT_ASSERT.
virtual void fl_EmbedLayout::format | ( | void | ) | [pure virtual] |
Implements fl_ContainerLayout.
Implemented in fl_FootnoteLayout, fl_EndnoteLayout, and fl_AnnotationLayout.
Referenced by updateLayout().
fl_BlockLayout * fl_EmbedLayout::getContainingBlock | ( | void | ) |
Return the block that contains this Embedded layout
References fl_ContainerLayout::getContainerType(), getDocPosition(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), and fl_ContainerLayout::getPrevBlockInDocument().
Referenced by FL_DocLayout::collapseAnnotations(), and FV_View::countWords().
PT_DocPosition fl_EmbedLayout::getDocPosition | ( | void | ) |
Returns the position in the document of the PTX_SectionFootnote strux This is very useful for determining the value of the footnote reference and anchor.
References FL_DocLayout::getDocument(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fl_SectionLayout::m_pLayout, and UT_return_val_if_fail.
Referenced by fl_AnnotationLayout::_insertAnnotationContainer(), fl_FootnoteLayout::_insertFootnoteContainer(), Defun1(), fp_Line::getAnnotationContainers(), fl_AnnotationLayout::getAnnotationRun(), FV_View::getClosestAnnotation(), FV_View::getClosestEndnote(), FV_View::getClosestFootnote(), getContainingBlock(), FL_DocLayout::getEndnoteVal(), fp_Line::getFootnoteContainers(), FL_DocLayout::getFootnoteVal(), getLength(), FV_View::isInAnnotation(), FV_View::isInEndnote(), and FV_View::isInFootnote().
fl_DocSectionLayout* fl_EmbedLayout::getDocSectionLayout | ( | void | ) | const [inline, virtual] |
Reimplemented from fl_ContainerLayout.
Referenced by fl_EndnoteLayout::format(), FL_DocLayout::getDocSecForEndnote(), FL_DocLayout::getEndnoteVal(), and FL_DocLayout::getFootnoteVal().
UT_uint32 fl_EmbedLayout::getLength | ( | void | ) |
This method returns the length of the footnote. This is such that getDocPosition() + getLength() is one value beyond the the EndFootnote strux
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, fl_ContainerLayout::getContainerType(), getDocPosition(), FL_DocLayout::getDocument(), PD_Document::getNextStruxOfType(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fl_SectionLayout::m_pLayout, PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, UT_ASSERT, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by FV_View::_deleteHyperlink(), FV_View::_deleteSelection(), FV_View::_setPoint(), FV_View::cmdCharDelete(), Defun1(), FV_View::isInAnnotation(), FV_View::isInEndnote(), and FV_View::isInFootnote().
virtual fp_Container* fl_EmbedLayout::getNewContainer | ( | fp_Container * | = NULL |
) | [pure virtual] |
Implements fl_SectionLayout.
Implemented in fl_FootnoteLayout, fl_EndnoteLayout, and fl_AnnotationLayout.
UT_sint32 fl_EmbedLayout::getOldSize | ( | void | ) | const [inline] |
Referenced by doclistener_deleteStrux(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
fl_SectionLayout * fl_EmbedLayout::getSectionLayout | ( | void | ) | const [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::getContainerType(), and fl_ContainerLayout::myContainingLayout().
Referenced by doclistener_deleteStrux(), and setNeedsReformat().
bool fl_EmbedLayout::isEndFootnoteIn | ( | void | ) | const [inline] |
void fl_EmbedLayout::markAllRunsDirty | ( | void | ) | [virtual] |
Implements fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), and fl_ContainerLayout::markAllRunsDirty().
Referenced by fp_Page::removeAnnotationContainer(), and fp_Page::removeFootnoteContainer().
bool fl_EmbedLayout::recalculateFields | ( | UT_uint32 | iUpdateCount | ) | [virtual] |
Reimplemented from fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), and fl_ContainerLayout::recalculateFields().
void fl_EmbedLayout::redrawUpdate | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), fl_ContainerLayout::needsRedraw(), and fl_ContainerLayout::redrawUpdate().
Referenced by fl_DocSectionLayout::redrawUpdate().
void fl_EmbedLayout::setDocSectionLayout | ( | fl_DocSectionLayout * | pDSL | ) | [inline] |
void fl_EmbedLayout::setFootnoteEndIn | ( | void | ) | [inline] |
Referenced by fl_DocListener::populateStrux().
void fl_EmbedLayout::setNeedsReformat | ( | fl_ContainerLayout * | pCL, | |
UT_uint32 | offset = 0 | |||
) | [virtual] |
Reimplemented from fl_SectionLayout.
References getSectionLayout(), fl_SectionLayout::m_bNeedsReformat, and fl_SectionLayout::setNeedsReformat().
void fl_EmbedLayout::setOldSize | ( | UT_sint32 | i | ) | [inline] |
Referenced by fl_BlockLayout::updateEnclosingBlockIfNeeded().
void fl_EmbedLayout::updateLayout | ( | void | ) | [virtual] |
void fl_EmbedLayout::updateLayout | ( | bool | bDoAll | ) | [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::format(), fl_ContainerLayout::getFirstLayout(), and fl_ContainerLayout::getNext().
friend class fl_DocListener [friend] |
Reimplemented from fl_SectionLayout.
Reimplemented in fl_FootnoteLayout, fl_EndnoteLayout, and fl_AnnotationLayout.
friend class fp_FootnoteContainer [friend] |
Reimplemented in fl_FootnoteLayout.
bool fl_EmbedLayout::m_bHasEndFootnote [private] |
Referenced by bl_doclistener_insertEndEmbed(), doclistener_deleteEndEmbed(), and doclistener_deleteStrux().
bool fl_EmbedLayout::m_bIsOnPage [protected] |
Referenced by fl_AnnotationLayout::_insertAnnotationContainer(), fl_EndnoteLayout::_insertEndnoteContainer(), fl_FootnoteLayout::_insertFootnoteContainer(), fl_EndnoteLayout::collapse(), fl_AnnotationLayout::collapse(), fl_EndnoteLayout::format(), fl_AnnotationLayout::format(), fl_FootnoteLayout::format(), fl_EndnoteLayout::getNewContainer(), fl_AnnotationLayout::getNewContainer(), and fl_FootnoteLayout::getNewContainer().
bool fl_EmbedLayout::m_bNeedsFormat [protected] |
bool fl_EmbedLayout::m_bNeedsRebuild [protected] |
UT_sint32 fl_EmbedLayout::m_iOldSize [private] |
fl_DocSectionLayout* fl_EmbedLayout::m_pDocSL [private] |
Referenced by fl_EmbedLayout().