fl_CellLayout Class Reference

#include <fl_TableLayout.h>

Inheritance diagram for fl_CellLayout:

fl_SectionLayout fl_ContainerLayout fl_Layout

List of all members.

Public Member Functions

 fl_CellLayout (FL_DocLayout *pLayout, PL_StruxDocHandle sdh, PT_AttrPropIndex ap, fl_ContainerLayout *pMyContainerLayout)
virtual ~fl_CellLayout ()
bool isCellSelected (void)
void checkAndAdjustCellSize (void)
virtual bool doclistener_changeStrux (const PX_ChangeRecord_StruxChange *pcrxc)
virtual bool doclistener_deleteStrux (const PX_ChangeRecord_Strux *pcrx)
virtual bool bl_doclistener_insertCell (fl_ContainerLayout *pCell, const PX_ChangeRecord_Strux *pcrx, PL_StruxDocHandle sdh, PL_ListenerId lid, void(*pfnBindHandles)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew))
virtual bool bl_doclistener_insertEndCell (fl_ContainerLayout *, const PX_ChangeRecord_Strux *pcrx, PL_StruxDocHandle sdh, PL_ListenerId lid, void(*pfnBindHandles)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew))
void setCellContainerProperties (fp_CellContainer *pCell)
void createCellContainer (void)
virtual void format (void)
virtual void updateLayout (bool bDoFull)
virtual void collapse (void)
bool isLayedOut (void) const
bool isDoingFormat (void) const
virtual bool needsReformat (void) const
virtual void markAllRunsDirty (void)
virtual fl_SectionLayoutgetSectionLayout (void) const
bool recalculateFields (UT_uint32 iUpdateCount)
virtual void redrawUpdate (void)
virtual fp_ContainergetNewContainer (fp_Container *pFirstContainer=NULL)
UT_uint32 getLength (void)
UT_sint32 getLeftOffset (void) const
UT_sint32 getRightOffset (void) const
UT_sint32 getTopOffset (void) const
UT_sint32 getBottomOffset (void) const
UT_sint32 getNumNestedTables (void) const
void incNumNestedTables (void)
void decNumNestedTables (void)
UT_sint32 getLeftAttach (void) const
UT_sint32 getRightAttach (void) const
UT_sint32 getTopAttach (void) const
UT_sint32 getBottomAttach (void) const
UT_sint32 getCellHeight (void) const
UT_sint32 getCellWidth (void) const

Protected Member Functions

virtual void _lookupProperties (const PP_AttrProp *pAP)
virtual void _purgeLayout (void)

Private Member Functions

void _updateCell (void)
void _localCollapse ()

Private Attributes

bool m_bNeedsRebuild
UT_sint32 m_iLeftOffset
double m_dLeftOffsetUserUnits
UT_sint32 m_iRightOffset
double m_dRightOffsetUserUnits
UT_sint32 m_iTopOffset
double m_dTopOffsetUserUnits
UT_sint32 m_iBottomOffset
double m_dBottomOffsetUserUnits
UT_sint32 m_iLeftAttach
UT_sint32 m_iRightAttach
UT_sint32 m_iTopAttach
UT_sint32 m_iBottomAttach
bool m_bCellPositionedOnPage
UT_sint32 m_iCellHeight
UT_sint32 m_iCellWidth
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_iNumNestedTables
bool m_bDoingFormat

Friends

class fl_DocListener
class fp_TableContainer
class fp_CellContainer


Constructor & Destructor Documentation

fl_CellLayout::fl_CellLayout ( FL_DocLayout pLayout,
PL_StruxDocHandle  sdh,
PT_AttrPropIndex  ap,
fl_ContainerLayout pMyContainerLayout 
)

References createCellContainer().

fl_CellLayout::~fl_CellLayout (  )  [virtual]


Member Function Documentation

bool fl_CellLayout::isCellSelected ( void   ) 

void fl_CellLayout::checkAndAdjustCellSize ( void   ) 

This method measures the cell height and compares it to the previously measured height. If they disagree update the layout of the table.

Reimplemented from fl_SectionLayout.

References fl_ContainerLayout::format(), fl_ContainerLayout::getFirstContainer(), _fp_Requisition::height, m_iCellHeight, m_iCellWidth, fl_ContainerLayout::myContainingLayout(), fp_CellContainer::setHeight(), fp_CellContainer::sizeRequest(), _fp_Requisition::width, and xxx_UT_DEBUGMSG.

Referenced by fl_SectionLayout::checkAndAdjustCellSize(), and format().

bool fl_CellLayout::doclistener_changeStrux ( const PX_ChangeRecord_StruxChange pcrxc  )  [virtual]

bool fl_CellLayout::doclistener_deleteStrux ( const PX_ChangeRecord_Strux pcrx  )  [virtual]

bool fl_CellLayout::bl_doclistener_insertCell ( fl_ContainerLayout pCell,
const PX_ChangeRecord_Strux pcrx,
PL_StruxDocHandle  sdh,
PL_ListenerId  lid,
void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew)  pfnBindHandles 
) [virtual]

bool fl_CellLayout::bl_doclistener_insertEndCell ( fl_ContainerLayout ,
const PX_ChangeRecord_Strux pcrx,
PL_StruxDocHandle  sdh,
PL_ListenerId  lid,
void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew)  pfnBindHandles 
) [virtual]

void fl_CellLayout::setCellContainerProperties ( fp_CellContainer pCell  ) 

void fl_CellLayout::createCellContainer ( void   ) 

void fl_CellLayout::format ( void   )  [virtual]

void fl_CellLayout::updateLayout ( bool  bDoFull  )  [virtual]

void fl_CellLayout::collapse ( void   )  [virtual]

bool fl_CellLayout::isLayedOut ( void   )  const

bool fl_CellLayout::isDoingFormat ( void   )  const

References m_bDoingFormat.

Referenced by fl_BlockLayout::format().

bool fl_CellLayout::needsReformat ( void   )  const [virtual]

void fl_CellLayout::markAllRunsDirty ( void   )  [virtual]

fl_SectionLayout * fl_CellLayout::getSectionLayout ( void   )  const [virtual]

bool fl_CellLayout::recalculateFields ( UT_uint32  iUpdateCount  )  [virtual]

void fl_CellLayout::redrawUpdate ( void   )  [virtual]

fp_Container * fl_CellLayout::getNewContainer ( fp_Container pPrev = NULL  )  [virtual]

Create a new Cell containers and plug it into the linked list of Cell containers.

Parameters:
If pPrevCell is non-null place the new cell after this in the linked list, otherwise just append it to the end.
Returns:
The newly created Cell container

Implements fl_SectionLayout.

References createCellContainer(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), setCellContainerProperties(), and UT_ASSERT.

Referenced by format().

UT_uint32 fl_CellLayout::getLength ( void   ) 

Return the total length of the cell including nested tables. This length includes the cell and endcell struxs so if you add it to the position of the cell strux you will get the first position past the endcell strux

References PD_Document::getBounds(), PD_Document::getEndCellStruxFromCellSDH(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), and fl_Layout::m_pDoc.

Referenced by FV_VisualDragText::getImageFromSelection().

UT_sint32 fl_CellLayout::getLeftOffset ( void   )  const

References m_iLeftOffset.

UT_sint32 fl_CellLayout::getRightOffset ( void   )  const

References m_iRightOffset.

UT_sint32 fl_CellLayout::getTopOffset ( void   )  const

References m_iTopOffset.

UT_sint32 fl_CellLayout::getBottomOffset ( void   )  const

References m_iBottomOffset.

UT_sint32 fl_CellLayout::getNumNestedTables ( void   )  const

void fl_CellLayout::incNumNestedTables ( void   ) 

void fl_CellLayout::decNumNestedTables ( void   ) 

UT_sint32 fl_CellLayout::getLeftAttach ( void   )  const [inline]

UT_sint32 fl_CellLayout::getRightAttach ( void   )  const [inline]

UT_sint32 fl_CellLayout::getTopAttach ( void   )  const [inline]

UT_sint32 fl_CellLayout::getBottomAttach ( void   )  const [inline]

UT_sint32 fl_CellLayout::getCellHeight ( void   )  const [inline]

UT_sint32 fl_CellLayout::getCellWidth ( void   )  const [inline]

void fl_CellLayout::_lookupProperties ( const PP_AttrProp pSectionAP  )  [protected, virtual]

void fl_CellLayout::_purgeLayout ( void   )  [protected, virtual]

This method removes all layout structures contained by this layout structure.

Reimplemented from fl_SectionLayout.

References fl_ContainerLayout::getFirstLayout(), and fl_ContainerLayout::getNext().

Referenced by ~fl_CellLayout().

void fl_CellLayout::_updateCell ( void   )  [private]

void fl_CellLayout::_localCollapse ( void   )  [private]


Friends And Related Function Documentation

friend class fl_DocListener [friend]

Reimplemented from fl_SectionLayout.

friend class fp_TableContainer [friend]

friend class fp_CellContainer [friend]

Referenced by createCellContainer().


Member Data Documentation

Referenced by _lookupProperties().

Referenced by _lookupProperties().

Referenced by _lookupProperties().

Referenced by _lookupProperties().

Referenced by format(), and isDoingFormat().


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

Generated on Mon Sep 8 00:06:53 2008 for AbiWord by  doxygen 1.5.5