Public Member Functions | Private Member Functions | Private Attributes | Friends

fl_FrameLayout Class Reference

#include <fl_FrameLayout.h>

Inheritance diagram for fl_FrameLayout:
fl_SectionLayout fl_ContainerLayout fl_Layout

List of all members.

Public Member Functions

 fl_FrameLayout (FL_DocLayout *pLayout, pf_Frag_Strux *sdh, PT_AttrPropIndex ap, fl_ContainerLayout *pMyContainerLayout)
virtual ~fl_FrameLayout ()
virtual bool doclistener_changeStrux (const PX_ChangeRecord_StruxChange *pcrxc)
virtual bool doclistener_deleteStrux (const PX_ChangeRecord_Strux *pcrx)
virtual bool doclistener_deleteEndFrame (const PX_ChangeRecord_Strux *pcrx)
virtual bool bl_doclistener_insertEndFrame (fl_ContainerLayout *, const PX_ChangeRecord_Strux *pcrx, pf_Frag_Strux *sdh, PL_ListenerId lid, void(*pfnBindHandles)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew))
bool insertBlockAfter (fl_ContainerLayout *pCL, const PX_ChangeRecord_Strux *pcrx, pf_Frag_Strux *sdh, PL_ListenerId lid, void(*pfnBindHandles)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew))
void miniFormat (void)
virtual void format (void)
virtual void updateLayout (bool bDoFull)
virtual void collapse (void)
void localCollapse ()
virtual void markAllRunsDirty (void)
virtual fl_SectionLayoutgetSectionLayout (void) const
bool recalculateFields (UT_uint32 iUpdateCount)
virtual void redrawUpdate (void)
virtual fp_ContainergetNewContainer (fp_Container *=NULL)
PT_DocPosition getDocPosition (void)
UT_uint32 getLength (void)
virtual void setNeedsReformat (fl_ContainerLayout *pCL, UT_uint32 offset=0)
void setContainerProperties (void)
UT_sint32 getBoundingSpace (void) const
FL_FrameType getFrameType (void) const
FL_FrameFormatMode getFramePositionTo (void) const
FL_FrameWrapMode getFrameWrapMode (void) const
UT_sint32 getFrameWidth (void) const
UT_sint32 getFrameHeight (void) const
UT_sint32 getFrameXpos (void) const
UT_sint32 getFrameYpos (void) const
UT_sint32 getFrameXColpos (void) const
UT_sint32 getFrameYColpos (void) const
UT_sint32 getFrameXPagepos (void) const
UT_sint32 getFrameYPagepos (void) const
void setFrameWidth (UT_sint32 iW)
void setFrameHeight (UT_sint32 iH)
void setFrameXpos (UT_sint32 iX)
void setFrameYpos (UT_sint32 iY)
bool isEndFrameIn (void) const
bool isTightWrap (void)
bool expandHeight (void) const
UT_sint32 minHeight (void) const
fl_ContainerLayoutgetParentContainer (void) const
void setParentContainer (fl_ContainerLayout *pCon)

Private Member Functions

virtual void _lookupProperties (const PP_AttrProp *pAP)
virtual void _lookupMarginProperties (const PP_AttrProp *pAP)
void _purgeLayout (void)
void _createFrameContainer (void)
void _insertFrameContainer (fp_Container *pNewFC)

Private Attributes

FL_FrameType m_iFrameType
FL_FrameFormatMode m_iFramePositionTo
bool m_bNeedsRebuild
bool m_bNeedsFormat
bool m_bIsOnPage
bool m_bHasEndFrame
PP_PropertyMap::Background m_background
PP_PropertyMap::Line m_lineBottom
PP_PropertyMap::Line m_lineLeft
PP_PropertyMap::Line m_lineRight
PP_PropertyMap::Line m_lineTop
UT_sint32 m_iWidth
UT_sint32 m_iHeight
UT_sint32 m_iXpos
UT_sint32 m_iYpos
UT_sint32 m_iXpad
UT_sint32 m_iYpad
UT_sint32 m_iXColumn
UT_sint32 m_iYColumn
UT_sint32 m_iXPage
UT_sint32 m_iYPage
UT_sint32 m_iBoundingSpace
FL_FrameWrapMode m_iFrameWrapMode
bool m_bIsTightWrap
UT_sint32 m_iPrefPage
UT_sint32 m_iPrefColumn
bool m_bExpandHeight
UT_sint32 m_iMinHeight


class fl_DocListener
class fp_FrameContainer

Constructor & Destructor Documentation

fl_FrameLayout::fl_FrameLayout ( FL_DocLayout pLayout,
pf_Frag_Strux sdh,
PT_AttrPropIndex  ap,
fl_ContainerLayout pMyContainerLayout 

Member Function Documentation

void fl_FrameLayout::_insertFrameContainer ( fp_Container pNewFC  )  [private]
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::doclistener_deleteEndFrame ( const PX_ChangeRecord_Strux pcrx  )  [virtual]

This signals an incomplete frame section.

References m_bHasEndFrame.

bool fl_FrameLayout::expandHeight ( void   )  const [inline]
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]
UT_sint32 fl_FrameLayout::getFrameWidth ( void   )  const [inline]
FL_FrameWrapMode fl_FrameLayout::getFrameWrapMode ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameXColpos ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameXPagepos ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameXpos ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameYColpos ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameYPagepos ( void   )  const [inline]
UT_sint32 fl_FrameLayout::getFrameYpos ( void   )  const [inline]
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.
The newly created Frame container

Implements fl_SectionLayout.

References _createFrameContainer(), fl_ContainerLayout::getLastContainer(), m_bIsOnPage, and UT_DEBUGMSG.

Referenced by format().

fl_SectionLayout * fl_FrameLayout::getSectionLayout ( void   )  const [virtual]
bool fl_FrameLayout::isEndFrameIn ( void   )  const [inline]
bool fl_FrameLayout::isTightWrap ( void   )  [inline]

Referenced by Defun1().

void fl_FrameLayout::markAllRunsDirty ( void   )  [virtual]
UT_sint32 fl_FrameLayout::minHeight ( void   )  const [inline]
void fl_FrameLayout::setContainerProperties ( void   ) 
void fl_FrameLayout::setFrameHeight ( UT_sint32  iH  )  [inline]
void fl_FrameLayout::setFrameWidth ( UT_sint32  iW  )  [inline]
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]
void fl_FrameLayout::setParentContainer ( fl_ContainerLayout pCon  )  [inline]

Friends And Related Function Documentation

friend class fl_DocListener [friend]

Reimplemented from fl_SectionLayout.

friend class fp_FrameContainer [friend]

Referenced by _createFrameContainer().

Member Data Documentation

Referenced by format(), and getNewContainer().

Referenced by format(), and miniFormat().

The documentation for this class was generated from the following files: