Kaydet (Commit) fc93c17a authored tarafından Michael Stahl's avatar Michael Stahl

sw: prefix SwTabFrm members

Change-Id: If2de38d23c5753e703517b5ef82d0f00070c2f34
üst 8599b29b
...@@ -36,43 +36,43 @@ class SwTabFrm: public SwLayoutFrm, public SwFlowFrm ...@@ -36,43 +36,43 @@ class SwTabFrm: public SwLayoutFrm, public SwFlowFrm
using SwFrm::GetLeaf; using SwFrm::GetLeaf;
SwLayoutFrm *GetLeaf( MakePageType eMakePage, bool bFwd ); SwLayoutFrm *GetLeaf( MakePageType eMakePage, bool bFwd );
SwTable* pTable; SwTable * m_pTable;
bool bComplete :1; /// Set entries for Repaint without needing to bool m_bComplete :1; /// Set entries for Repaint without needing to
/// set the base class' CompletePaint /// set the base class' CompletePaint
/// With that we would want to avoid unnecessary /// With that we would want to avoid unnecessary
/// table repaints /// table repaints
bool bCalcLowers :1; /// For stability of the content in MakeAll bool m_bCalcLowers :1; /// For stability of the content in MakeAll
bool bLowersFormatted :1; /// Communication between MakeAll and Layact bool m_bLowersFormatted :1; /// Communication between MakeAll and Layact
bool bLockBackMove :1; /// The Master took care of the BackMove test bool m_bLockBackMove :1; /// The Master took care of the BackMove test
bool bResizeHTMLTable :1; /// Call the Resize of the HTMLTableLayout in the MakeAll bool m_bResizeHTMLTable :1; /// Call the Resize of the HTMLTableLayout in the MakeAll
/// This is an optimization, so that we don't have to call /// This is an optimization, so that we don't have to call
/// it in CntntFrm::Grow; there it might be called for /// it in CntntFrm::Grow; there it might be called for
/// _every_ Cell /// _every_ Cell
bool bONECalcLowers :1; /// Primarily for the StarONE SS bool m_bONECalcLowers :1; /// Primarily for the StarONE SS
/// The Cntnts are formatted via Calc() on MakeAll in any /// The Cntnts are formatted via Calc() on MakeAll in any
/// case. There are no further invalidations and that path can /// case. There are no further invalidations and that path can
/// hardly give any guarantees /// hardly give any guarantees
bool bHasFollowFlowLine :1; /// Means that the first line in the follow bool m_bHasFollowFlowLine :1; /// Means that the first line in the follow
/// is indented to contain content from a broken /// is indented to contain content from a broken
/// cell /// cell
bool bIsRebuildLastLine :1; /// Means that currently the last line of the bool m_bIsRebuildLastLine :1; /// Means that currently the last line of the
/// TabFrame is rebuilt. In this case we do not /// TabFrame is rebuilt. In this case we do not
// want any notification to the master table // want any notification to the master table
bool bRestrictTableGrowth :1; // Usually, the table may grow infinitely, bool m_bRestrictTableGrowth :1; // Usually, the table may grow infinitely,
// as the table can be split in SwTabFrm::MakeAll // as the table can be split in SwTabFrm::MakeAll
// In MakeAll, this flag is set to indicate that // In MakeAll, this flag is set to indicate that
// the table may only grow inside its upper. This // the table may only grow inside its upper. This
// is necessary, in order to let the text flow into // is necessary, in order to let the text flow into
// the FollowFlowLine // the FollowFlowLine
bool bRemoveFollowFlowLinePending :1; bool m_bRemoveFollowFlowLinePending :1;
// #i26945# // #i26945#
bool bConsiderObjsForMinCellHeight :1; // Usually, the floating screen objects bool m_bConsiderObjsForMinCellHeight :1; // Usually, the floating screen objects
// are considered during the calculation // are considered during the calculation
// for the minimal cell height. // for the minimal cell height.
// For the splitting table rows algorithm // For the splitting table rows algorithm
...@@ -81,10 +81,10 @@ class SwTabFrm: public SwLayoutFrm, public SwFlowFrm ...@@ -81,10 +81,10 @@ class SwTabFrm: public SwLayoutFrm, public SwFlowFrm
// of the re-calculation of the // of the re-calculation of the
// last table row. // last table row.
// #i26945# // #i26945#
bool bObjsDoesFit :1; // For splitting table rows algorithm, this boolean bool m_bObjsDoesFit :1; // For splitting table rows algorithm, this boolean
// indicates, if the floating screen objects fits // indicates, if the floating screen objects fits
bool mbInRecalcLowerRow : 1; bool m_bInRecalcLowerRow : 1;
/** /**
* Split() splits the Frm at the specified position: a Follow is * Split() splits the Frm at the specified position: a Follow is
...@@ -137,63 +137,63 @@ public: ...@@ -137,63 +137,63 @@ public:
SwCntntFrm *FindLastCntnt(); SwCntntFrm *FindLastCntnt();
inline const SwCntntFrm *FindLastCntnt() const; inline const SwCntntFrm *FindLastCntnt() const;
const SwTable *GetTable() const { return pTable; } const SwTable *GetTable() const { return m_pTable; }
SwTable *GetTable() { return pTable; } SwTable *GetTable() { return m_pTable; }
bool IsComplete() { return bComplete; } bool IsComplete() { return m_bComplete; }
void SetComplete() { bComplete = true; } void SetComplete() { m_bComplete = true; }
void ResetComplete() { bComplete = false; } void ResetComplete() { m_bComplete = false; }
bool IsLowersFormatted() const { return bLowersFormatted; } bool IsLowersFormatted() const { return m_bLowersFormatted; }
void SetLowersFormatted( bool b ) { bLowersFormatted = b; } void SetLowersFormatted(bool b) { m_bLowersFormatted = b; }
void SetCalcLowers() { bCalcLowers = true; } // use rarely void SetCalcLowers() { m_bCalcLowers = true; } // use rarely
void SetResizeHTMLTable() { bResizeHTMLTable = true; } // same void SetResizeHTMLTable() { m_bResizeHTMLTable = true; } // same
void SetONECalcLowers() { bONECalcLowers = true; } void SetONECalcLowers() { m_bONECalcLowers = true; }
// Start: New stuff for breaking table rows // Start: New stuff for breaking table rows
bool HasFollowFlowLine() const { return bHasFollowFlowLine; } bool HasFollowFlowLine() const { return m_bHasFollowFlowLine; }
void SetFollowFlowLine( bool bNew ) { bHasFollowFlowLine = bNew; } void SetFollowFlowLine(bool bNew) { m_bHasFollowFlowLine = bNew; }
//return the SwTabFrm (if any) that this SwTabFrm is a follow flow line for //return the SwTabFrm (if any) that this SwTabFrm is a follow flow line for
SwTabFrm* GetFollowFlowLineFor(); SwTabFrm* GetFollowFlowLineFor();
bool IsRebuildLastLine() const { return bIsRebuildLastLine; } bool IsRebuildLastLine() const { return m_bIsRebuildLastLine; }
void SetRebuildLastLine( bool bNew ) { bIsRebuildLastLine = bNew; } void SetRebuildLastLine(bool bNew) { m_bIsRebuildLastLine = bNew; }
bool IsRestrictTableGrowth() const { return bRestrictTableGrowth; } bool IsRestrictTableGrowth() const { return m_bRestrictTableGrowth; }
void SetRestrictTableGrowth( bool bNew ) { bRestrictTableGrowth = bNew; } void SetRestrictTableGrowth( bool bNew ) { m_bRestrictTableGrowth = bNew; }
bool IsRemoveFollowFlowLinePending() const { return bRemoveFollowFlowLinePending; } bool IsRemoveFollowFlowLinePending() const { return m_bRemoveFollowFlowLinePending; }
void SetRemoveFollowFlowLinePending( bool bNew ) { bRemoveFollowFlowLinePending = bNew; } void SetRemoveFollowFlowLinePending(bool bNew) { m_bRemoveFollowFlowLinePending = bNew; }
bool IsInRecalcLowerRow() const bool IsInRecalcLowerRow() const
{ {
return mbInRecalcLowerRow; return m_bInRecalcLowerRow;
} }
void SetInRecalcLowerRow( bool bNew ) void SetInRecalcLowerRow( bool bNew )
{ {
mbInRecalcLowerRow = bNew; m_bInRecalcLowerRow = bNew;
} }
// #i26945# // #i26945#
bool IsConsiderObjsForMinCellHeight() const bool IsConsiderObjsForMinCellHeight() const
{ {
return bConsiderObjsForMinCellHeight; return m_bConsiderObjsForMinCellHeight;
} }
void SetConsiderObjsForMinCellHeight( bool _bNewConsiderObjsForMinCellHeight ) void SetConsiderObjsForMinCellHeight(bool const bConsiderObjsForMinCellHeight)
{ {
bConsiderObjsForMinCellHeight = _bNewConsiderObjsForMinCellHeight; m_bConsiderObjsForMinCellHeight = bConsiderObjsForMinCellHeight;
} }
// #i26945# // #i26945#
bool DoesObjsFit() const bool DoesObjsFit() const
{ {
return bObjsDoesFit; return m_bObjsDoesFit;
} }
void SetDoesObjsFit( bool _bNewObjsDoesFit ) void SetDoesObjsFit(bool const bObjsDoesFit)
{ {
bObjsDoesFit = _bNewObjsDoesFit; m_bObjsDoesFit = bObjsDoesFit;
} }
bool RemoveFollowFlowLine(); bool RemoveFollowFlowLine();
......
...@@ -1439,14 +1439,14 @@ void CalcCntnt( SwLayoutFrm *pLay, ...@@ -1439,14 +1439,14 @@ void CalcCntnt( SwLayoutFrm *pLay,
if ( pFrm->IsTabFrm() ) if ( pFrm->IsTabFrm() )
{ {
static_cast<SwTabFrm*>(pFrm)->bCalcLowers = true; static_cast<SwTabFrm*>(pFrm)->m_bCalcLowers = true;
// OD 26.08.2003 #i18103# - lock move backward of follow table, // OD 26.08.2003 #i18103# - lock move backward of follow table,
// if no section content is formatted or follow table belongs // if no section content is formatted or follow table belongs
// to the section, which content is formatted. // to the section, which content is formatted.
if ( static_cast<SwTabFrm*>(pFrm)->IsFollow() && if ( static_cast<SwTabFrm*>(pFrm)->IsFollow() &&
( !pSect || pSect == pFrm->FindSctFrm() ) ) ( !pSect || pSect == pFrm->FindSctFrm() ) )
{ {
static_cast<SwTabFrm*>(pFrm)->bLockBackMove = true; static_cast<SwTabFrm*>(pFrm)->m_bLockBackMove = true;
} }
} }
...@@ -1613,7 +1613,7 @@ void CalcCntnt( SwLayoutFrm *pLay, ...@@ -1613,7 +1613,7 @@ void CalcCntnt( SwLayoutFrm *pLay,
if ( pFrm->IsTabFrm() ) if ( pFrm->IsTabFrm() )
{ {
if ( static_cast<SwTabFrm*>(pFrm)->IsFollow() ) if ( static_cast<SwTabFrm*>(pFrm)->IsFollow() )
static_cast<SwTabFrm*>(pFrm)->bLockBackMove = false; static_cast<SwTabFrm*>(pFrm)->m_bLockBackMove = false;
} }
pFrm = bPrevInvalid ? pTmpPrev : pFrm->FindNext(); pFrm = bPrevInvalid ? pTmpPrev : pFrm->FindNext();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment