summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-06 16:15:19 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-06 17:28:11 +0200
commit73d2f7d696e3300237b540acfaee289a444341d7 (patch)
tree1c073dd362ba9e52337cf8adc5d61e61ba0955f8
parenta07505865b624b9c9fc5a33e7604ba982302c794 (diff)
SwCrsrShell: rename member variables missing their prefix
Change-Id: Id1720a55bf7984e2b1316fbfadb0d12ae7fd6b4d
-rw-r--r--sw/inc/crsrsh.hxx188
-rw-r--r--sw/source/core/crsr/callnk.cxx4
-rw-r--r--sw/source/core/crsr/crsrsh.cxx1039
-rw-r--r--sw/source/core/crsr/crstrvl.cxx274
-rw-r--r--sw/source/core/crsr/crstrvl1.cxx14
-rw-r--r--sw/source/core/crsr/trvlcol.cxx10
-rw-r--r--sw/source/core/crsr/trvlfnfl.cxx12
-rw-r--r--sw/source/core/crsr/trvlreg.cxx4
-rw-r--r--sw/source/core/crsr/trvltbl.cxx146
-rw-r--r--sw/source/core/crsr/viscrs.cxx22
-rw-r--r--sw/source/core/frmedt/tblsel.cxx4
11 files changed, 859 insertions, 858 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index dcceba310d55..4f9d783da7f5 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -164,36 +164,36 @@ public:
private:
- SwRect aCharRect; ///< Char-SRectangle on which the cursor is located
- Point aCrsrHeight; ///< height & offset from visible Cursor
- Point aOldRBPos; ///< Right/Bottom of last VisArea
+ SwRect m_aCharRect; ///< Char-SRectangle on which the cursor is located
+ Point m_aCrsrHeight; ///< height & offset from visible Cursor
+ Point m_aOldRBPos; ///< Right/Bottom of last VisArea
// (used in Invalidate by Cursor)
- Link aFlyMacroLnk; /**< Link will be called, if the Crsr is set
+ Link m_aFlyMacroLnk; /**< Link will be called, if the Crsr is set
into a fly. A macro can be then becalled */
- Link aChgLnk; /**< link will be called by every attribut/
+ Link m_aChgLnk; /**< link will be called by every attribut/
format changes at cursor position.*/
- Link aGrfArrivedLnk; ///< Link calls to UI if a graphic is arrived
+ Link m_aGrfArrivedLnk; ///< Link calls to UI if a graphic is arrived
- SwShellCrsr* pCurCrsr; ///< current cursor
- SwShellCrsr* pCrsrStk; ///< stack for the cursor
- SwVisCrsr *pVisCrsr; ///< the visible cursor
+ SwShellCrsr* m_pCurCrsr; ///< current cursor
+ SwShellCrsr* m_pCrsrStk; ///< stack for the cursor
+ SwVisCrsr *m_pVisCrsr; ///< the visible cursor
- IBlockCursor *pBlockCrsr; ///< interface of cursor for block (=rectangular) selection
+ IBlockCursor *m_pBlockCrsr; ///< interface of cursor for block (=rectangular) selection
- SwShellTableCrsr* pTblCrsr; /**< table Crsr; only in tables when the
+ SwShellTableCrsr* m_pTblCrsr; /**< table Crsr; only in tables when the
selection lays over 2 columns */
- SwNodeIndex* pBoxIdx; ///< for recognizing of the changed
- SwTableBox* pBoxPtr; ///< table row
+ SwNodeIndex* m_pBoxIdx; ///< for recognizing of the changed
+ SwTableBox* m_pBoxPtr; ///< table row
- long nUpDownX; /**< try to move the cursor on up/down always
+ long m_nUpDownX; /**< try to move the cursor on up/down always
in the same column */
- long nLeftFrmPos;
- sal_uLong nAktNode; // save CursorPos at Start-Action
- xub_StrLen nAktCntnt;
- sal_uInt16 nAktNdTyp;
- bool bAktSelection;
+ long m_nLeftFrmPos;
+ sal_uLong m_nAktNode; // save CursorPos at Start-Action
+ xub_StrLen m_nAktCntnt;
+ sal_uInt16 m_nAktNdTyp;
+ bool m_bAktSelection;
/*
* Via the Method SttCrsrMove and EndCrsrMove this counter gets
@@ -201,36 +201,36 @@ private:
* current Cursor gets no update. This way, "complicated" cursor movements
* (via Find()) can be realised.
*/
- sal_uInt16 nCrsrMove;
- sal_uInt16 nBasicActionCnt; ///< Actions which are parenthesized by Basic
- CrsrMoveState eMvState; ///< Status for Crsr-Travelling - GetCrsrOfst
+ sal_uInt16 m_nCrsrMove;
+ sal_uInt16 m_nBasicActionCnt; ///< Actions which are parenthesized by Basic
+ CrsrMoveState m_eMvState; ///< Status for Crsr-Travelling - GetCrsrOfst
- String sMarkedListId;
- int nMarkedListLevel;
+ String m_sMarkedListId;
+ int m_nMarkedListLevel;
- sal_Bool bHasFocus : 1; ///< Shell is "active" in a window
- sal_Bool bSVCrsrVis : 1; ///< SV-Cursor visible/invisible
- sal_Bool bChgCallFlag : 1; ///< attribute change inside Start- and EndAction
- sal_Bool bVisPortChgd : 1; ///< in VisPortChg-Call
+ sal_Bool m_bHasFocus : 1; ///< Shell is "active" in a window
+ sal_Bool m_bSVCrsrVis : 1; ///< SV-Cursor visible/invisible
+ sal_Bool m_bChgCallFlag : 1; ///< attribute change inside Start- and EndAction
+ sal_Bool m_bVisPortChgd : 1; ///< in VisPortChg-Call
// (used in Invalidate by the Cursor)
- sal_Bool bCallChgLnk : 1; ///< flag for derived classes
+ sal_Bool m_bCallChgLnk : 1; ///< flag for derived classes
// TRUE -> call ChgLnk
// access only via SwChgLinkFlag
- sal_Bool bAllProtect : 1; ///< Flag for areas
+ sal_Bool m_bAllProtect : 1; ///< Flag for areas
// TRUE -> everything protected / hidden
- sal_Bool bInCMvVisportChgd : 1; ///< Flag for CrsrMoves
+ sal_Bool m_bInCMvVisportChgd : 1; ///< Flag for CrsrMoves
// TRUE -> view was moved
- sal_Bool bGCAttr : 1; // TRUE -> non expanded attributes exist.
- sal_Bool bIgnoreReadonly : 1; // TRUE -> make the cursor visible on next
+ sal_Bool m_bGCAttr : 1; // TRUE -> non expanded attributes exist.
+ sal_Bool m_bIgnoreReadonly : 1; // TRUE -> make the cursor visible on next
// EndAction in spite of Readonly
- sal_Bool bSelTblCells : 1; // TRUE -> select cells over the InputWin
- sal_Bool bAutoUpdateCells : 1; // TRUE -> autoformat cells
- sal_Bool bBasicHideCrsr : 1; // TRUE -> HideCrsr from Basic
- sal_Bool bSetCrsrInReadOnly : 1;// TRUE -> Cursor is allowed in ReadOnly-Areas
- sal_Bool bOverwriteCrsr : 1; // sal_True -> show Overwrite Crsr
+ sal_Bool m_bSelTblCells : 1; // TRUE -> select cells over the InputWin
+ sal_Bool m_bAutoUpdateCells : 1; // TRUE -> autoformat cells
+ sal_Bool m_bBasicHideCrsr : 1; // TRUE -> HideCrsr from Basic
+ sal_Bool m_bSetCrsrInReadOnly : 1;// TRUE -> Cursor is allowed in ReadOnly-Areas
+ sal_Bool m_bOverwriteCrsr : 1; // sal_True -> show Overwrite Crsr
- bool mbMacroExecAllowed : 1;
+ bool m_bMacroExecAllowed : 1;
SW_DLLPRIVATE void UpdateCrsr( sal_uInt16 eFlags
=SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE,
@@ -328,8 +328,8 @@ public:
SwPaM* GetCrsr( sal_Bool bMakeTblCrsr = sal_True ) const;
inline SwCursor* GetSwCrsr( sal_Bool bMakeTblCrsr = sal_True ) const;
// return only the current cursor
- SwShellCrsr* _GetCrsr() { return pCurCrsr; }
- const SwShellCrsr* _GetCrsr() const { return pCurCrsr; }
+ SwShellCrsr* _GetCrsr() { return m_pCurCrsr; }
+ const SwShellCrsr* _GetCrsr() const { return m_pCurCrsr; }
// show passed cursor - for UNO
void SetSelection(const SwPaM& rCrsr);
@@ -347,7 +347,7 @@ public:
void EndAction( const sal_Bool bIdleEnd = sal_False );
// basic cursor travelling
- long GetUpDownX() const { return nUpDownX; }
+ long GetUpDownX() const { return m_nUpDownX; }
sal_Bool Left( sal_uInt16 nCnt, sal_uInt16 nMode, sal_Bool bAllowVisual = sal_False )
{ return LeftRight( sal_True, nCnt, nMode, bAllowVisual ); }
@@ -391,7 +391,7 @@ public:
int SetCrsr( const Point &rPt, sal_Bool bOnlyText = sal_False, bool bBlock = true );
/*
- * Notification that the visible area was changed. aVisArea is reset, then
+ * Notification that the visible area was changed. m_aVisArea is reset, then
* scrolling is done. The passed Rectangle lays on pixel borders to avoid
* pixel errors.
*/
@@ -443,9 +443,9 @@ public:
void SttCrsrMove();
void EndCrsrMove( const sal_Bool bIdleEnd = sal_False );
#else
- void SttCrsrMove() { ++nCrsrMove; StartAction(); }
+ void SttCrsrMove() { ++m_nCrsrMove; StartAction(); }
void EndCrsrMove( const sal_Bool bIdleEnd = sal_False )
- { EndAction( bIdleEnd ); --nCrsrMove; }
+ { EndAction( bIdleEnd ); --m_nCrsrMove; }
#endif
/*
@@ -453,7 +453,7 @@ public:
* On the other hand, on receiving the focus all selected ranges are displayed again
* (ranges must be recalculated!).
*/
- sal_Bool HasShFcs() const { return bHasFocus; }
+ sal_Bool HasShFcs() const { return m_bHasFocus; }
void ShLooseFcs();
void ShGetFcs( sal_Bool bUpdate = sal_True );
@@ -464,8 +464,8 @@ public:
void ShowCrsrs( sal_Bool bCrsrVis );
void HideCrsrs();
- sal_Bool IsOverwriteCrsr() const { return bOverwriteCrsr; }
- void SetOverwriteCrsr( sal_Bool bFlag ) { bOverwriteCrsr = bFlag; }
+ sal_Bool IsOverwriteCrsr() const { return m_bOverwriteCrsr; }
+ void SetOverwriteCrsr( sal_Bool bFlag ) { m_bOverwriteCrsr = bFlag; }
// Return current frame in which the cursor is placed.
SwCntntFrm *GetCurrFrm( const sal_Bool bCalcFrm = sal_True ) const;
@@ -479,21 +479,21 @@ public:
sal_Bool HasReadonlySel(bool bAnnotationMode = false) const;
// Can the cursor be set to read only ranges?
- sal_Bool IsReadOnlyAvailable() const { return bSetCrsrInReadOnly; }
+ sal_Bool IsReadOnlyAvailable() const { return m_bSetCrsrInReadOnly; }
void SetReadOnlyAvailable( sal_Bool bFlag );
sal_Bool IsOverReadOnlyPos( const Point& rPt ) const;
// Methods for aFlyMacroLnk.
- void SetFlyMacroLnk( const Link& rLnk ) { aFlyMacroLnk = rLnk; }
- const Link& GetFlyMacroLnk() const { return aFlyMacroLnk; }
+ void SetFlyMacroLnk( const Link& rLnk ) { m_aFlyMacroLnk = rLnk; }
+ const Link& GetFlyMacroLnk() const { return m_aFlyMacroLnk; }
// Methods returning/altering link for changes of attributes/formates.
- void SetChgLnk( const Link &rLnk ) { aChgLnk = rLnk; }
- const Link& GetChgLnk() const { return aChgLnk; }
+ void SetChgLnk( const Link &rLnk ) { m_aChgLnk = rLnk; }
+ const Link& GetChgLnk() const { return m_aChgLnk; }
// Methods returning/altering ling for "graphic completely loaded".
- void SetGrfArrivedLnk( const Link &rLnk ) { aGrfArrivedLnk = rLnk; }
- const Link& GetGrfArrivedLnk() const { return aGrfArrivedLnk; }
+ void SetGrfArrivedLnk( const Link &rLnk ) { m_aGrfArrivedLnk = rLnk; }
+ const Link& GetGrfArrivedLnk() const { return m_aGrfArrivedLnk; }
//Call ChgLink. When within an action calling will be delayed.
void CallChgLnk();
@@ -521,7 +521,7 @@ public:
/*
* Returns SRectangle, at which the cursor is located.
*/
- const SwRect &GetCharRect() const { return aCharRect; }
+ const SwRect &GetCharRect() const { return m_aCharRect; }
/*
* Returns if cursor is wholly or partly within visible range.
*/
@@ -618,30 +618,30 @@ public:
/** Delivers the current shell cursor
Some operations have to run on the current cursor ring,
- some on the pTblCrsr (if exist) or the current cursor ring and
- some on the pTblCrsr or pBlockCrsr or the current cursor ring.
+ some on the m_pTblCrsr (if exist) or the current cursor ring and
+ some on the m_pTblCrsr or m_pBlockCrsr or the current cursor ring.
This small function checks the existence and delivers the wished cursor.
@param bBlock [bool]
if the block cursor is of interest or not
- @return pTblCrsr if exist,
- pBlockCrsr if exist and of interest (param bBlock)
- otherwise pCurCrsr
+ @return m_pTblCrsr if exist,
+ m_pBlockCrsr if exist and of interest (param bBlock)
+ otherwise m_pCurCrsr
*/
SwShellCrsr* getShellCrsr( bool bBlock );
const SwShellCrsr* getShellCrsr( bool bBlock ) const
{ return (const_cast<SwCrsrShell*>(this))->getShellCrsr( bBlock ); }
- bool IsBlockMode() const { return 0 != pBlockCrsr; }
- const IBlockCursor* GetBlockCrsr() const { return pBlockCrsr; }
- IBlockCursor* GetBlockCrsr() { return pBlockCrsr; }
+ bool IsBlockMode() const { return 0 != m_pBlockCrsr; }
+ const IBlockCursor* GetBlockCrsr() const { return m_pBlockCrsr; }
+ IBlockCursor* GetBlockCrsr() { return m_pBlockCrsr; }
// is the Crsr in a table and is the selection over 2 columns
- sal_Bool IsTableMode() const { return 0 != pTblCrsr; }
+ sal_Bool IsTableMode() const { return 0 != m_pTblCrsr; }
- const SwShellTableCrsr* GetTableCrsr() const { return pTblCrsr; }
- SwShellTableCrsr* GetTableCrsr() { return pTblCrsr; }
+ const SwShellTableCrsr* GetTableCrsr() const { return m_pTblCrsr; }
+ SwShellTableCrsr* GetTableCrsr() { return m_pTblCrsr; }
size_t UpdateTblSelBoxes();
sal_Bool GotoFtnTxt(); ///< jump from content to footnote
@@ -730,14 +730,14 @@ public:
sal_Bool ParkTblCrsr();
// Non expanded attributes?
- sal_Bool IsGCAttr() const { return bGCAttr; }
- void ClearGCAttr() { bGCAttr = sal_False; }
- void UpdateAttr() { bGCAttr = sal_True; }
+ sal_Bool IsGCAttr() const { return m_bGCAttr; }
+ void ClearGCAttr() { m_bGCAttr = sal_False; }
+ void UpdateAttr() { m_bGCAttr = sal_True; }
// is the whole document protected/hidden (for UI...)
- sal_Bool IsAllProtect() const { return bAllProtect; }
+ sal_Bool IsAllProtect() const { return m_bAllProtect; }
- sal_Bool BasicActionPend() const { return nBasicActionCnt != mnStartAction; }
+ sal_Bool BasicActionPend() const { return m_nBasicActionCnt != mnStartAction; }
bool GotoRegion( const String& rName );
@@ -777,11 +777,11 @@ public:
void ClearTblBoxCntnt();
sal_Bool EndAllTblBoxEdit();
- void SetSelTblCells( sal_Bool bFlag ) { bSelTblCells = bFlag; }
- sal_Bool IsSelTblCells() const { return bSelTblCells; }
+ void SetSelTblCells( sal_Bool bFlag ) { m_bSelTblCells = bFlag; }
+ sal_Bool IsSelTblCells() const { return m_bSelTblCells; }
- sal_Bool IsAutoUpdateCells() const { return bAutoUpdateCells; }
- void SetAutoUpdateCells( sal_Bool bFlag ) { bAutoUpdateCells = bFlag; }
+ sal_Bool IsAutoUpdateCells() const { return m_bAutoUpdateCells; }
+ void SetAutoUpdateCells( sal_Bool bFlag ) { m_bAutoUpdateCells = bFlag; }
sal_Bool GetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode,
SwRect& rRect, short& rOrient );
@@ -805,11 +805,11 @@ public:
inline void SetMacroExecAllowed( const bool _bMacroExecAllowed )
{
- mbMacroExecAllowed = _bMacroExecAllowed;
+ m_bMacroExecAllowed = _bMacroExecAllowed;
}
inline bool IsMacroExecAllowed()
{
- return mbMacroExecAllowed;
+ return m_bMacroExecAllowed;
}
/**
@@ -830,7 +830,7 @@ public:
inline SwMoveFnCollection* SwCrsrShell::MakeFindRange(
sal_uInt16 nStt, sal_uInt16 nEnd, SwPaM* pPam ) const
{
- return pCurCrsr->MakeFindRange( (SwDocPositions)nStt, (SwDocPositions)nEnd, pPam );
+ return m_pCurCrsr->MakeFindRange( (SwDocPositions)nStt, (SwDocPositions)nEnd, pPam );
}
inline SwCursor* SwCrsrShell::GetSwCrsr( sal_Bool bMakeTblCrsr ) const
@@ -838,57 +838,57 @@ inline SwCursor* SwCrsrShell::GetSwCrsr( sal_Bool bMakeTblCrsr ) const
return (SwCursor*)GetCrsr( bMakeTblCrsr );
}
-inline SwPaM* SwCrsrShell::GetStkCrsr() const { return pCrsrStk; }
+inline SwPaM* SwCrsrShell::GetStkCrsr() const { return m_pCrsrStk; }
-inline void SwCrsrShell::SetMark() { pCurCrsr->SetMark(); }
+inline void SwCrsrShell::SetMark() { m_pCurCrsr->SetMark(); }
-inline sal_Bool SwCrsrShell::HasMark() { return( pCurCrsr->HasMark() ); }
+inline sal_Bool SwCrsrShell::HasMark() { return( m_pCurCrsr->HasMark() ); }
inline sal_Bool SwCrsrShell::IsSelection() const
{
- return IsTableMode() || pCurCrsr->HasMark() ||
- pCurCrsr->GetNext() != pCurCrsr;
+ return IsTableMode() || m_pCurCrsr->HasMark() ||
+ m_pCurCrsr->GetNext() != m_pCurCrsr;
}
inline sal_Bool SwCrsrShell::IsMultiSelection() const
{
- return pCurCrsr->GetNext() != pCurCrsr;
+ return m_pCurCrsr->GetNext() != m_pCurCrsr;
}
inline sal_Bool SwCrsrShell::IsSelOnePara() const
{
- return pCurCrsr == pCurCrsr->GetNext() &&
- pCurCrsr->GetPoint()->nNode == pCurCrsr->GetMark()->nNode;
+ return m_pCurCrsr == m_pCurCrsr->GetNext() &&
+ m_pCurCrsr->GetPoint()->nNode == m_pCurCrsr->GetMark()->nNode;
}
inline const SwTableNode* SwCrsrShell::IsCrsrInTbl( sal_Bool bIsPtInTbl ) const
{
- return pCurCrsr->GetNode( bIsPtInTbl )->FindTableNode();
+ return m_pCurCrsr->GetNode( bIsPtInTbl )->FindTableNode();
}
inline sal_Bool SwCrsrShell::IsCrsrPtAtEnd() const
{
- return pCurCrsr->End() == pCurCrsr->GetPoint();
+ return m_pCurCrsr->End() == m_pCurCrsr->GetPoint();
}
inline Point& SwCrsrShell::GetCrsrDocPos( sal_Bool bPoint ) const
{
- return bPoint ? pCurCrsr->GetPtPos() : pCurCrsr->GetMkPos();
+ return bPoint ? m_pCurCrsr->GetPtPos() : m_pCurCrsr->GetMkPos();
}
inline const SwPaM* SwCrsrShell::GetTblCrs() const
{
- return pTblCrsr;
+ return m_pTblCrsr;
}
inline SwPaM* SwCrsrShell::GetTblCrs()
{
- return pTblCrsr;
+ return m_pTblCrsr;
}
inline void SwCrsrShell::UnSetVisCrsr()
{
- pVisCrsr->Hide();
- pVisCrsr->SetDragCrsr( false );
+ m_pVisCrsr->Hide();
+ m_pVisCrsr->SetDragCrsr( false );
}
#endif // _CRSRSH_HXX
diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx
index eb2afe56ca9b..536a22ea3d04 100644
--- a/sw/source/core/crsr/callnk.cxx
+++ b/sw/source/core/crsr/callnk.cxx
@@ -111,7 +111,7 @@ static void lcl_notifyRow(const SwCntntNode* pNode, SwCrsrShell& rShell)
SwCallLink::~SwCallLink()
{
- if( !nNdTyp || !rShell.bCallChgLnk ) // see ctor
+ if( !nNdTyp || !rShell.m_bCallChgLnk ) // see ctor
return ;
// If travelling over Nodes check formats and register them anew at the
@@ -152,7 +152,7 @@ SwCallLink::~SwCallLink()
// always call change link when selection changes
rShell.CallChgLnk();
}
- else if( rShell.aChgLnk.IsSet() && ND_TEXTNODE == nNdWhich &&
+ else if( rShell.m_aChgLnk.IsSet() && ND_TEXTNODE == nNdWhich &&
nCntnt != nAktCntnt )
{
// If travelling with left/right only and the frame is
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 581feeb8b895..e0e2ab8e770d 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -125,13 +125,13 @@ SwPaM * SwCrsrShell::CreateCrsr()
// New cursor as copy of current one. Add to the ring.
// Links point to previously created one, ie forward.
- SwShellCrsr* pNew = new SwShellCrsr( *pCurCrsr );
+ SwShellCrsr* pNew = new SwShellCrsr( *m_pCurCrsr );
// Hide PaM logically, to avoid undoing the inverting from
// copied PaM (#i75172#)
- pNew->swapContent(*pCurCrsr);
+ pNew->swapContent(*m_pCurCrsr);
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
UpdateCrsr( SwCrsrShell::SCROLLWIN );
return pNew;
@@ -149,13 +149,13 @@ bool SwCrsrShell::DestroyCrsr()
OSL_ENSURE( !IsTableMode(), "in table Selection" );
// Is there a next one? Don't do anything if not.
- if(pCurCrsr->GetNext() == pCurCrsr)
+ if(m_pCurCrsr->GetNext() == m_pCurCrsr)
return false;
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCursor* pNextCrsr = (SwCursor*)pCurCrsr->GetNext();
- delete pCurCrsr;
- pCurCrsr = dynamic_cast<SwShellCrsr*>(pNextCrsr);
+ SwCursor* pNextCrsr = (SwCursor*)m_pCurCrsr->GetNext();
+ delete m_pCurCrsr;
+ m_pCurCrsr = dynamic_cast<SwShellCrsr*>(pNextCrsr);
UpdateCrsr();
return true;
}
@@ -190,29 +190,29 @@ SwPaM & SwCrsrShell::GetCurrentShellCursor()
*/
SwPaM* SwCrsrShell::GetCrsr( sal_Bool bMakeTblCrsr ) const
{
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
- if( bMakeTblCrsr && pTblCrsr->IsCrsrMovedUpdt() )
+ if( bMakeTblCrsr && m_pTblCrsr->IsCrsrMovedUpdt() )
{
//don't re-create 'parked' cursors
const SwCntntNode* pCNd;
- if( pTblCrsr->GetPoint()->nNode.GetIndex() &&
- pTblCrsr->GetMark()->nNode.GetIndex() &&
- 0 != ( pCNd = pTblCrsr->GetCntntNode() ) && pCNd->getLayoutFrm( GetLayout() ) &&
- 0 != ( pCNd = pTblCrsr->GetCntntNode(sal_False) ) && pCNd->getLayoutFrm( GetLayout() ) )
+ if( m_pTblCrsr->GetPoint()->nNode.GetIndex() &&
+ m_pTblCrsr->GetMark()->nNode.GetIndex() &&
+ 0 != ( pCNd = m_pTblCrsr->GetCntntNode() ) && pCNd->getLayoutFrm( GetLayout() ) &&
+ 0 != ( pCNd = m_pTblCrsr->GetCntntNode(sal_False) ) && pCNd->getLayoutFrm( GetLayout() ) )
{
- SwShellTableCrsr* pTC = (SwShellTableCrsr*)pTblCrsr;
+ SwShellTableCrsr* pTC = (SwShellTableCrsr*)m_pTblCrsr;
GetLayout()->MakeTblCrsrs( *pTC );
}
}
- if( pTblCrsr->IsChgd() )
+ if( m_pTblCrsr->IsChgd() )
{
- const_cast<SwCrsrShell*>(this)->pCurCrsr =
- dynamic_cast<SwShellCrsr*>(pTblCrsr->MakeBoxSels( pCurCrsr ));
+ const_cast<SwCrsrShell*>(this)->m_pCurCrsr =
+ dynamic_cast<SwShellCrsr*>(m_pTblCrsr->MakeBoxSels( m_pCurCrsr ));
}
}
- return pCurCrsr;
+ return m_pCurCrsr;
}
@@ -221,15 +221,15 @@ void SwCrsrShell::StartAction()
if( !ActionPend() )
{
// save for update of the ribbon bar
- const SwNode& rNd = pCurCrsr->GetPoint()->nNode.GetNode();
- nAktNode = rNd.GetIndex();
- nAktCntnt = pCurCrsr->GetPoint()->nContent.GetIndex();
- nAktNdTyp = rNd.GetNodeType();
- bAktSelection = *pCurCrsr->GetPoint() != *pCurCrsr->GetMark();
+ const SwNode& rNd = m_pCurCrsr->GetPoint()->nNode.GetNode();
+ m_nAktNode = rNd.GetIndex();
+ m_nAktCntnt = m_pCurCrsr->GetPoint()->nContent.GetIndex();
+ m_nAktNdTyp = rNd.GetNodeType();
+ m_bAktSelection = *m_pCurCrsr->GetPoint() != *m_pCurCrsr->GetMark();
if( rNd.IsTxtNode() )
- nLeftFrmPos = SwCallLink::getLayoutFrm( GetLayout(), (SwTxtNode&)rNd, nAktCntnt, sal_True );
+ m_nLeftFrmPos = SwCallLink::getLayoutFrm( GetLayout(), (SwTxtNode&)rNd, m_nAktCntnt, sal_True );
else
- nLeftFrmPos = 0;
+ m_nLeftFrmPos = 0;
}
ViewShell::StartAction(); // to the ViewShell
}
@@ -237,12 +237,12 @@ void SwCrsrShell::StartAction()
void SwCrsrShell::EndAction( const sal_Bool bIdleEnd )
{
- sal_Bool bVis = bSVCrsrVis;
+ sal_Bool bVis = m_bSVCrsrVis;
// Idle-formatting?
if( bIdleEnd && Imp()->GetRegion() )
{
- pCurCrsr->Hide();
+ m_pCurCrsr->Hide();
}
// Update all invalid numberings before the last action
@@ -251,17 +251,17 @@ void SwCrsrShell::EndAction( const sal_Bool bIdleEnd )
// #i76923#: Don't show the cursor in the ViewShell::EndAction() - call.
// Only the UpdateCrsr shows the cursor.
- sal_Bool bSavSVCrsrVis = bSVCrsrVis;
- bSVCrsrVis = sal_False;
+ sal_Bool bSavSVCrsrVis = m_bSVCrsrVis;
+ m_bSVCrsrVis = sal_False;
ViewShell::EndAction( bIdleEnd ); // have ViewShell go first
- bSVCrsrVis = bSavSVCrsrVis;
+ m_bSVCrsrVis = bSavSVCrsrVis;
if( ActionPend() )
{
if( bVis ) // display SV-Cursor again
- pVisCrsr->Show();
+ m_pVisCrsr->Show();
// If there is still a ChgCall and just the "basic
// parenthiszing(?) (Basic-Klammerung)" exists, call it. This
@@ -276,14 +276,14 @@ void SwCrsrShell::EndAction( const sal_Bool bIdleEnd )
{
// watch Crsr-Moves, call Link if needed, the DTOR is key here!
- SwCallLink aLk( *this, nAktNode, nAktCntnt, (sal_uInt8)nAktNdTyp,
- nLeftFrmPos, bAktSelection );
+ SwCallLink aLk( *this, m_nAktNode, m_nAktCntnt, (sal_uInt8)m_nAktNdTyp,
+ m_nLeftFrmPos, m_bAktSelection );
}
- if( bCallChgLnk && bChgCallFlag && aChgLnk.IsSet() )
+ if( m_bCallChgLnk && m_bChgCallFlag && m_aChgLnk.IsSet() )
{
- aChgLnk.Call( this );
- bChgCallFlag = sal_False; // reset flag
+ m_aChgLnk.Call( this );
+ m_bChgCallFlag = sal_False; // reset flag
}
}
return;
@@ -297,21 +297,21 @@ void SwCrsrShell::EndAction( const sal_Bool bIdleEnd )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- aLk.nNode = nAktNode; // call Link if needed
- aLk.nNdTyp = (sal_uInt8)nAktNdTyp;
- aLk.nCntnt = nAktCntnt;
- aLk.nLeftFrmPos = nLeftFrmPos;
+ aLk.nNode = m_nAktNode; // call Link if needed
+ aLk.nNdTyp = (sal_uInt8)m_nAktNdTyp;
+ aLk.nCntnt = m_nAktCntnt;
+ aLk.nLeftFrmPos = m_nLeftFrmPos;
- if( !nCrsrMove ||
- ( 1 == nCrsrMove && bInCMvVisportChgd ) )
+ if( !m_nCrsrMove ||
+ ( 1 == m_nCrsrMove && m_bInCMvVisportChgd ) )
// display Cursor & Selektions again
- ShowCrsrs( bSVCrsrVis ? sal_True : sal_False );
+ ShowCrsrs( m_bSVCrsrVis ? sal_True : sal_False );
}
// call ChgCall if there is still one
- if( bCallChgLnk && bChgCallFlag && aChgLnk.IsSet() )
+ if( m_bCallChgLnk && m_bChgCallFlag && m_aChgLnk.IsSet() )
{
- aChgLnk.Call( this );
- bChgCallFlag = sal_False; // reset flag
+ m_aChgLnk.Call( this );
+ m_bChgCallFlag = sal_False; // reset flag
}
}
@@ -320,17 +320,17 @@ void SwCrsrShell::EndAction( const sal_Bool bIdleEnd )
void SwCrsrShell::SttCrsrMove()
{
- OSL_ENSURE( nCrsrMove < USHRT_MAX, "To many nested CrsrMoves." );
- ++nCrsrMove;
+ OSL_ENSURE( m_nCrsrMove < USHRT_MAX, "To many nested CrsrMoves." );
+ ++m_nCrsrMove;
StartAction();
}
void SwCrsrShell::EndCrsrMove( const sal_Bool bIdleEnd )
{
- OSL_ENSURE( nCrsrMove, "EndCrsrMove() without SttCrsrMove()." );
+ OSL_ENSURE( m_nCrsrMove, "EndCrsrMove() without SttCrsrMove()." );
EndAction( bIdleEnd );
- if( !--nCrsrMove )
- bInCMvVisportChgd = sal_False;
+ if( !--m_nCrsrMove )
+ m_bInCMvVisportChgd = sal_False;
}
#endif
@@ -348,8 +348,8 @@ sal_Bool SwCrsrShell::LeftRight( sal_Bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMo
// #i27615# Handle cursor in front of label.
const SwTxtNode* pTxtNd = 0;
- if( pBlockCrsr )
- pBlockCrsr->clearPoints();
+ if( m_pBlockCrsr )
+ m_pBlockCrsr->clearPoints();
// 1. CASE: Cursor is in front of label. A move to the right
// will simply reset the bInFrontOfLabel flag:
@@ -396,19 +396,19 @@ sal_Bool SwCrsrShell::LeftRight( sal_Bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMo
void SwCrsrShell::MarkListLevel( const String& sListId,
const int nListLevel )
{
- if ( sListId != sMarkedListId ||
- nListLevel != nMarkedListLevel)
+ if ( sListId != m_sMarkedListId ||
+ nListLevel != m_nMarkedListLevel)
{
- if ( sMarkedListId.Len() > 0 )
- mpDoc->MarkListLevel( sMarkedListId, nMarkedListLevel, false );
+ if ( m_sMarkedListId.Len() > 0 )
+ mpDoc->MarkListLevel( m_sMarkedListId, m_nMarkedListLevel, false );
if ( sListId.Len() > 0 )
{
mpDoc->MarkListLevel( sListId, nListLevel, true );
}
- sMarkedListId = sListId;
- nMarkedListLevel = nListLevel;
+ m_sMarkedListId = sListId;
+ m_nMarkedListLevel = nListLevel;
}
}
@@ -420,10 +420,10 @@ void SwCrsrShell::UpdateMarkedListLevel()
{
if ( !pTxtNd->IsNumbered() )
{
- pCurCrsr->_SetInFrontOfLabel( false );
+ m_pCurCrsr->_SetInFrontOfLabel( false );
MarkListLevel( String(), 0 );
}
- else if ( pCurCrsr->IsInFrontOfLabel() )
+ else if ( m_pCurCrsr->IsInFrontOfLabel() )
{
if ( pTxtNd->IsInList() )
{
@@ -452,12 +452,12 @@ sal_Bool SwCrsrShell::UpDown( sal_Bool bUp, sal_uInt16 nCnt )
// #i40019# UpDown should always reset the bInFrontOfLabel flag:
bRet = SetInFrontOfLabel(false) || bRet;
- if( pBlockCrsr )
- pBlockCrsr->clearPoints();
+ if( m_pBlockCrsr )
+ m_pBlockCrsr->clearPoints();
if( bRet )
{
- eMvState = MV_UPDOWN; // status for Crsr travelling - GetCrsrOfst
+ m_eMvState = MV_UPDOWN; // status for Crsr travelling - GetCrsrOfst
if( !ActionPend() )
{
CrsrFlag eUpdtMode = SwCrsrShell::SCROLLWIN;
@@ -474,13 +474,13 @@ sal_Bool SwCrsrShell::LRMargin( sal_Bool bLeft, sal_Bool bAPI)
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
SET_CURR_SHELL( this );
- eMvState = MV_LEFTMARGIN; // status for Crsr travelling - GetCrsrOfst
+ m_eMvState = MV_LEFTMARGIN; // status for Crsr travelling - GetCrsrOfst
const sal_Bool bTableMode = IsTableMode();
SwShellCrsr* pTmpCrsr = getShellCrsr( true );
- if( pBlockCrsr )
- pBlockCrsr->clearPoints();
+ if( m_pBlockCrsr )
+ m_pBlockCrsr->clearPoints();
const bool bWasAtLM =
( 0 == _GetCrsr()->GetPoint()->nContent.GetIndex() );
@@ -516,15 +516,15 @@ sal_Bool SwCrsrShell::SttEndDoc( sal_Bool bStt )
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- SwShellCrsr* pTmpCrsr = pBlockCrsr ? &pBlockCrsr->getShellCrsr() : pCurCrsr;
+ SwShellCrsr* pTmpCrsr = m_pBlockCrsr ? &m_pBlockCrsr->getShellCrsr() : m_pCurCrsr;
sal_Bool bRet = pTmpCrsr->SttEndDoc( bStt );
if( bRet )
{
if( bStt )
pTmpCrsr->GetPtPos().Y() = 0; // set to 0 explicitly (table header)
- if( pBlockCrsr )
+ if( m_pBlockCrsr )
{
- pBlockCrsr->clearPoints();
+ m_pBlockCrsr->clearPoints();
RefreshBlockCursor();
}
@@ -536,10 +536,10 @@ sal_Bool SwCrsrShell::SttEndDoc( sal_Bool bStt )
void SwCrsrShell::ExtendedSelectAll()
{
SwNodes& rNodes = GetDoc()->GetNodes();
- SwPosition* pPos = pCurCrsr->GetPoint();
+ SwPosition* pPos = m_pCurCrsr->GetPoint();
pPos->nNode = rNodes.GetEndOfPostIts();
pPos->nContent.Assign( rNodes.GoNext( &pPos->nNode ), 0 );
- pPos = pCurCrsr->GetMark();
+ pPos = m_pCurCrsr->GetMark();
pPos->nNode = rNodes.GetEndOfContent();
SwCntntNode* pCNd = rNodes.GoPrevious( &pPos->nNode );
pPos->nContent.Assign( pCNd, pCNd ? pCNd->Len() : 0 );
@@ -550,18 +550,18 @@ sal_Bool SwCrsrShell::MovePage( SwWhichPage fnWhichPage, SwPosPage fnPosPage )
sal_Bool bRet = sal_False;
// never jump of section borders at selection
- if( !pCurCrsr->HasMark() || !pCurCrsr->IsNoCntnt() )
+ if( !m_pCurCrsr->HasMark() || !m_pCurCrsr->IsNoCntnt() )
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
SET_CURR_SHELL( this );
- SwCrsrSaveState aSaveState( *pCurCrsr );
- Point& rPt = pCurCrsr->GetPtPos();
- SwCntntFrm * pFrm = pCurCrsr->GetCntntNode()->
- getLayoutFrm( GetLayout(), &rPt, pCurCrsr->GetPoint(), sal_False );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ Point& rPt = m_pCurCrsr->GetPtPos();
+ SwCntntFrm * pFrm = m_pCurCrsr->GetCntntNode()->
+ getLayoutFrm( GetLayout(), &rPt, m_pCurCrsr->GetPoint(), sal_False );
if( pFrm && sal_True == ( bRet = GetFrmInPage( pFrm, fnWhichPage,
- fnPosPage, pCurCrsr ) ) &&
- !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ fnPosPage, m_pCurCrsr ) ) &&
+ !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS ))
UpdateCrsr();
else
@@ -616,7 +616,7 @@ static SwFrm* lcl_IsInHeaderFooter( const SwNodeIndex& rIdx, Point& rPt )
bool SwCrsrShell::IsInHeaderFooter( sal_Bool* pbInHeader ) const
{
Point aPt;
- SwFrm* pFrm = ::lcl_IsInHeaderFooter( pCurCrsr->GetPoint()->nNode, aPt );
+ SwFrm* pFrm = ::lcl_IsInHeaderFooter( m_pCurCrsr->GetPoint()->nNode, aPt );
if( pFrm && pbInHeader )
*pbInHeader = pFrm->IsHeaderFrm();
return 0 != pFrm;
@@ -658,7 +658,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
pCrsr->SetCrsrBidiLevel( aTmpState.nCursorBidiLevel );
if( MV_RIGHTMARGIN == aTmpState.eState )
- eMvState = MV_RIGHTMARGIN;
+ m_eMvState = MV_RIGHTMARGIN;
// is the new position in header or footer?
SwFrm* pFrm = lcl_IsInHeaderFooter( aPos.nNode, aPt );
if( IsTableMode() && !pFrm && aPos.nNode.GetNode().StartOfSectionNode() ==
@@ -666,13 +666,13 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
// same table column and not in header/footer -> back
return bRet;
- if( pBlockCrsr && bBlock )
+ if( m_pBlockCrsr && bBlock )
{
- pBlockCrsr->setEndPoint( rLPt );
+ m_pBlockCrsr->setEndPoint( rLPt );
if( !pCrsr->HasMark() )
- pBlockCrsr->setStartPoint( rLPt );
- else if( !pBlockCrsr->getStartPoint() )
- pBlockCrsr->setStartPoint( pCrsr->GetMkPos() );
+ m_pBlockCrsr->setStartPoint( rLPt );
+ else if( !m_pBlockCrsr->getStartPoint() )
+ m_pBlockCrsr->setStartPoint( pCrsr->GetMkPos() );
}
if( !pCrsr->HasMark() )
{
@@ -689,7 +689,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
{
// in the same frame?
SwFrm* pOld = ((SwCntntNode&)aPos.nNode.GetNode()).getLayoutFrm(
- GetLayout(), &aCharRect.Pos(), 0, sal_False );
+ GetLayout(), &m_aCharRect.Pos(), 0, sal_False );
SwFrm* pNew = ((SwCntntNode&)aPos.nNode.GetNode()).getLayoutFrm(
GetLayout(), &aPt, 0, sal_False );
if( pNew == pOld )
@@ -718,7 +718,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
// #i41424# Only update the marked number levels if necessary
// Force update of marked number levels if necessary.
if ( bNewInFrontOfLabel || bOldInFrontOfLabel )
- pCurCrsr->_SetInFrontOfLabel( !bNewInFrontOfLabel );
+ m_pCurCrsr->_SetInFrontOfLabel( !bNewInFrontOfLabel );
SetInFrontOfLabel( bNewInFrontOfLabel );
if( !pCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHANGEPOS ) )
@@ -727,7 +727,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
UpdateCrsr( nFlag );
bRet &= ~CRSR_POSOLD;
}
- else if( bOnlyText && !pCurCrsr->HasMark() )
+ else if( bOnlyText && !m_pCurCrsr->HasMark() )
{
if( FindValidCntntNode( bOnlyText ) )
{
@@ -743,9 +743,9 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
else
{
// there is no valid content -> hide cursor
- pVisCrsr->Hide(); // always hide visible cursor
- eMvState = MV_NONE; // status for Crsr travelling
- bAllProtect = sal_True;
+ m_pVisCrsr->Hide(); // always hide visible cursor
+ m_eMvState = MV_NONE; // status for Crsr travelling
+ m_bAllProtect = sal_True;
if( GetDoc()->GetDocShell() )
{
GetDoc()->GetDocShell()->SetReadOnlyUI( sal_True );
@@ -760,68 +760,68 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, sal_Bool bOnlyText, bool bBlock )
void SwCrsrShell::TblCrsrToCursor()
{
- OSL_ENSURE( pTblCrsr, "TblCrsrToCursor: Why?" );
- delete pTblCrsr, pTblCrsr = 0;
+ OSL_ENSURE( m_pTblCrsr, "TblCrsrToCursor: Why?" );
+ delete m_pTblCrsr, m_pTblCrsr = 0;
}
void SwCrsrShell::BlockCrsrToCrsr()
{
- OSL_ENSURE( pBlockCrsr, "BlockCrsrToCrsr: Why?" );
- if( pBlockCrsr && !HasSelection() )
+ OSL_ENSURE( m_pBlockCrsr, "BlockCrsrToCrsr: Why?" );
+ if( m_pBlockCrsr && !HasSelection() )
{
- SwPaM& rPam = pBlockCrsr->getShellCrsr();
- pCurCrsr->SetMark();
- *pCurCrsr->GetPoint() = *rPam.GetPoint();
+ SwPaM& rPam = m_pBlockCrsr->getShellCrsr();
+ m_pCurCrsr->SetMark();
+ *m_pCurCrsr->GetPoint() = *rPam.GetPoint();
if( rPam.HasMark() )
- *pCurCrsr->GetMark() = *rPam.GetMark();
+ *m_pCurCrsr->GetMark() = *rPam.GetMark();
else
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
}
- delete pBlockCrsr, pBlockCrsr = 0;
+ delete m_pBlockCrsr, m_pBlockCrsr = 0;
}
void SwCrsrShell::CrsrToBlockCrsr()
{
- if( !pBlockCrsr )
+ if( !m_pBlockCrsr )
{
- SwPosition aPos( *pCurCrsr->GetPoint() );
- pBlockCrsr = createBlockCursor( *this, aPos );
- SwShellCrsr &rBlock = pBlockCrsr->getShellCrsr();
- rBlock.GetPtPos() = pCurCrsr->GetPtPos();
- if( pCurCrsr->HasMark() )
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
+ m_pBlockCrsr = createBlockCursor( *this, aPos );
+ SwShellCrsr &rBlock = m_pBlockCrsr->getShellCrsr();
+ rBlock.GetPtPos() = m_pCurCrsr->GetPtPos();
+ if( m_pCurCrsr->HasMark() )
{
rBlock.SetMark();
- *rBlock.GetMark() = *pCurCrsr->GetMark();
- rBlock.GetMkPos() = pCurCrsr->GetMkPos();
+ *rBlock.GetMark() = *m_pCurCrsr->GetMark();
+ rBlock.GetMkPos() = m_pCurCrsr->GetMkPos();
}
}
- pBlockCrsr->clearPoints();
+ m_pBlockCrsr->clearPoints();
RefreshBlockCursor();
}
void SwCrsrShell::ClearMark()
{
// is there any GetMark?
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
- while( pCurCrsr->GetNext() != pCurCrsr )
- delete pCurCrsr->GetNext();
- pTblCrsr->DeleteMark();
+ while( m_pCurCrsr->GetNext() != m_pCurCrsr )
+ delete m_pCurCrsr->GetNext();
+ m_pTblCrsr->DeleteMark();
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *pTblCrsr->GetPoint();
- pCurCrsr->GetPtPos() = pTblCrsr->GetPtPos();
- delete pTblCrsr, pTblCrsr = 0;
- pCurCrsr->SwSelPaintRects::Show();
+ *m_pCurCrsr->GetPoint() = *m_pTblCrsr->GetPoint();
+ m_pCurCrsr->GetPtPos() = m_pTblCrsr->GetPtPos();
+ delete m_pTblCrsr, m_pTblCrsr = 0;
+ m_pCurCrsr->SwSelPaintRects::Show();
}
else
{
- if( !pCurCrsr->HasMark() )
+ if( !m_pCurCrsr->HasMark() )
return;
- pCurCrsr->DeleteMark();
- if( !nCrsrMove )
- pCurCrsr->SwSelPaintRects::Show();
+ m_pCurCrsr->DeleteMark();
+ if( !m_nCrsrMove )
+ m_pCurCrsr->SwSelPaintRects::Show();
}
}
@@ -829,13 +829,13 @@ void SwCrsrShell::ClearMark()
void SwCrsrShell::NormalizePam(sal_Bool bPointFirst)
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- pCurCrsr->Normalize(bPointFirst);
+ m_pCurCrsr->Normalize(bPointFirst);
}
void SwCrsrShell::SwapPam()
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- pCurCrsr->Exchange();
+ m_pCurCrsr->Exchange();
}
//TODO: provide documentation
@@ -855,12 +855,12 @@ sal_Bool SwCrsrShell::ChgCurrPam( const Point & rPt,
SET_CURR_SHELL( this );
// check if the SPoint is in a table selection
- if( bTstOnly && pTblCrsr )
- return pTblCrsr->IsInside( rPt );
+ if( bTstOnly && m_pTblCrsr )
+ return m_pTblCrsr->IsInside( rPt );
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
// search position <rPt> in document
- SwPosition aPtPos( *pCurCrsr->GetPoint() );
+ SwPosition aPtPos( *m_pCurCrsr->GetPoint() );
Point aPt( rPt );
SwCrsrMoveState aTmpState( MV_NONE );
@@ -869,19 +869,19 @@ sal_Bool SwCrsrShell::ChgCurrPam( const Point & rPt,
return sal_False;
// search in all selections for this position
- SwShellCrsr* pCmp = (SwShellCrsr*)pCurCrsr; // keep the pointer on cursor
+ SwShellCrsr* pCmp = (SwShellCrsr*)m_pCurCrsr; // keep the pointer on cursor
do {
if( pCmp->HasMark() &&
*pCmp->Start() <= aPtPos && *pCmp->End() > aPtPos )
{
- if( bTstOnly || pCurCrsr == pCmp ) // is the current
+ if( bTstOnly || m_pCurCrsr == pCmp ) // is the current
return sal_True; // return without update
- pCurCrsr = pCmp;
+ m_pCurCrsr = pCmp;
UpdateCrsr(); // cursor is already at the right position
return sal_True;
}
- } while( pCurCrsr !=
+ } while( m_pCurCrsr !=
( pCmp = dynamic_cast<SwShellCrsr*>(pCmp->GetNext()) ) );
return sal_False;
}
@@ -890,31 +890,31 @@ sal_Bool SwCrsrShell::ChgCurrPam( const Point & rPt,
void SwCrsrShell::KillPams()
{
// Does any exist for deletion?
- if( !pTblCrsr && !pBlockCrsr && pCurCrsr->GetNext() == pCurCrsr )
+ if( !m_pTblCrsr && !m_pBlockCrsr && m_pCurCrsr->GetNext() == m_pCurCrsr )
return;
- while( pCurCrsr->GetNext() != pCurCrsr )
- delete pCurCrsr->GetNext();
- pCurCrsr->SetColumnSelection( false );
+ while( m_pCurCrsr->GetNext() != m_pCurCrsr )
+ delete m_pCurCrsr->GetNext();
+ m_pCurCrsr->SetColumnSelection( false );
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
// delete the ring of cursors
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *pTblCrsr->GetPoint();
- pCurCrsr->GetPtPos() = pTblCrsr->GetPtPos();
- delete pTblCrsr;
- pTblCrsr = 0;
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = *m_pTblCrsr->GetPoint();
+ m_pCurCrsr->GetPtPos() = m_pTblCrsr->GetPtPos();
+ delete m_pTblCrsr;
+ m_pTblCrsr = 0;
}
- else if( pBlockCrsr )
+ else if( m_pBlockCrsr )
{
// delete the ring of cursors
- pCurCrsr->DeleteMark();
- SwShellCrsr &rBlock = pBlockCrsr->getShellCrsr();
- *pCurCrsr->GetPoint() = *rBlock.GetPoint();
- pCurCrsr->GetPtPos() = rBlock.GetPtPos();
+ m_pCurCrsr->DeleteMark();
+ SwShellCrsr &rBlock = m_pBlockCrsr->getShellCrsr();
+ *m_pCurCrsr->GetPoint() = *rBlock.GetPoint();
+ m_pCurCrsr->GetPtPos() = rBlock.GetPtPos();
rBlock.DeleteMark();
- pBlockCrsr->clearPoints();
+ m_pBlockCrsr->clearPoints();
}
UpdateCrsr( SwCrsrShell::SCROLLWIN );
}
@@ -924,7 +924,7 @@ int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const
{
int nRet = 0;
const SwPosition *pFirst = 0, *pSecond = 0;
- const SwPaM *pCur = GetCrsr(), *pStk = pCrsrStk;
+ const SwPaM *pCur = GetCrsr(), *pStk = m_pCrsrStk;
// cursor on stack is needed if we compare against stack
if( pStk || ( eType == CurrPtCurrMk ) )
{
@@ -969,23 +969,23 @@ int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const
bool SwCrsrShell::IsSttPara() const
-{ return pCurCrsr->GetPoint()->nContent == 0; }
+{ return m_pCurCrsr->GetPoint()->nContent == 0; }
bool SwCrsrShell::IsEndPara() const
-{ return pCurCrsr->GetPoint()->nContent == pCurCrsr->GetCntntNode()->Len(); }
+{ return m_pCurCrsr->GetPoint()->nContent == m_pCurCrsr->GetCntntNode()->Len(); }
bool SwCrsrShell::IsInFrontOfLabel() const
{
- return pCurCrsr->IsInFrontOfLabel();
+ return m_pCurCrsr->IsInFrontOfLabel();
}
bool SwCrsrShell::SetInFrontOfLabel( bool bNew )
{
if ( bNew != IsInFrontOfLabel() )
{
- pCurCrsr->_SetInFrontOfLabel( bNew );
+ m_pCurCrsr->_SetInFrontOfLabel( bNew );
UpdateMarkedListLevel();
return true;
}
@@ -996,9 +996,9 @@ sal_Bool SwCrsrShell::GotoPage( sal_uInt16 nPage )
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- SwCrsrSaveState aSaveState( *pCurCrsr );
- sal_Bool bRet = GetLayout()->SetCurrPage( pCurCrsr, nPage ) &&
- !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ sal_Bool bRet = GetLayout()->SetCurrPage( m_pCurCrsr, nPage ) &&
+ !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS );
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
@@ -1078,18 +1078,18 @@ sal_uInt16 SwCrsrShell::GetPageCnt()
sal_Bool SwCrsrShell::GoNextCrsr()
{
// is there a ring of cursors?
- if( pCurCrsr->GetNext() == pCurCrsr )
+ if( m_pCurCrsr->GetNext() == m_pCurCrsr )
return sal_False;
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- pCurCrsr = dynamic_cast<SwShellCrsr*>(pCurCrsr->GetNext());
+ m_pCurCrsr = dynamic_cast<SwShellCrsr*>(m_pCurCrsr->GetNext());
// #i24086#: show also all others
if( !ActionPend() )
{
UpdateCrsr();
- pCurCrsr->Show();
+ m_pCurCrsr->Show();
}
return sal_True;
}
@@ -1098,18 +1098,18 @@ sal_Bool SwCrsrShell::GoNextCrsr()
sal_Bool SwCrsrShell::GoPrevCrsr()
{
// is there a ring of cursors?
- if( pCurCrsr->GetNext() == pCurCrsr )
+ if( m_pCurCrsr->GetNext() == m_pCurCrsr )
return sal_False;
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- pCurCrsr = dynamic_cast<SwShellCrsr*>(pCurCrsr->GetPrev());
+ m_pCurCrsr = dynamic_cast<SwShellCrsr*>(m_pCurCrsr->GetPrev());
// #i24086#: show also all others
if( !ActionPend() )
{
UpdateCrsr();
- pCurCrsr->Show();
+ m_pCurCrsr->Show();
}
return sal_True;
@@ -1125,18 +1125,18 @@ void SwCrsrShell::Paint( const Rectangle &rRect)
bool bVis = false;
// if a cursor is visible then hide the SV cursor
- if( pVisCrsr->IsVisible() && !aRect.IsOver( aCharRect ) )
+ if( m_pVisCrsr->IsVisible() && !aRect.IsOver( m_aCharRect ) )
{
bVis = true;
- pVisCrsr->Hide();
+ m_pVisCrsr->Hide();
}
// re-paint area
ViewShell::Paint( rRect );
- if( bHasFocus && !bBasicHideCrsr )
+ if( m_bHasFocus && !m_bBasicHideCrsr )
{
- SwShellCrsr* pAktCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwShellCrsr* pAktCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
if( !ActionPend() )
{
@@ -1148,8 +1148,8 @@ void SwCrsrShell::Paint( const Rectangle &rRect)
pAktCrsr->Invalidate( aRect );
}
- if( bSVCrsrVis && bVis ) // also show SV cursor again
- pVisCrsr->Show();
+ if( m_bSVCrsrVis && bVis ) // also show SV cursor again
+ m_pVisCrsr->Show();
}
@@ -1160,25 +1160,25 @@ void SwCrsrShell::VisPortChgd( const SwRect & rRect )
bool bVis; // switch off all cursors when scrolling
// if a cursor is visible then hide the SV cursor
- if( ( bVis = pVisCrsr->IsVisible() ) )
- pVisCrsr->Hide();
+ if( ( bVis = m_pVisCrsr->IsVisible() ) )
+ m_pVisCrsr->Hide();
- bVisPortChgd = sal_True;
- aOldRBPos.X() = VisArea().Right();
- aOldRBPos.Y() = VisArea().Bottom();
+ m_bVisPortChgd = sal_True;
+ m_aOldRBPos.X() = VisArea().Right();
+ m_aOldRBPos.Y() = VisArea().Bottom();
// For not having problems with the SV cursor, Update() is called for the
// Window in ViewShell::VisPo...
// During painting no selections should be shown, thus the call is encapsulated. <- TODO: old artefact?
ViewShell::VisPortChgd( rRect ); // move area
- if( bSVCrsrVis && bVis ) // show SV cursor again
- pVisCrsr->Show();
+ if( m_bSVCrsrVis && bVis ) // show SV cursor again
+ m_pVisCrsr->Show();
- if( nCrsrMove )
- bInCMvVisportChgd = sal_True;
+ if( m_nCrsrMove )
+ m_bInCMvVisportChgd = sal_True;
- bVisPortChgd = sal_False;
+ m_bVisPortChgd = sal_False;
}
/** Set the cursor back into content.
@@ -1206,7 +1206,7 @@ void SwCrsrShell::UpdateCrsrPos()
}
IGrammarContact *pGrammarContact = GetDoc() ? GetDoc()->getGrammarContact() : 0;
if( pGrammarContact )
- pGrammarContact->updateCursorPosition( *pCurCrsr->GetPoint() );
+ pGrammarContact->updateCursorPosition( *m_pCurCrsr->GetPoint() );
--mnStartAction;
if( aOldSz != GetDocSize() )
SizeChgNotify();
@@ -1272,31 +1272,31 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
if( ActionPend() && BasicActionPend() )
{
if ( eFlags & SwCrsrShell::READONLY )
- bIgnoreReadonly = sal_True;
+ m_bIgnoreReadonly = sal_True;
return; // if not then no update
}
// #i27301#
SwNotifyAccAboutInvalidTextSelections aInvalidateTextSelections( *this );
- if ( bIgnoreReadonly )
+ if ( m_bIgnoreReadonly )
{
- bIgnoreReadonly = sal_False;
+ m_bIgnoreReadonly = sal_False;
eFlags |= SwCrsrShell::READONLY;
}
if( eFlags & SwCrsrShell::CHKRANGE ) // check all cursor moves for
- CheckRange( pCurCrsr ); // overlapping ranges
+ CheckRange( m_pCurCrsr ); // overlapping ranges
if( !bIdleEnd )
CheckTblBoxCntnt();
// If the current cursor is in a table and point/mark in different boxes,
- // then the table mode is active (also if it is already active: pTblCrsr)
+ // then the table mode is active (also if it is already active: m_pTblCrsr)
SwPaM* pTstCrsr = getShellCrsr( true );
- if( pTstCrsr->HasMark() && !pBlockCrsr &&
+ if( pTstCrsr->HasMark() && !m_pBlockCrsr &&
mpDoc->IsIdxInTbl( pTstCrsr->GetPoint()->nNode ) &&
- ( pTblCrsr ||
+ ( m_pTblCrsr ||
pTstCrsr->GetNode( sal_True )->StartOfSectionNode() !=
pTstCrsr->GetNode( sal_False )->StartOfSectionNode() ) )
{
@@ -1360,48 +1360,48 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
: fnSectionEnd;
// then only select inside the Box
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
- pCurCrsr->SetMark();
- *pCurCrsr->GetMark() = *pTblCrsr->GetMark();
- pCurCrsr->GetMkPos() = pTblCrsr->GetMkPos();
- pTblCrsr->DeleteMark();
- pTblCrsr->SwSelPaintRects::Hide();
+ m_pCurCrsr->SetMark();
+ *m_pCurCrsr->GetMark() = *m_pTblCrsr->GetMark();
+ m_pCurCrsr->GetMkPos() = m_pTblCrsr->GetMkPos();
+ m_pTblCrsr->DeleteMark();
+ m_pTblCrsr->SwSelPaintRects::Hide();
}
- *pCurCrsr->GetPoint() = *pCurCrsr->GetMark();
- (*fnSectionCurr)( *pCurCrsr, fnPosSect );
+ *m_pCurCrsr->GetPoint() = *m_pCurCrsr->GetMark();
+ (*fnSectionCurr)( *m_pCurCrsr, fnPosSect );
}
}
// we really want a table selection
if( pTab && pTblFrm )
{
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
{
- pTblCrsr = new SwShellTableCrsr( *this,
- *pCurCrsr->GetMark(), pCurCrsr->GetMkPos(),
+ m_pTblCrsr = new SwShellTableCrsr( *this,
+ *m_pCurCrsr->GetMark(), m_pCurCrsr->GetMkPos(),
*pPos, aTmpPt );
- pCurCrsr->DeleteMark();
- pCurCrsr->SwSelPaintRects::Hide();
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SwSelPaintRects::Hide();
CheckTblBoxCntnt();
}
SwCrsrMoveState aTmpState( MV_NONE );
aTmpState.bRealHeight = sal_True;
- if( !pTblFrm->GetCharRect( aCharRect, *pTblCrsr->GetPoint(), &aTmpState ) )
+ if( !pTblFrm->GetCharRect( m_aCharRect, *m_pTblCrsr->GetPoint(), &aTmpState ) )
{
- Point aCentrPt( aCharRect.Center() );
+ Point aCentrPt( m_aCharRect.Center() );
aTmpState.bSetInReadOnly = IsReadOnlyAvailable();
- pTblFrm->GetCrsrOfst( pTblCrsr->GetPoint(), aCentrPt, &aTmpState );
+ pTblFrm->GetCrsrOfst( m_pTblCrsr->GetPoint(), aCentrPt, &aTmpState );
bool const bResult =
- pTblFrm->GetCharRect( aCharRect, *pTblCrsr->GetPoint() );
+ pTblFrm->GetCharRect( m_aCharRect, *m_pTblCrsr->GetPoint() );
OSL_ENSURE( bResult, "GetCharRect failed." );
(void) bResult; // non-debug: unused
}
- pVisCrsr->Hide(); // always hide visible Cursor
+ m_pVisCrsr->Hide(); // always hide visible Cursor
// scroll Cursor to visible area
if( (eFlags & SwCrsrShell::SCROLLWIN) &&
(HasSelection() || eFlags & SwCrsrShell::READONLY ||
@@ -1413,45 +1413,45 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
if( pBoxFrm && pBoxFrm->Frm().HasArea() )
MakeVisible( pBoxFrm->Frm() );
else
- MakeVisible( aCharRect );
+ MakeVisible( m_aCharRect );
}
// let Layout create the Cursors in the Boxes
- if( pTblCrsr->IsCrsrMovedUpdt() )
- GetLayout()->MakeTblCrsrs( *pTblCrsr );
- if( bHasFocus && !bBasicHideCrsr )
- pTblCrsr->Show();
+ if( m_pTblCrsr->IsCrsrMovedUpdt() )
+ GetLayout()->MakeTblCrsrs( *m_pTblCrsr );
+ if( m_bHasFocus && !m_bBasicHideCrsr )
+ m_pTblCrsr->Show();
// set Cursor-Points to the new Positions
- pTblCrsr->GetPtPos().X() = aCharRect.Left();
- pTblCrsr->GetPtPos().Y() = aCharRect.Top();
+ m_pTblCrsr->GetPtPos().X() = m_aCharRect.Left();
+ m_pTblCrsr->GetPtPos().Y() = m_aCharRect.Top();
- if( bSVCrsrVis )
+ if( m_bSVCrsrVis )
{
- aCrsrHeight.X() = 0;
- aCrsrHeight.Y() = aTmpState.aRealHeight.Y() < 0 ?
- -aCharRect.Width() : aCharRect.Height();
- pVisCrsr->Show(); // show again
+ m_aCrsrHeight.X() = 0;
+ m_aCrsrHeight.Y() = aTmpState.aRealHeight.Y() < 0 ?
+ -m_aCharRect.Width() : m_aCharRect.Height();
+ m_pVisCrsr->Show(); // show again
}
- eMvState = MV_NONE; // state for cursor travelling - GetCrsrOfst
+ m_eMvState = MV_NONE; // state for cursor travelling - GetCrsrOfst
if( pTblFrm && Imp()->IsAccessible() )
Imp()->InvalidateAccessibleCursorPosition( pTblFrm );
return;
}
}
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
// delete Ring
- while( pCurCrsr->GetNext() != pCurCrsr )
- delete pCurCrsr->GetNext();
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *pTblCrsr->GetPoint();
- pCurCrsr->GetPtPos() = pTblCrsr->GetPtPos();
- delete pTblCrsr, pTblCrsr = 0;
+ while( m_pCurCrsr->GetNext() != m_pCurCrsr )
+ delete m_pCurCrsr->GetNext();
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = *m_pTblCrsr->GetPoint();
+ m_pCurCrsr->GetPtPos() = m_pTblCrsr->GetPtPos();
+ delete m_pTblCrsr, m_pTblCrsr = 0;
}
- pVisCrsr->Hide(); // always hide visible Cursor
+ m_pVisCrsr->Hide(); // always hide visible Cursor
// are we perhaps in a protected / hidden Section ?
{
@@ -1462,19 +1462,19 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
( !IsReadOnlyAvailable() &&
pSectNd->GetSection().IsProtectFlag() &&
( !mpDoc->GetDocShell() ||
- !mpDoc->GetDocShell()->IsReadOnly() || bAllProtect )) ) )
+ !mpDoc->GetDocShell()->IsReadOnly() || m_bAllProtect )) ) )
{
if( !FindValidCntntNode( !HasDrawView() ||
0 == Imp()->GetDrawView()->GetMarkedObjectList().GetMarkCount()))
{
// everything protected/hidden -> special mode
- if( bAllProtect && !IsReadOnlyAvailable() &&
+ if( m_bAllProtect && !IsReadOnlyAvailable() &&
pSectNd->GetSection().IsProtectFlag() )
bChgState = false;
else
{
- eMvState = MV_NONE; // state for cursor travelling
- bAllProtect = sal_True;
+ m_eMvState = MV_NONE; // state for cursor travelling
+ m_bAllProtect = sal_True;
if( GetDoc()->GetDocShell() )
{
GetDoc()->GetDocShell()->SetReadOnlyUI( sal_True );
@@ -1486,8 +1486,8 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
}
if( bChgState )
{
- sal_Bool bWasAllProtect = bAllProtect;
- bAllProtect = sal_False;
+ sal_Bool bWasAllProtect = m_bAllProtect;
+ m_bAllProtect = sal_False;
if( bWasAllProtect && GetDoc()->GetDocShell() &&
GetDoc()->GetDocShell()->IsReadOnlyUI() )
{
@@ -1504,7 +1504,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
// loops _behind_ the last node in the selection, which always works if you
// are in content.) To achieve this, we'll force cursor(s) to point into
// content, if UpdateCrsrPos() hasn't already done so.
- SwPaM* pCmp = pCurCrsr;
+ SwPaM* pCmp = m_pCurCrsr;
do
{
// start will move forwards, end will move backwards
@@ -1530,10 +1530,10 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
// iterate to next PaM in ring
pCmp = static_cast<SwPaM*>( pCmp->GetNext() );
}
- while( pCmp != pCurCrsr );
+ while( pCmp != m_pCurCrsr );
- SwRect aOld( aCharRect );
+ SwRect aOld( m_aCharRect );
bool bFirst = true;
SwCntntFrm *pFrm;
int nLoopCnt = 100;
@@ -1565,7 +1565,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
( !Imp()->GetDrawView() ||
!Imp()->GetDrawView()->GetMarkedObjectList().GetMarkCount() ) &&
(!mpDoc->GetDocShell() ||
- !mpDoc->GetDocShell()->IsReadOnly() || bAllProtect ) )
+ !mpDoc->GetDocShell()->IsReadOnly() || m_bAllProtect ) )
{
// look for a valid position
bool bChgState = true;
@@ -1573,12 +1573,12 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
0 == Imp()->GetDrawView()->GetMarkedObjectList().GetMarkCount()))
{
// everything is protected / hidden -> special Mode
- if( bAllProtect )
+ if( m_bAllProtect )
bChgState = false;
else
{
- eMvState = MV_NONE; // state for crusor travelling
- bAllProtect = sal_True;
+ m_eMvState = MV_NONE; // state for crusor travelling
+ m_bAllProtect = sal_True;
if( GetDoc()->GetDocShell() )
{
GetDoc()->GetDocShell()->SetReadOnlyUI( sal_True );
@@ -1590,15 +1590,15 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
if( bChgState )
{
- sal_Bool bWasAllProtect = bAllProtect;
- bAllProtect = sal_False;
+ sal_Bool bWasAllProtect = m_bAllProtect;
+ m_bAllProtect = sal_False;
if( bWasAllProtect && GetDoc()->GetDocShell() &&
GetDoc()->GetDocShell()->IsReadOnlyUI() )
{
GetDoc()->GetDocShell()->SetReadOnlyUI( sal_False );
CallChgLnk(); // notify UI!
}
- bAllProtect = sal_False;
+ m_bAllProtect = sal_False;
bAgainst = true; // look for the right Frm again
}
}
@@ -1606,7 +1606,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
if( !( eFlags & SwCrsrShell::NOCALRECT ))
{
- SwCrsrMoveState aTmpState( eMvState );
+ SwCrsrMoveState aTmpState( m_eMvState );
aTmpState.bSetInReadOnly = IsReadOnlyAvailable();
aTmpState.bRealHeight = sal_True;
aTmpState.bRealWidth = IsOverwriteCrsr();
@@ -1620,29 +1620,29 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
aTmpState.pSpecialPos = &aSpecialPos;
}
- if( !pFrm->GetCharRect( aCharRect, *pShellCrsr->GetPoint(), &aTmpState ) )
+ if( !pFrm->GetCharRect( m_aCharRect, *pShellCrsr->GetPoint(), &aTmpState ) )
{
Point& rPt = pShellCrsr->GetPtPos();
- rPt = aCharRect.Center();
+ rPt = m_aCharRect.Center();
pFrm->GetCrsrOfst( pShellCrsr->GetPoint(), rPt, &aTmpState );
}
if( !pShellCrsr->HasMark() )
- aCrsrHeight = aTmpState.aRealHeight;
+ m_aCrsrHeight = aTmpState.aRealHeight;
else
{
- aCrsrHeight.X() = 0;
- aCrsrHeight.Y() = aTmpState.aRealHeight.Y() < 0 ?
- -aCharRect.Width() : aCharRect.Height();
+ m_aCrsrHeight.X() = 0;
+ m_aCrsrHeight.Y() = aTmpState.aRealHeight.Y() < 0 ?
+ -m_aCharRect.Width() : m_aCharRect.Height();
}
}
else
{
- aCrsrHeight.X() = 0;
- aCrsrHeight.Y() = aCharRect.Height();
+ m_aCrsrHeight.X() = 0;
+ m_aCrsrHeight.Y() = m_aCharRect.Height();
}
- if( !bFirst && aOld == aCharRect )
+ if( !bFirst && aOld == m_aCharRect )
break;
// if the layout says that we are after the 100th iteration still in
@@ -1653,49 +1653,50 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
OSL_ENSURE( !this, "endless loop? CharRect != OldCharRect ");
break;
}
- aOld = aCharRect;
+ aOld = m_aCharRect;
bFirst = false;
// update cursor Points to the new Positions
- pShellCrsr->GetPtPos().X() = aCharRect.Left();
- pShellCrsr->GetPtPos().Y() = aCharRect.Top();
+ pShellCrsr->GetPtPos().X() = m_aCharRect.Left();
+ pShellCrsr->GetPtPos().Y() = m_aCharRect.Top();
if( !(eFlags & SwCrsrShell::UPDOWN )) // delete old Pos. of Up/Down
{
pFrm->Calc();
- nUpDownX = pFrm->IsVertical() ?
- aCharRect.Top() - pFrm->Frm().Top() :
- aCharRect.Left() - pFrm->Frm().Left();
+ m_nUpDownX = pFrm->IsVertical() ?
+ m_aCharRect.Top() - pFrm->Frm().Top() :
+ m_aCharRect.Left() - pFrm->Frm().Left();
}
// scroll Cursor to visible area
- if( bHasFocus && eFlags & SwCrsrShell::SCROLLWIN &&
+ if( m_bHasFocus && eFlags & SwCrsrShell::SCROLLWIN &&
(HasSelection() || eFlags & SwCrsrShell::READONLY ||
!IsCrsrReadonly() || GetViewOptions()->IsSelectionInReadonly()) )
{
// in case of scrolling this EndAction doesn't show the SV cursor
// again, thus save and reset the flag here
- sal_Bool bSav = bSVCrsrVis; bSVCrsrVis = sal_False;
+ sal_Bool bSav = m_bSVCrsrVis;
+ m_bSVCrsrVis = sal_False;
MakeSelVisible();
- bSVCrsrVis = bSav;
+ m_bSVCrsrVis = bSav;
}
} while( eFlags & SwCrsrShell::SCROLLWIN );
- if( pBlockCrsr )
+ if( m_pBlockCrsr )
RefreshBlockCursor();
- if( !bIdleEnd && bHasFocus && !bBasicHideCrsr )
+ if( !bIdleEnd && m_bHasFocus && !m_bBasicHideCrsr )
{
- if( pTblCrsr )
- pTblCrsr->SwSelPaintRects::Show();
+ if( m_pTblCrsr )
+ m_pTblCrsr->SwSelPaintRects::Show();
else
{
- pCurCrsr->SwSelPaintRects::Show();
- if( pBlockCrsr )
+ m_pCurCrsr->SwSelPaintRects::Show();
+ if( m_pBlockCrsr )
{
- SwShellCrsr* pNxt = dynamic_cast<SwShellCrsr*>(pCurCrsr->GetNext());
- while( pNxt && pNxt != pCurCrsr )
+ SwShellCrsr* pNxt = dynamic_cast<SwShellCrsr*>(m_pCurCrsr->GetNext());
+ while( pNxt && pNxt != m_pCurCrsr )
{
pNxt->SwSelPaintRects::Show();
pNxt = dynamic_cast<SwShellCrsr*>(pNxt->GetNext());
@@ -1704,7 +1705,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
}
}
- eMvState = MV_NONE; // state for cursor tavelling - GetCrsrOfst
+ m_eMvState = MV_NONE; // state for cursor tavelling - GetCrsrOfst
if( pFrm && Imp()->IsAccessible() )
Imp()->InvalidateAccessibleCursorPosition( pFrm );
@@ -1728,21 +1729,21 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
GetOut()->SetSettings( aSettings );
}
- if( bSVCrsrVis )
- pVisCrsr->Show(); // show again
+ if( m_bSVCrsrVis )
+ m_pVisCrsr->Show(); // show again
}
void SwCrsrShell::RefreshBlockCursor()
{
- OSL_ENSURE( pBlockCrsr, "Don't call me without a block cursor" );
- SwShellCrsr &rBlock = pBlockCrsr->getShellCrsr();
+ OSL_ENSURE( m_pBlockCrsr, "Don't call me without a block cursor" );
+ SwShellCrsr &rBlock = m_pBlockCrsr->getShellCrsr();
Point aPt = rBlock.GetPtPos();
SwCntntFrm* pFrm = rBlock.GetCntntNode()->getLayoutFrm( GetLayout(), &aPt, rBlock.GetPoint(), sal_False );
Point aMk;
- if( pBlockCrsr->getEndPoint() && pBlockCrsr->getStartPoint() )
+ if( m_pBlockCrsr->getEndPoint() && m_pBlockCrsr->getStartPoint() )
{
- aPt = *pBlockCrsr->getStartPoint();
- aMk = *pBlockCrsr->getEndPoint();
+ aPt = *m_pBlockCrsr->getStartPoint();
+ aMk = *m_pBlockCrsr->getEndPoint();
}
else
{
@@ -1762,29 +1763,29 @@ void SwCrsrShell::RefreshBlockCursor()
if( GetLayout()->FillSelection( aSelList, aRect ) )
{
- SwCursor* pNxt = (SwCursor*)pCurCrsr->GetNext();
- while( pNxt != pCurCrsr )
+ SwCursor* pNxt = (SwCursor*)m_pCurCrsr->GetNext();
+ while( pNxt != m_pCurCrsr )
{
delete pNxt;
- pNxt = (SwCursor*)pCurCrsr->GetNext();
+ pNxt = (SwCursor*)m_pCurCrsr->GetNext();
}
std::list<SwPaM*>::iterator pStart = aSelList.getStart();
std::list<SwPaM*>::iterator pPam = aSelList.getEnd();
OSL_ENSURE( pPam != pStart, "FillSelection should deliver at least one PaM" );
- pCurCrsr->SetMark();
+ m_pCurCrsr->SetMark();
--pPam;
// If there is only one text portion inside the rectangle, a simple
// selection is created
if( pPam == pStart )
{
- *pCurCrsr->GetPoint() = *(*pPam)->GetPoint();
+ *m_pCurCrsr->GetPoint() = *(*pPam)->GetPoint();
if( (*pPam)->HasMark() )
- *pCurCrsr->GetMark() = *(*pPam)->GetMark();
+ *m_pCurCrsr->GetMark() = *(*pPam)->GetMark();
else
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
delete *pPam;
- pCurCrsr->SetColumnSelection( false );
+ m_pCurCrsr->SetColumnSelection( false );
}
else
{
@@ -1794,50 +1795,50 @@ void SwCrsrShell::RefreshBlockCursor()
// downto the first selection.
// At least create the cursor for the last selection
--pPam;
- *pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n-1 (if n == number of selections)
+ *m_pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n-1 (if n == number of selections)
if( (*pPam)->HasMark() )
- *pCurCrsr->GetMark() = *(*pPam)->GetMark();
+ *m_pCurCrsr->GetMark() = *(*pPam)->GetMark();
else
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
delete *pPam;
- pCurCrsr->SetColumnSelection( true );
+ m_pCurCrsr->SetColumnSelection( true );
while( pPam != pStart )
{
--pPam;
- SwShellCrsr* pNew = new SwShellCrsr( *pCurCrsr );
- pNew->insert( pNew->begin(), pCurCrsr->begin(), pCurCrsr->end());
- pCurCrsr->clear();
- pCurCrsr->DeleteMark();
+ SwShellCrsr* pNew = new SwShellCrsr( *m_pCurCrsr );
+ pNew->insert( pNew->begin(), m_pCurCrsr->begin(), m_pCurCrsr->end());
+ m_pCurCrsr->clear();
+ m_pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n-2, n-3, .., 2, 1
+ *m_pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n-2, n-3, .., 2, 1
if( (*pPam)->HasMark() )
{
- pCurCrsr->SetMark();
- *pCurCrsr->GetMark() = *(*pPam)->GetMark();
+ m_pCurCrsr->SetMark();
+ *m_pCurCrsr->GetMark() = *(*pPam)->GetMark();
}
else
- pCurCrsr->DeleteMark();
- pCurCrsr->SetColumnSelection( true );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SetColumnSelection( true );
delete *pPam;
}
{
- SwShellCrsr* pNew = new SwShellCrsr( *pCurCrsr );
- pNew->insert( pNew->begin(), pCurCrsr->begin(), pCurCrsr->end() );
- pCurCrsr->clear();
- pCurCrsr->DeleteMark();
+ SwShellCrsr* pNew = new SwShellCrsr( *m_pCurCrsr );
+ pNew->insert( pNew->begin(), m_pCurCrsr->begin(), m_pCurCrsr->end() );
+ m_pCurCrsr->clear();
+ m_pCurCrsr->DeleteMark();
}
pPam = aSelList.getEnd();
--pPam;
- *pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n, the last selection
+ *m_pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n, the last selection
if( (*pPam)->HasMark() )
{
- pCurCrsr->SetMark();
- *pCurCrsr->GetMark() = *(*pPam)->GetMark();
+ m_pCurCrsr->SetMark();
+ *m_pCurCrsr->GetMark() = *(*pPam)->GetMark();
}
else
- pCurCrsr->DeleteMark();
- pCurCrsr->SetColumnSelection( true );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SetColumnSelection( true );
delete *pPam;
}
}
@@ -1848,15 +1849,15 @@ void SwCrsrShell::Push()
{
// fdo#60513: if we have a table cursor, copy that; else copy current.
// This seems to work because UpdateCrsr() will fix this up on Pop(),
- // then MakeBoxSels() will re-create the current pCurCrsr cell ring.
- SwShellCrsr *const pCurrent((pTblCrsr) ? pTblCrsr : pCurCrsr);
- pCrsrStk = new SwShellCrsr( *this, *pCurrent->GetPoint(),
- pCurrent->GetPtPos(), pCrsrStk );
+ // then MakeBoxSels() will re-create the current m_pCurCrsr cell ring.
+ SwShellCrsr *const pCurrent((m_pTblCrsr) ? m_pTblCrsr : m_pCurCrsr);
+ m_pCrsrStk = new SwShellCrsr( *this, *pCurrent->GetPoint(),
+ pCurrent->GetPtPos(), m_pCrsrStk );
if (pCurrent->HasMark())
{
- pCrsrStk->SetMark();
- *pCrsrStk->GetMark() = *pCurrent->GetMark();
+ m_pCrsrStk->SetMark();
+ *m_pCrsrStk->GetMark() = *pCurrent->GetMark();
}
}
@@ -1871,50 +1872,50 @@ sal_Bool SwCrsrShell::Pop( sal_Bool bOldCrsr )
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
// are there any left?
- if( 0 == pCrsrStk )
+ if( 0 == m_pCrsrStk )
return sal_False;
- SwShellCrsr *pTmp = 0, *pOldStk = pCrsrStk;
+ SwShellCrsr *pTmp = 0, *pOldStk = m_pCrsrStk;
// the successor becomes the current one
- if( pCrsrStk->GetNext() != pCrsrStk )
+ if( m_pCrsrStk->GetNext() != m_pCrsrStk )
{
- pTmp = dynamic_cast<SwShellCrsr*>(pCrsrStk->GetNext());
+ pTmp = dynamic_cast<SwShellCrsr*>(m_pCrsrStk->GetNext());
}
if( bOldCrsr ) // delete from stack
- delete pCrsrStk;
+ delete m_pCrsrStk;
- pCrsrStk = pTmp; // assign new one
+ m_pCrsrStk = pTmp; // assign new one
if( !bOldCrsr )
{
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
// If the visible SSelection was not changed
- if( pOldStk->GetPtPos() == pCurCrsr->GetPtPos() ||
- pOldStk->GetPtPos() == pCurCrsr->GetMkPos() )
+ if( pOldStk->GetPtPos() == m_pCurCrsr->GetPtPos() ||
+ pOldStk->GetPtPos() == m_pCurCrsr->GetMkPos() )
{
// move "Selections Rectangles"
- pCurCrsr->insert( pCurCrsr->begin(), pOldStk->begin(), pOldStk->end() );
+ m_pCurCrsr->insert( m_pCurCrsr->begin(), pOldStk->begin(), pOldStk->end() );
pOldStk->clear();
}
if( pOldStk->HasMark() )
{
- pCurCrsr->SetMark();
- *pCurCrsr->GetMark() = *pOldStk->GetMark();
- pCurCrsr->GetMkPos() = pOldStk->GetMkPos();
+ m_pCurCrsr->SetMark();
+ *m_pCurCrsr->GetMark() = *pOldStk->GetMark();
+ m_pCurCrsr->GetMkPos() = pOldStk->GetMkPos();
}
else
// no selection so revoke old one and set to old position
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *pOldStk->GetPoint();
- pCurCrsr->GetPtPos() = pOldStk->GetPtPos();
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = *pOldStk->GetPoint();
+ m_pCurCrsr->GetPtPos() = pOldStk->GetPtPos();
delete pOldStk;
- if( !pCurCrsr->IsInProtectTable( sal_True ) &&
- !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ if( !m_pCurCrsr->IsInProtectTable( sal_True ) &&
+ !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS ) )
UpdateCrsr(); // update current cursor
}
@@ -1928,31 +1929,31 @@ sal_Bool SwCrsrShell::Pop( sal_Bool bOldCrsr )
void SwCrsrShell::Combine()
{
// any others left?
- if( 0 == pCrsrStk )
+ if( 0 == m_pCrsrStk )
return;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
// rhbz#689053: IsSelOvr must restore the saved stack position, not the
// current one, because current point + stack mark may be invalid PaM
- SwCrsrSaveState aSaveState(*pCrsrStk);
+ SwCrsrSaveState aSaveState(*m_pCrsrStk);
// stack cursor & current cursor in same Section?
- assert(!pCrsrStk->HasMark() ||
- CheckNodesRange(pCrsrStk->GetMark()->nNode,
- pCurCrsr->GetPoint()->nNode, true));
- *pCrsrStk->GetPoint() = *pCurCrsr->GetPoint();
- pCrsrStk->GetPtPos() = pCurCrsr->GetPtPos();
+ assert(!m_pCrsrStk->HasMark() ||
+ CheckNodesRange(m_pCrsrStk->GetMark()->nNode,
+ m_pCurCrsr->GetPoint()->nNode, true));
+ *m_pCrsrStk->GetPoint() = *m_pCurCrsr->GetPoint();
+ m_pCrsrStk->GetPtPos() = m_pCurCrsr->GetPtPos();
SwShellCrsr * pTmp = 0;
- if( pCrsrStk->GetNext() != pCrsrStk )
+ if( m_pCrsrStk->GetNext() != m_pCrsrStk )
{
- pTmp = dynamic_cast<SwShellCrsr*>(pCrsrStk->GetNext());
+ pTmp = dynamic_cast<SwShellCrsr*>(m_pCrsrStk->GetNext());
}
- delete pCurCrsr;
- pCurCrsr = pCrsrStk;
- pCrsrStk->MoveTo(0); // remove from ring
- pCrsrStk = pTmp;
- if( !pCurCrsr->IsInProtectTable( sal_True ) &&
- !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ delete m_pCurCrsr;
+ m_pCurCrsr = m_pCrsrStk;
+ m_pCrsrStk->MoveTo(0); // remove from ring
+ m_pCrsrStk = pTmp;
+ if( !m_pCurCrsr->IsInProtectTable( sal_True ) &&
+ !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS ) )
{
UpdateCrsr(); // update current cursor
@@ -1962,17 +1963,17 @@ void SwCrsrShell::Combine()
void SwCrsrShell::HideCrsrs()
{
- if( !bHasFocus || bBasicHideCrsr )
+ if( !m_bHasFocus || m_bBasicHideCrsr )
return;
// if cursor is visible then hide SV cursor
- if( pVisCrsr->IsVisible() )
+ if( m_pVisCrsr->IsVisible() )
{
SET_CURR_SHELL( this );
- pVisCrsr->Hide();
+ m_pVisCrsr->Hide();
}
// revoke inversion of SSelection
- SwShellCrsr* pAktCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwShellCrsr* pAktCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
pAktCrsr->Hide();
}
@@ -1980,24 +1981,24 @@ void SwCrsrShell::HideCrsrs()
void SwCrsrShell::ShowCrsrs( sal_Bool bCrsrVis )
{
- if( !bHasFocus || bAllProtect || bBasicHideCrsr )
+ if( !m_bHasFocus || m_bAllProtect || m_bBasicHideCrsr )
return;
SET_CURR_SHELL( this );
- SwShellCrsr* pAktCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwShellCrsr* pAktCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
pAktCrsr->Show();
- if( bSVCrsrVis && bCrsrVis ) // also show SV cursor again
- pVisCrsr->Show();
+ if( m_bSVCrsrVis && bCrsrVis ) // also show SV cursor again
+ m_pVisCrsr->Show();
}
void SwCrsrShell::ShowCrsr()
{
- if( !bBasicHideCrsr )
+ if( !m_bBasicHideCrsr )
{
- bSVCrsrVis = sal_True;
+ m_bSVCrsrVis = sal_True;
UpdateCrsr();
}
}
@@ -2005,33 +2006,33 @@ void SwCrsrShell::ShowCrsr()
void SwCrsrShell::HideCrsr()
{
- if( !bBasicHideCrsr )
+ if( !m_bBasicHideCrsr )
{
- bSVCrsrVis = sal_False;
+ m_bSVCrsrVis = sal_False;
// possibly reverse selected areas!!
SET_CURR_SHELL( this );
- pVisCrsr->Hide();
+ m_pVisCrsr->Hide();
}
}
void SwCrsrShell::ShLooseFcs()
{
- if( !bBasicHideCrsr )
+ if( !m_bBasicHideCrsr )
HideCrsrs();
- bHasFocus = sal_False;
+ m_bHasFocus = sal_False;
}
void SwCrsrShell::ShGetFcs( sal_Bool bUpdate )
{
- bHasFocus = sal_True;
- if( !bBasicHideCrsr && VisArea().Width() )
+ m_bHasFocus = sal_True;
+ if( !m_bBasicHideCrsr && VisArea().Width() )
{
UpdateCrsr( static_cast<sal_uInt16>( bUpdate ?
SwCrsrShell::CHKRANGE|SwCrsrShell::SCROLLWIN
: SwCrsrShell::CHKRANGE ) );
- ShowCrsrs( bSVCrsrVis ? sal_True : sal_False );
+ ShowCrsrs( m_bSVCrsrVis ? sal_True : sal_False );
}
}
@@ -2040,7 +2041,7 @@ SwCntntFrm *SwCrsrShell::GetCurrFrm( const sal_Bool bCalcFrm ) const
{
SET_CURR_SHELL( (ViewShell*)this );
SwCntntFrm *pRet = 0;
- SwCntntNode *pNd = pCurCrsr->GetCntntNode();
+ SwCntntNode *pNd = m_pCurCrsr->GetCntntNode();
if ( pNd )
{
if ( bCalcFrm )
@@ -2048,13 +2049,13 @@ SwCntntFrm *SwCrsrShell::GetCurrFrm( const sal_Bool bCalcFrm ) const
const sal_uInt16* pST = &mnStartAction;
++(*((sal_uInt16*)pST));
const Size aOldSz( GetDocSize() );
- pRet = pNd->getLayoutFrm( GetLayout(), &pCurCrsr->GetPtPos(), pCurCrsr->GetPoint() );
+ pRet = pNd->getLayoutFrm( GetLayout(), &m_pCurCrsr->GetPtPos(), m_pCurCrsr->GetPoint() );
--(*((sal_uInt16*)pST));
if( aOldSz != GetDocSize() )
((SwCrsrShell*)this)->SizeChgNotify();
}
else
- pRet = pNd->getLayoutFrm( GetLayout(), &pCurCrsr->GetPtPos(), pCurCrsr->GetPoint(), sal_False);
+ pRet = pNd->getLayoutFrm( GetLayout(), &m_pCurCrsr->GetPtPos(), m_pCurCrsr->GetPoint(), sal_False);
}
return pRet;
}
@@ -2073,7 +2074,7 @@ void SwCrsrShell::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
pNew->Which() :
sal::static_int_cast<sal_uInt16>(RES_MSG_BEGIN);
- if( bCallChgLnk &&
+ if( m_bCallChgLnk &&
( nWhich < RES_MSG_BEGIN || nWhich >= RES_MSG_END ||
nWhich == RES_FMT_CHG || nWhich == RES_UPDATE_ATTR ||
nWhich == RES_ATTRSET_CHG ))
@@ -2083,9 +2084,9 @@ void SwCrsrShell::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
// not need to send the expensive RES_FMT_CHG in Insert.
CallChgLnk();
- if( aGrfArrivedLnk.IsSet() &&
+ if( m_aGrfArrivedLnk.IsSet() &&
( RES_GRAPHIC_ARRIVED == nWhich || RES_GRAPHIC_SWAPIN == nWhich ))
- aGrfArrivedLnk.Call( this );
+ m_aGrfArrivedLnk.Call( this );
}
/** Does the current cursor create a selection?
@@ -2106,12 +2107,12 @@ void SwCrsrShell::CallChgLnk()
// Do not make any call in start/end action but just remember the change.
// This will be taken care of in the end action.
if( BasicActionPend() )
- bChgCallFlag = sal_True; // remember change
- else if( aChgLnk.IsSet() )
+ m_bChgCallFlag = sal_True; // remember change
+ else if( m_aChgLnk.IsSet() )
{
- if( bCallChgLnk )
- aChgLnk.Call( this );
- bChgCallFlag = sal_False; // reset flag
+ if( m_bCallChgLnk )
+ m_aChgLnk.Call( this );
+ m_bChgCallFlag = sal_False; // reset flag
}
}
@@ -2119,15 +2120,15 @@ void SwCrsrShell::CallChgLnk()
String SwCrsrShell::GetSelTxt() const
{
String aTxt;
- if( pCurCrsr->GetPoint()->nNode.GetIndex() ==
- pCurCrsr->GetMark()->nNode.GetIndex() )
+ if( m_pCurCrsr->GetPoint()->nNode.GetIndex() ==
+ m_pCurCrsr->GetMark()->nNode.GetIndex() )
{
- SwTxtNode* pTxtNd = pCurCrsr->GetNode()->GetTxtNode();
+ SwTxtNode* pTxtNd = m_pCurCrsr->GetNode()->GetTxtNode();
if( pTxtNd )
{
- xub_StrLen nStt = pCurCrsr->Start()->nContent.GetIndex();
+ xub_StrLen nStt = m_pCurCrsr->Start()->nContent.GetIndex();
aTxt = pTxtNd->GetExpandTxt( nStt,
- pCurCrsr->End()->nContent.GetIndex() - nStt );
+ m_pCurCrsr->End()->nContent.GetIndex() - nStt );
}
}
return aTxt;
@@ -2137,13 +2138,13 @@ String SwCrsrShell::GetSelTxt() const
String SwCrsrShell::GetText() const
{
String aTxt;
- if( pCurCrsr->GetPoint()->nNode.GetIndex() ==
- pCurCrsr->GetMark()->nNode.GetIndex() )
+ if( m_pCurCrsr->GetPoint()->nNode.GetIndex() ==
+ m_pCurCrsr->GetMark()->nNode.GetIndex() )
{
- SwTxtNode* pTxtNd = pCurCrsr->GetNode()->GetTxtNode();
+ SwTxtNode* pTxtNd = m_pCurCrsr->GetNode()->GetTxtNode();
if( pTxtNd )
aTxt = pTxtNd->GetTxt().copy(
- pCurCrsr->GetPoint()->nContent.GetIndex() );
+ m_pCurCrsr->GetPoint()->nContent.GetIndex() );
}
return aTxt;
}
@@ -2158,8 +2159,8 @@ sal_Unicode SwCrsrShell::GetChar( sal_Bool bEnd, long nOffset )
if( IsTableMode() ) // not possible in table mode
return 0;
- const SwPosition* pPos = !pCurCrsr->HasMark() ? pCurCrsr->GetPoint()
- : bEnd ? pCurCrsr->End() : pCurCrsr->Start();
+ const SwPosition* pPos = !m_pCurCrsr->HasMark() ? m_pCurCrsr->GetPoint()
+ : bEnd ? m_pCurCrsr->End() : m_pCurCrsr->Start();
SwTxtNode* pTxtNd = pPos->nNode.GetNode().GetTxtNode();
if( !pTxtNd )
return 0;
@@ -2181,10 +2182,10 @@ sal_Unicode SwCrsrShell::GetChar( sal_Bool bEnd, long nOffset )
*/
sal_Bool SwCrsrShell::ExtendSelection( sal_Bool bEnd, xub_StrLen nCount )
{
- if( !pCurCrsr->HasMark() || IsTableMode() )
+ if( !m_pCurCrsr->HasMark() || IsTableMode() )
return sal_False; // no selection
- SwPosition* pPos = bEnd ? pCurCrsr->End() : pCurCrsr->Start();
+ SwPosition* pPos = bEnd ? m_pCurCrsr->End() : m_pCurCrsr->Start();
SwTxtNode* pTxtNd = pPos->nNode.GetNode().GetTxtNode();
OSL_ENSURE( pTxtNd, "no text node; how should this then be extended?" );
@@ -2218,7 +2219,7 @@ sal_Bool SwCrsrShell::SetVisCrsr( const Point &rPt )
{
SET_CURR_SHELL( this );
Point aPt( rPt );
- SwPosition aPos( *pCurCrsr->GetPoint() );
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
SwCrsrMoveState aTmpState( MV_SETONLYTEXT );
aTmpState.bSetInReadOnly = IsReadOnlyAvailable();
aTmpState.bRealHeight = sal_True;
@@ -2241,32 +2242,32 @@ sal_Bool SwCrsrShell::SetVisCrsr( const Point &rPt )
SwCntntFrm *pFrm = pTxtNd->getLayoutFrm( GetLayout(), &aPt, &aPos );
if ( Imp()->IsIdleAction() )
pFrm->PrepareCrsr();
- SwRect aTmp( aCharRect );
+ SwRect aTmp( m_aCharRect );
- pFrm->GetCharRect( aCharRect, aPos, &aTmpState );
+ pFrm->GetCharRect( m_aCharRect, aPos, &aTmpState );
// #i10137#
- if( aTmp == aCharRect && pVisCrsr->IsVisible() )
+ if( aTmp == m_aCharRect && m_pVisCrsr->IsVisible() )
return sal_True;
- pVisCrsr->Hide(); // always hide visible cursor
- if( IsScrollMDI( this, aCharRect ))
+ m_pVisCrsr->Hide(); // always hide visible cursor
+ if( IsScrollMDI( this, m_aCharRect ))
{
- MakeVisible( aCharRect );
- pCurCrsr->Show();
+ MakeVisible( m_aCharRect );
+ m_pCurCrsr->Show();
}
{
if( aTmpState.bRealHeight )
- aCrsrHeight = aTmpState.aRealHeight;
+ m_aCrsrHeight = aTmpState.aRealHeight;
else
{
- aCrsrHeight.X() = 0;
- aCrsrHeight.Y() = aCharRect.Height();
+ m_aCrsrHeight.X() = 0;
+ m_aCrsrHeight.Y() = m_aCharRect.Height();
}
- pVisCrsr->SetDragCrsr( true );
- pVisCrsr->Show(); // show again
+ m_pVisCrsr->SetDragCrsr( true );
+ m_pVisCrsr->Show(); // show again
}
return bRet;
}
@@ -2274,7 +2275,7 @@ sal_Bool SwCrsrShell::SetVisCrsr( const Point &rPt )
sal_Bool SwCrsrShell::IsOverReadOnlyPos( const Point& rPt ) const
{
Point aPt( rPt );
- SwPaM aPam( *pCurCrsr->GetPoint() );
+ SwPaM aPam( *m_pCurCrsr->GetPoint() );
GetLayout()->GetCrsrOfst( aPam.GetPoint(), aPt );
// Formular view
return aPam.HasReadonlySel( GetViewOptions()->IsFormView() );
@@ -2287,9 +2288,9 @@ sal_Bool SwCrsrShell::IsOverReadOnlyPos( const Point& rPt ) const
sal_uInt16 SwCrsrShell::GetCrsrCnt( sal_Bool bAll ) const
{
Ring* pTmp = GetCrsr()->GetNext();
- sal_uInt16 n = (bAll || ( pCurCrsr->HasMark() &&
- *pCurCrsr->GetPoint() != *pCurCrsr->GetMark())) ? 1 : 0;
- while( pTmp != pCurCrsr )
+ sal_uInt16 n = (bAll || ( m_pCurCrsr->HasMark() &&
+ *m_pCurCrsr->GetPoint() != *m_pCurCrsr->GetMark())) ? 1 : 0;
+ while( pTmp != m_pCurCrsr )
{
if( bAll || ( ((SwPaM*)pTmp)->HasMark() &&
*((SwPaM*)pTmp)->GetPoint() != *((SwPaM*)pTmp)->GetMark()))
@@ -2302,14 +2303,14 @@ sal_uInt16 SwCrsrShell::GetCrsrCnt( sal_Bool bAll ) const
sal_Bool SwCrsrShell::IsStartOfDoc() const
{
- if( pCurCrsr->GetPoint()->nContent.GetIndex() )
+ if( m_pCurCrsr->GetPoint()->nContent.GetIndex() )
return sal_False;
// after EndOfIcons comes the content selection (EndNd+StNd+CntntNd)
SwNodeIndex aIdx( GetDoc()->GetNodes().GetEndOfExtras(), 2 );
if( !aIdx.GetNode().IsCntntNode() )
GetDoc()->GetNodes().GoNext( &aIdx );
- return aIdx == pCurCrsr->GetPoint()->nNode;
+ return aIdx == m_pCurCrsr->GetPoint()->nNode;
}
@@ -2320,8 +2321,8 @@ sal_Bool SwCrsrShell::IsEndOfDoc() const
if( !pCNd )
pCNd = GetDoc()->GetNodes().GoPrevious( &aIdx );
- return aIdx == pCurCrsr->GetPoint()->nNode &&
- pCNd->Len() == pCurCrsr->GetPoint()->nContent.GetIndex();
+ return aIdx == m_pCurCrsr->GetPoint()->nNode &&
+ pCNd->Len() == m_pCurCrsr->GetPoint()->nContent.GetIndex();
}
/** Invalidate cursors
@@ -2333,17 +2334,17 @@ sal_Bool SwCrsrShell::IsEndOfDoc() const
*/
sal_Bool SwCrsrShell::ParkTblCrsr()
{
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
return sal_False;
- pTblCrsr->ParkCrsr();
+ m_pTblCrsr->ParkCrsr();
- while( pCurCrsr->GetNext() != pCurCrsr )
- delete pCurCrsr->GetNext();
+ while( m_pCurCrsr->GetNext() != m_pCurCrsr )
+ delete m_pCurCrsr->GetNext();
// *always* move cursor's Point and Mark
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = *pTblCrsr->GetPoint();
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = *m_pTblCrsr->GetPoint();
return sal_True;
}
@@ -2379,7 +2380,7 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing )
sal_Bool bDelete = sal_True;
if( *ppDelRing == pTmpDel )
{
- if( *ppDelRing == pCurCrsr )
+ if( *ppDelRing == m_pCurCrsr )
{
if( sal_True == ( bDelete = GoNextCrsr() ))
{
@@ -2442,11 +2443,11 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx )
if( pTmp->IsA( TYPE( SwCrsrShell )))
{
SwCrsrShell* pSh = (SwCrsrShell*)pTmp;
- if( pSh->pCrsrStk )
- pSh->_ParkPams( pNew, &pSh->pCrsrStk );
+ if( pSh->m_pCrsrStk )
+ pSh->_ParkPams( pNew, &pSh->m_pCrsrStk );
- pSh->_ParkPams( pNew, &pSh->pCurCrsr );
- if( pSh->pTblCrsr )
+ pSh->_ParkPams( pNew, &pSh->m_pCurCrsr );
+ if( pSh->m_pTblCrsr )
{
// set table cursor always to 0 and the current one always to
// the beginning of the table
@@ -2455,7 +2456,7 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx )
if ( pTblNd )
{
pTCrsr->DeleteMark();
- pSh->pCurCrsr->GetPoint()->nNode = *pTblNd;
+ pSh->m_pCurCrsr->GetPoint()->nNode = *pTblNd;
}
}
}
@@ -2471,35 +2472,35 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx )
*/
SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin )
: ViewShell( rShell, pInitWin ),
- SwModify( 0 ), pCrsrStk( 0 ), pBlockCrsr( 0 ), pTblCrsr( 0 ),
- pBoxIdx( 0 ), pBoxPtr( 0 ), nCrsrMove( 0 ), nBasicActionCnt( 0 ),
- eMvState( MV_NONE ),
- sMarkedListId(),
- nMarkedListLevel( 0 )
+ SwModify( 0 ), m_pCrsrStk( 0 ), m_pBlockCrsr( 0 ), m_pTblCrsr( 0 ),
+ m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ),
+ m_eMvState( MV_NONE ),
+ m_sMarkedListId(),
+ m_nMarkedListLevel( 0 )
{
SET_CURR_SHELL( this );
// only keep the position of the current cursor of the copy shell
- pCurCrsr = new SwShellCrsr( *this, *(rShell.pCurCrsr->GetPoint()) );
- pCurCrsr->GetCntntNode()->Add( this );
+ m_pCurCrsr = new SwShellCrsr( *this, *(rShell.m_pCurCrsr->GetPoint()) );
+ m_pCurCrsr->GetCntntNode()->Add( this );
- bAllProtect = bVisPortChgd = bChgCallFlag = bInCMvVisportChgd =
- bGCAttr = bIgnoreReadonly = bSelTblCells = bBasicHideCrsr =
- bOverwriteCrsr = sal_False;
- bCallChgLnk = bHasFocus = bSVCrsrVis = bAutoUpdateCells = sal_True;
- bSetCrsrInReadOnly = sal_True;
- pVisCrsr = new SwVisCrsr( this );
- mbMacroExecAllowed = rShell.IsMacroExecAllowed();
+ m_bAllProtect = m_bVisPortChgd = m_bChgCallFlag = m_bInCMvVisportChgd =
+ m_bGCAttr = m_bIgnoreReadonly = m_bSelTblCells = m_bBasicHideCrsr =
+ m_bOverwriteCrsr = sal_False;
+ m_bCallChgLnk = m_bHasFocus = m_bSVCrsrVis = m_bAutoUpdateCells = sal_True;
+ m_bSetCrsrInReadOnly = sal_True;
+ m_pVisCrsr = new SwVisCrsr( this );
+ m_bMacroExecAllowed = rShell.IsMacroExecAllowed();
}
/// default constructor
SwCrsrShell::SwCrsrShell( SwDoc& rDoc, Window *pInitWin,
const SwViewOption *pInitOpt )
: ViewShell( rDoc, pInitWin, pInitOpt ),
- SwModify( 0 ), pCrsrStk( 0 ), pBlockCrsr( 0 ), pTblCrsr( 0 ),
- pBoxIdx( 0 ), pBoxPtr( 0 ), nCrsrMove( 0 ), nBasicActionCnt( 0 ),
- eMvState( MV_NONE ), // state for crsr-travelling - GetCrsrOfst
- sMarkedListId(),
- nMarkedListLevel( 0 )
+ SwModify( 0 ), m_pCrsrStk( 0 ), m_pBlockCrsr( 0 ), m_pTblCrsr( 0 ),
+ m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ),
+ m_eMvState( MV_NONE ), // state for crsr-travelling - GetCrsrOfst
+ m_sMarkedListId(),
+ m_nMarkedListLevel( 0 )
{
SET_CURR_SHELL( this );
// create initial cursor and set it to first content position
@@ -2508,20 +2509,20 @@ SwCrsrShell::SwCrsrShell( SwDoc& rDoc, Window *pInitWin,
SwNodeIndex aNodeIdx( *rNds.GetEndOfContent().StartOfSectionNode() );
SwCntntNode* pCNd = rNds.GoNext( &aNodeIdx ); // go to the first ContentNode
- pCurCrsr = new SwShellCrsr( *this, SwPosition( aNodeIdx, SwIndex( pCNd, 0 )));
+ m_pCurCrsr = new SwShellCrsr( *this, SwPosition( aNodeIdx, SwIndex( pCNd, 0 )));
// Register shell as dependent at current node. As a result all attribute
// changes can be forwarded via the Link.
pCNd->Add( this );
- bAllProtect = bVisPortChgd = bChgCallFlag = bInCMvVisportChgd =
- bGCAttr = bIgnoreReadonly = bSelTblCells = bBasicHideCrsr =
- bOverwriteCrsr = sal_False;
- bCallChgLnk = bHasFocus = bSVCrsrVis = bAutoUpdateCells = sal_True;
- bSetCrsrInReadOnly = sal_True;
+ m_bAllProtect = m_bVisPortChgd = m_bChgCallFlag = m_bInCMvVisportChgd =
+ m_bGCAttr = m_bIgnoreReadonly = m_bSelTblCells = m_bBasicHideCrsr =
+ m_bOverwriteCrsr = sal_False;
+ m_bCallChgLnk = m_bHasFocus = m_bSVCrsrVis = m_bAutoUpdateCells = sal_True;
+ m_bSetCrsrInReadOnly = sal_True;
- pVisCrsr = new SwVisCrsr( this );
- mbMacroExecAllowed = true;
+ m_pVisCrsr = new SwVisCrsr( this );
+ m_bMacroExecAllowed = true;
}
@@ -2530,25 +2531,25 @@ SwCrsrShell::~SwCrsrShell()
{
// if it is not the last view then at least the field should be updated
if( GetNext() != this )
- CheckTblBoxCntnt( pCurCrsr->GetPoint() );
+ CheckTblBoxCntnt( m_pCurCrsr->GetPoint() );
else
ClearTblBoxCntnt();
- delete pVisCrsr;
- delete pBlockCrsr;
- delete pTblCrsr;
+ delete m_pVisCrsr;
+ delete m_pBlockCrsr;
+ delete m_pTblCrsr;
// release cursors
- while(pCurCrsr->GetNext() != pCurCrsr)
- delete pCurCrsr->GetNext();
- delete pCurCrsr;
+ while(m_pCurCrsr->GetNext() != m_pCurCrsr)
+ delete m_pCurCrsr->GetNext();
+ delete m_pCurCrsr;
// free stack
- if( pCrsrStk )
+ if( m_pCrsrStk )
{
- while( pCrsrStk->GetNext() != pCrsrStk )
- delete pCrsrStk->GetNext();
- delete pCrsrStk;
+ while( m_pCrsrStk->GetNext() != m_pCrsrStk )
+ delete m_pCrsrStk->GetNext();
+ delete m_pCrsrStk;
}
// #i54025# - do not give a HTML parser that might potentially hang as
@@ -2559,11 +2560,11 @@ SwCrsrShell::~SwCrsrShell()
SwShellCrsr* SwCrsrShell::getShellCrsr( bool bBlock )
{
- if( pTblCrsr )
- return pTblCrsr;
- if( pBlockCrsr && bBlock )
- return &pBlockCrsr->getShellCrsr();
- return pCurCrsr;
+ if( m_pTblCrsr )
+ return m_pTblCrsr;
+ if( m_pBlockCrsr && bBlock )
+ return &m_pBlockCrsr->getShellCrsr();
+ return m_pCurCrsr;
}
/** Should WaitPtr be switched on for the clipboard?
@@ -2585,27 +2586,27 @@ bool SwCrsrShell::ShouldWait() const
size_t SwCrsrShell::UpdateTblSelBoxes()
{
- if (pTblCrsr && (pTblCrsr->IsChgd() || !pTblCrsr->GetSelectedBoxesCount()))
+ if (m_pTblCrsr && (m_pTblCrsr->IsChgd() || !m_pTblCrsr->GetSelectedBoxesCount()))
{
- GetLayout()->MakeTblCrsrs( *pTblCrsr );
+ GetLayout()->MakeTblCrsrs( *m_pTblCrsr );
}
- return (pTblCrsr) ? pTblCrsr->GetSelectedBoxesCount() : 0;
+ return (m_pTblCrsr) ? m_pTblCrsr->GetSelectedBoxesCount() : 0;
}
/// show the current selected "object"
void SwCrsrShell::MakeSelVisible()
{
- OSL_ENSURE( bHasFocus, "no focus but cursor should be made visible?" );
- if( aCrsrHeight.Y() < aCharRect.Height() && aCharRect.Height() > VisArea().Height() )
+ OSL_ENSURE( m_bHasFocus, "no focus but cursor should be made visible?" );
+ if( m_aCrsrHeight.Y() < m_aCharRect.Height() && m_aCharRect.Height() > VisArea().Height() )
{
- SwRect aTmp( aCharRect );
- long nDiff = aCharRect.Height() - VisArea().Height();
- if( nDiff < aCrsrHeight.X() )
- aTmp.Top( nDiff + aCharRect.Top() );
+ SwRect aTmp( m_aCharRect );
+ long nDiff = m_aCharRect.Height() - VisArea().Height();
+ if( nDiff < m_aCrsrHeight.X() )
+ aTmp.Top( nDiff + m_aCharRect.Top() );
else
{
- aTmp.Top( aCrsrHeight.X() + aCharRect.Top() );
- aTmp.Height( aCrsrHeight.Y() );
+ aTmp.Top( m_aCrsrHeight.X() + m_aCharRect.Top() );
+ aTmp.Height( m_aCrsrHeight.Y() );
}
if( !aTmp.HasArea() )
{
@@ -2616,11 +2617,11 @@ void SwCrsrShell::MakeSelVisible()
}
else
{
- if( aCharRect.HasArea() )
- MakeVisible( aCharRect );
+ if( m_aCharRect.HasArea() )
+ MakeVisible( m_aCharRect );
else
{
- SwRect aTmp( aCharRect );
+ SwRect aTmp( m_aCharRect );
aTmp.SSize().Height() += 1; aTmp.SSize().Width() += 1;
MakeVisible( aTmp );
}
@@ -2630,33 +2631,33 @@ void SwCrsrShell::MakeSelVisible()
/// search a valid content position (not protected/hidden)
sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
{
- if( pTblCrsr )
+ if( m_pTblCrsr )
{
OSL_ENSURE( !this, "Did not remove table selection!" );
return sal_False;
}
// #i45129# - everything is allowed in UI-readonly
- if( !bAllProtect && GetDoc()->GetDocShell() &&
+ if( !m_bAllProtect && GetDoc()->GetDocShell() &&
GetDoc()->GetDocShell()->IsReadOnlyUI() )
return sal_True;
- if( pCurCrsr->HasMark() )
+ if( m_pCurCrsr->HasMark() )
ClearMark();
// first check for frames
- SwNodeIndex& rNdIdx = pCurCrsr->GetPoint()->nNode;
+ SwNodeIndex& rNdIdx = m_pCurCrsr->GetPoint()->nNode;
sal_uLong nNdIdx = rNdIdx.GetIndex(); // keep backup
SwNodes& rNds = mpDoc->GetNodes();
SwCntntNode* pCNd = rNdIdx.GetNode().GetCntntNode();
const SwCntntFrm * pFrm;
- if( pCNd && 0 != (pFrm = pCNd->getLayoutFrm( GetLayout(),0,pCurCrsr->GetPoint(),sal_False)) &&
+ if( pCNd && 0 != (pFrm = pCNd->getLayoutFrm( GetLayout(),0,m_pCurCrsr->GetPoint(),sal_False)) &&
!IsReadOnlyAvailable() && pFrm->IsProtected() &&
nNdIdx < rNds.GetEndOfExtras().GetIndex() )
{
// skip protected frame
- SwPaM aPam( *pCurCrsr->GetPoint() );
+ SwPaM aPam( *m_pCurCrsr->GetPoint() );
aPam.SetMark();
aPam.GetMark()->nNode = rNds.GetEndOfContent();
aPam.GetPoint()->nNode = *pCNd->EndOfSectionNode();
@@ -2673,13 +2674,13 @@ sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
rNdIdx = nNdIdx; // back to old node
return sal_False;
}
- *pCurCrsr->GetPoint() = *aPam.GetPoint();
+ *m_pCurCrsr->GetPoint() = *aPam.GetPoint();
}
else if( bOnlyText && pCNd && pCNd->IsNoTxtNode() )
{
// set to beginning of document
rNdIdx = mpDoc->GetNodes().GetEndOfExtras();
- pCurCrsr->GetPoint()->nContent.Assign( mpDoc->GetNodes().GoNext(
+ m_pCurCrsr->GetPoint()->nContent.Assign( mpDoc->GetNodes().GoNext(
&rNdIdx ), 0 );
nNdIdx = rNdIdx.GetIndex();
}
@@ -2714,7 +2715,7 @@ sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
// if we're successful, set the new position
if( ! aPam.GetNode()->IsProtect() )
{
- *pCurCrsr->GetPoint() = *aPam.GetPoint();
+ *m_pCurCrsr->GetPoint() = *aPam.GetPoint();
}
}
@@ -2741,9 +2742,9 @@ sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
if( pCNd->FindTableNode() )
{
SwCallLink aTmp( *this );
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
aTmp.nNdTyp = 0; // don't do anything in DTOR
- if( !pCurCrsr->IsInProtectTable( sal_True, sal_True ) )
+ if( !m_pCurCrsr->IsInProtectTable( sal_True, sal_True ) )
{
const SwSectionNode* pSNd = pCNd->FindSectionNode();
if( !pSNd || !pSNd->GetSection().IsHiddenFlag()
@@ -2789,7 +2790,7 @@ sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
{
pCNd = rNdIdx.GetNode().GetCntntNode();
xub_StrLen nCntnt = rNdIdx.GetIndex() < nNdIdx ? pCNd->Len() : 0;
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, nCntnt );
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, nCntnt );
}
else
{
@@ -2799,7 +2800,7 @@ sal_Bool SwCrsrShell::FindValidCntntNode( sal_Bool bOnlyText )
{
SwCrsrMoveState aTmpState( MV_NONE );
aTmpState.bSetInReadOnly = IsReadOnlyAvailable();
- GetLayout()->GetCrsrOfst( pCurCrsr->GetPoint(), pCurCrsr->GetPtPos(),
+ GetLayout()->GetCrsrOfst( m_pCurCrsr->GetPoint(), m_pCurCrsr->GetPtPos(),
&aTmpState );
}
}
@@ -2843,7 +2844,7 @@ void SwCrsrShell::SetReadOnlyAvailable( sal_Bool bFlag )
// *never* switch in GlobalDoc
if( (!GetDoc()->GetDocShell() ||
!GetDoc()->GetDocShell()->IsA( SwGlobalDocShell::StaticType() )) &&
- bFlag != bSetCrsrInReadOnly )
+ bFlag != m_bSetCrsrInReadOnly )
{
// If the flag is switched off then all selections need to be
// invalidated. Otherwise we would trust that nothing protected is selected.
@@ -2851,7 +2852,7 @@ void SwCrsrShell::SetReadOnlyAvailable( sal_Bool bFlag )
{
ClearMark();
}
- bSetCrsrInReadOnly = bFlag;
+ m_bSetCrsrInReadOnly = bFlag;
UpdateCrsr();
}
}
@@ -2861,17 +2862,17 @@ sal_Bool SwCrsrShell::HasReadonlySel(bool bAnnotationMode) const
sal_Bool bRet = sal_False;
if( IsReadOnlyAvailable() || GetViewOptions()->IsFormView() )
{
- if( pTblCrsr )
- bRet = pTblCrsr->HasReadOnlyBoxSel() ||
- pTblCrsr->HasReadonlySel( GetViewOptions()->IsFormView() );
+ if( m_pTblCrsr )
+ bRet = m_pTblCrsr->HasReadOnlyBoxSel() ||
+ m_pTblCrsr->HasReadonlySel( GetViewOptions()->IsFormView() );
else
{
- const SwPaM* pCrsr = pCurCrsr;
+ const SwPaM* pCrsr = m_pCurCrsr;
do {
if( pCrsr->HasReadonlySel( GetViewOptions()->IsFormView(), bAnnotationMode ) )
bRet = sal_True;
- } while( !bRet && pCurCrsr != ( pCrsr = (SwPaM*)pCrsr->GetNext() ));
+ } while( !bRet && m_pCurCrsr != ( pCrsr = (SwPaM*)pCrsr->GetNext() ));
}
}
return bRet;
@@ -2881,18 +2882,18 @@ sal_Bool SwCrsrShell::IsSelFullPara() const
{
sal_Bool bRet = sal_False;
- if( pCurCrsr->GetPoint()->nNode.GetIndex() ==
- pCurCrsr->GetMark()->nNode.GetIndex() && pCurCrsr == pCurCrsr->GetNext() )
+ if( m_pCurCrsr->GetPoint()->nNode.GetIndex() ==
+ m_pCurCrsr->GetMark()->nNode.GetIndex() && m_pCurCrsr == m_pCurCrsr->GetNext() )
{
- xub_StrLen nStt = pCurCrsr->GetPoint()->nContent.GetIndex(),
- nEnd = pCurCrsr->GetMark()->nContent.GetIndex();
+ xub_StrLen nStt = m_pCurCrsr->GetPoint()->nContent.GetIndex(),
+ nEnd = m_pCurCrsr->GetMark()->nContent.GetIndex();
if( nStt > nEnd )
{
xub_StrLen nTmp = nStt;
nStt = nEnd;
nEnd = nTmp;
}
- const SwCntntNode* pCNd = pCurCrsr->GetCntntNode();
+ const SwCntntNode* pCNd = m_pCurCrsr->GetCntntNode();
bRet = pCNd && !nStt && nEnd == pCNd->Len();
}
return bRet;
@@ -2900,8 +2901,8 @@ sal_Bool SwCrsrShell::IsSelFullPara() const
short SwCrsrShell::GetTextDirection( const Point* pPt ) const
{
- SwPosition aPos( *pCurCrsr->GetPoint() );
- Point aPt( pPt ? *pPt : pCurCrsr->GetPtPos() );
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
+ Point aPt( pPt ? *pPt : m_pCurCrsr->GetPtPos() );
if( pPt )
{
SwCrsrMoveState aTmpState( MV_NONE );
@@ -2932,9 +2933,9 @@ sal_Bool SwCrsrShell::IsInRightToLeftText( const Point* pPt ) const
bool SwCrsrShell::SelectHiddenRange()
{
bool bRet = false;
- if ( !GetViewOptions()->IsShowHiddenChar() && !pCurCrsr->HasMark() )
+ if ( !GetViewOptions()->IsShowHiddenChar() && !m_pCurCrsr->HasMark() )
{
- SwPosition& rPt = *(SwPosition*)pCurCrsr->GetPoint();
+ SwPosition& rPt = *(SwPosition*)m_pCurCrsr->GetPoint();
const SwTxtNode* pNode = rPt.nNode.GetNode().GetTxtNode();
if ( pNode )
{
@@ -2947,8 +2948,8 @@ bool SwCrsrShell::SelectHiddenRange()
if ( STRING_LEN != nHiddenStart )
{
// make selection:
- pCurCrsr->SetMark();
- pCurCrsr->GetMark()->nContent = nHiddenEnd;
+ m_pCurCrsr->SetMark();
+ m_pCurCrsr->GetMark()->nContent = nHiddenEnd;
bRet = true;
}
}
@@ -2964,11 +2965,11 @@ sal_uLong SwCrsrShell::Find( const SearchOptions& rSearchOpt,
FindRanges eRng,
int bReplace )
{
- if( pTblCrsr )
+ if( m_pTblCrsr )
GetCrsr();
- delete pTblCrsr, pTblCrsr = 0;
+ delete m_pTblCrsr, m_pTblCrsr = 0;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- sal_uLong nRet = pCurCrsr->Find( rSearchOpt, bSearchInNotes, eStart, eEnd,
+ sal_uLong nRet = m_pCurCrsr->Find( rSearchOpt, bSearchInNotes, eStart, eEnd,
bCancel, eRng, bReplace );
if( nRet || bCancel )
UpdateCrsr();
@@ -2981,11 +2982,11 @@ sal_uLong SwCrsrShell::Find( const SwTxtFmtColl& rFmtColl,
FindRanges eRng,
const SwTxtFmtColl* pReplFmt )
{
- if( pTblCrsr )
+ if( m_pTblCrsr )
GetCrsr();
- delete pTblCrsr, pTblCrsr = 0;
+ delete m_pTblCrsr, m_pTblCrsr = 0;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- sal_uLong nRet = pCurCrsr->Find( rFmtColl, eStart, eEnd, bCancel, eRng,
+ sal_uLong nRet = m_pCurCrsr->Find( rFmtColl, eStart, eEnd, bCancel, eRng,
pReplFmt );
if( nRet )
UpdateCrsr();
@@ -3000,11 +3001,11 @@ sal_uLong SwCrsrShell::Find( const SfxItemSet& rSet,
const SearchOptions* pSearchOpt,
const SfxItemSet* rReplSet )
{
- if( pTblCrsr )
+ if( m_pTblCrsr )
GetCrsr();
- delete pTblCrsr, pTblCrsr = 0;
+ delete m_pTblCrsr, m_pTblCrsr = 0;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- sal_uLong nRet = pCurCrsr->Find( rSet, bNoCollections, eStart, eEnd,
+ sal_uLong nRet = m_pCurCrsr->Find( rSet, bNoCollections, eStart, eEnd,
bCancel, eRng, pSearchOpt, rReplSet );
if( nRet )
UpdateCrsr();
@@ -3134,7 +3135,7 @@ void SwCrsrShell::ClearUpCrsrs()
// If at least one of the cursors in the ring have been deleted or replaced,
// remove the table cursor.
- if (pTblCrsr != NULL && bChanged)
+ if (m_pTblCrsr != NULL && bChanged)
TblCrsrToCursor();
}
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 97474237299e..b3ff53c18222 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -70,33 +70,33 @@ using namespace ::com::sun::star;
/// go to next/previous point on the same level
bool SwCrsrShell::GotoNextNum()
{
- bool bRet = GetDoc()->GotoNextNum( *pCurCrsr->GetPoint() );
+ bool bRet = GetDoc()->GotoNextNum( *m_pCurCrsr->GetPoint() );
if( bRet )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
if( !ActionPend() )
{
SET_CURR_SHELL( this );
// try to set cursor onto this position, at half of the char-
// SRectangle's height
- Point aPt( pCurCrsr->GetPtPos() );
- SwCntntFrm * pFrm = pCurCrsr->GetCntntNode()->getLayoutFrm( GetLayout(), &aPt,
- pCurCrsr->GetPoint() );
- pFrm->GetCharRect( aCharRect, *pCurCrsr->GetPoint() );
+ Point aPt( m_pCurCrsr->GetPtPos() );
+ SwCntntFrm * pFrm = m_pCurCrsr->GetCntntNode()->getLayoutFrm( GetLayout(), &aPt,
+ m_pCurCrsr->GetPoint() );
+ pFrm->GetCharRect( m_aCharRect, *m_pCurCrsr->GetPoint() );
pFrm->Calc();
if( pFrm->IsVertical() )
{
- aPt.X() = aCharRect.Center().X();
- aPt.Y() = pFrm->Frm().Top() + nUpDownX;
+ aPt.X() = m_aCharRect.Center().X();
+ aPt.Y() = pFrm->Frm().Top() + m_nUpDownX;
}
else
{
- aPt.Y() = aCharRect.Center().Y();
- aPt.X() = pFrm->Frm().Left() + nUpDownX;
+ aPt.Y() = m_aCharRect.Center().Y();
+ aPt.X() = pFrm->Frm().Left() + m_nUpDownX;
}
- pFrm->GetCrsrOfst( pCurCrsr->GetPoint(), aPt );
- bRet = !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ pFrm->GetCrsrOfst( m_pCurCrsr->GetPoint(), aPt );
+ bRet = !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS );
if( bRet )
UpdateCrsr(SwCrsrShell::UPDOWN |
@@ -110,33 +110,33 @@ bool SwCrsrShell::GotoNextNum()
bool SwCrsrShell::GotoPrevNum()
{
- bool bRet = GetDoc()->GotoPrevNum( *pCurCrsr->GetPoint() );
+ bool bRet = GetDoc()->GotoPrevNum( *m_pCurCrsr->GetPoint() );
if( bRet )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
if( !ActionPend() )
{
SET_CURR_SHELL( this );
// try to set cursor onto this position, at half of the char-
// SRectangle's height
- Point aPt( pCurCrsr->GetPtPos() );
- SwCntntFrm * pFrm = pCurCrsr->GetCntntNode()->getLayoutFrm( GetLayout(), &aPt,
- pCurCrsr->GetPoint() );
- pFrm->GetCharRect( aCharRect, *pCurCrsr->GetPoint() );
+ Point aPt( m_pCurCrsr->GetPtPos() );
+ SwCntntFrm * pFrm = m_pCurCrsr->GetCntntNode()->getLayoutFrm( GetLayout(), &aPt,
+ m_pCurCrsr->GetPoint() );
+ pFrm->GetCharRect( m_aCharRect, *m_pCurCrsr->GetPoint() );
pFrm->Calc();
if( pFrm->IsVertical() )
{
- aPt.X() = aCharRect.Center().X();
- aPt.Y() = pFrm->Frm().Top() + nUpDownX;
+ aPt.X() = m_aCharRect.Center().X();
+ aPt.Y() = pFrm->Frm().Top() + m_nUpDownX;
}
else
{
- aPt.Y() = aCharRect.Center().Y();
- aPt.X() = pFrm->Frm().Left() + nUpDownX;
+ aPt.Y() = m_aCharRect.Center().Y();
+ aPt.X() = pFrm->Frm().Left() + m_nUpDownX;
}
- pFrm->GetCrsrOfst( pCurCrsr->GetPoint(), aPt );
- bRet = !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
+ pFrm->GetCrsrOfst( m_pCurCrsr->GetPoint(), aPt );
+ bRet = !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS );
if( bRet )
UpdateCrsr(SwCrsrShell::UPDOWN |
@@ -259,21 +259,21 @@ sal_Bool SwCrsrShell::SetCrsrInHdFt( sal_uInt16 nDescNo, sal_Bool bInHeader )
pCNd = pMyDoc->GetNodes().GoNext( &aIdx );
const SwFrm* pFrm;
- Point aPt( pCurCrsr->GetPtPos() );
+ Point aPt( m_pCurCrsr->GetPtPos() );
if( pCNd && 0 != ( pFrm = pCNd->getLayoutFrm( GetLayout(), &aPt, 0, sal_False ) ))
{
// then we can set the cursor in here
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
ClearMark();
- SwPosition& rPos = *pCurCrsr->GetPoint();
+ SwPosition& rPos = *m_pCurCrsr->GetPoint();
rPos.nNode = *pCNd;
rPos.nContent.Assign( pCNd, 0 );
- bRet = !pCurCrsr->IsSelOvr();
+ bRet = !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
@@ -296,7 +296,7 @@ sal_Bool SwCrsrShell::GotoNextTOXBase( const String* pName )
const SwSectionNode* pSectNd;
if( TOX_CONTENT_SECTION == pSect->GetType() &&
0 != ( pSectNd = pSect->GetFmt()->GetSectionNode() ) &&
- pCurCrsr->GetPoint()->nNode < pSectNd->GetIndex() &&
+ m_pCurCrsr->GetPoint()->nNode < pSectNd->GetIndex() &&
( !pFnd || pFnd->GetIndex() > pSectNd->GetIndex() ) &&
( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTOXName() )
)
@@ -318,10 +318,10 @@ sal_Bool SwCrsrShell::GotoNextTOXBase( const String* pName )
if( pFnd )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->GetPoint()->nNode = *pFnd;
- pCurCrsr->GetPoint()->nContent.Assign( pFnd, 0 );
- bRet = !pCurCrsr->IsSelOvr();
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->GetPoint()->nNode = *pFnd;
+ m_pCurCrsr->GetPoint()->nContent.Assign( pFnd, 0 );
+ bRet = !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
}
@@ -341,7 +341,7 @@ sal_Bool SwCrsrShell::GotoPrevTOXBase( const String* pName )
const SwSectionNode* pSectNd;
if( TOX_CONTENT_SECTION == pSect->GetType() &&
0 != ( pSectNd = pSect->GetFmt()->GetSectionNode() ) &&
- pCurCrsr->GetPoint()->nNode > pSectNd->EndOfSectionIndex() &&
+ m_pCurCrsr->GetPoint()->nNode > pSectNd->EndOfSectionIndex() &&
( !pFnd || pFnd->GetIndex() < pSectNd->GetIndex() ) &&
( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTOXName() )
)
@@ -364,10 +364,10 @@ sal_Bool SwCrsrShell::GotoPrevTOXBase( const String* pName )
if( pFnd )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->GetPoint()->nNode = *pFnd;
- pCurCrsr->GetPoint()->nContent.Assign( pFnd, 0 );
- bRet = !pCurCrsr->IsSelOvr();
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->GetPoint()->nNode = *pFnd;
+ m_pCurCrsr->GetPoint()->nContent.Assign( pFnd, 0 );
+ bRet = !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
}
@@ -380,7 +380,7 @@ sal_Bool SwCrsrShell::GotoTOXMarkBase()
sal_Bool bRet = sal_False;
SwTOXMarks aMarks;
- sal_uInt16 nCnt = GetDoc()->GetCurTOXMark( *pCurCrsr->GetPoint(), aMarks );
+ sal_uInt16 nCnt = GetDoc()->GetCurTOXMark( *m_pCurCrsr->GetPoint(), aMarks );
if( nCnt )
{
// Take the 1. and get the index type. Search in its dependency list
@@ -407,11 +407,11 @@ sal_Bool SwCrsrShell::GotoTOXMarkBase()
( IsReadOnlyAvailable() || !pCFrm->IsProtected() ))
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->GetPoint()->nNode = *pCNd;
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
- bRet = !pCurCrsr->IsInProtectTable() &&
- !pCurCrsr->IsSelOvr();
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->GetPoint()->nNode = *pCNd;
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
+ bRet = !m_pCurCrsr->IsInProtectTable() &&
+ !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
break;
@@ -430,7 +430,7 @@ sal_Bool SwCrsrShell::GotoNxtPrvTblFormula( sal_Bool bNext, sal_Bool bOnlyErrors
return sal_False;
sal_Bool bFnd = sal_False;
- SwPosition& rPos = *pCurCrsr->GetPoint();
+ SwPosition& rPos = *m_pCurCrsr->GetPoint();
Point aPt;
SwPosition aFndPos( GetDoc()->GetNodes().GetEndOfContent() );
@@ -490,12 +490,12 @@ sal_Bool SwCrsrShell::GotoNxtPrvTblFormula( sal_Bool bNext, sal_Bool bOnlyErrors
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
aFndGEF.GetPosOfContent( rPos );
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
- bFnd = !pCurCrsr->IsSelOvr();
+ bFnd = !m_pCurCrsr->IsSelOvr();
if( bFnd )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
@@ -510,7 +510,7 @@ sal_Bool SwCrsrShell::GotoNxtPrvTOXMark( sal_Bool bNext )
return sal_False;
sal_Bool bFnd = sal_False;
- SwPosition& rPos = *pCurCrsr->GetPoint();
+ SwPosition& rPos = *m_pCurCrsr->GetPoint();
Point aPt;
SwPosition aFndPos( GetDoc()->GetNodes().GetEndOfContent() );
@@ -554,11 +554,11 @@ sal_Bool SwCrsrShell::GotoNxtPrvTOXMark( sal_Bool bNext )
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
aFndGEF.GetPosOfContent( rPos );
- bFnd = !pCurCrsr->IsSelOvr();
+ bFnd = !m_pCurCrsr->IsSelOvr();
if( bFnd )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
@@ -572,7 +572,7 @@ const SwTOXMark& SwCrsrShell::GotoTOXMark( const SwTOXMark& rStart,
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
const SwTOXMark& rNewMark = GetDoc()->GotoTOXMark( rStart, eDir,
IsReadOnlyAvailable() );
@@ -582,7 +582,7 @@ const SwTOXMark& SwCrsrShell::GotoTOXMark( const SwTOXMark& rStart,
rPos.nContent.Assign( rPos.nNode.GetNode().GetCntntNode(),
*rNewMark.GetTxtTOXMark()->GetStart() );
- if( !pCurCrsr->IsSelOvr() )
+ if( !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
@@ -740,7 +740,7 @@ sal_Bool SwCrsrShell::MoveFldType( const SwFieldType* pFldType, sal_Bool bNext,
SwCrsrSaveState aSaveState( *pCrsr );
rFnd.GetPosOfContent( *pCrsr->GetPoint() );
- sal_Bool bRet = !pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ sal_Bool bRet = !m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE );
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
@@ -931,17 +931,17 @@ sal_Bool SwCrsrShell::MakeOutlineSel( sal_uInt16 nSttPos, sal_uInt16 nEndPos,
KillPams();
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
// set end to the end of the previous content node
- pCurCrsr->GetPoint()->nNode = *pSttNd;
- pCurCrsr->GetPoint()->nContent.Assign( pSttNd->GetCntntNode(), 0 );
- pCurCrsr->SetMark();
- pCurCrsr->GetPoint()->nNode = *pEndNd;
- pCurCrsr->Move( fnMoveBackward, fnGoNode ); // end of predecessor
+ m_pCurCrsr->GetPoint()->nNode = *pSttNd;
+ m_pCurCrsr->GetPoint()->nContent.Assign( pSttNd->GetCntntNode(), 0 );
+ m_pCurCrsr->SetMark();
+ m_pCurCrsr->GetPoint()->nNode = *pEndNd;
+ m_pCurCrsr->Move( fnMoveBackward, fnGoNode ); // end of predecessor
// and everything is already selected
- sal_Bool bRet = !pCurCrsr->IsSelOvr();
+ sal_Bool bRet = !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
return bRet;
@@ -954,17 +954,17 @@ sal_Bool SwCrsrShell::GotoRefMark( const String& rRefMark, sal_uInt16 nSubType,
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
sal_uInt16 nPos;
SwTxtNode* pTxtNd = SwGetRefFieldType::FindAnchor( GetDoc(), rRefMark,
nSubType, nSeqNo, &nPos );
if( pTxtNd && pTxtNd->GetNodes().IsDocNodes() )
{
- pCurCrsr->GetPoint()->nNode = *pTxtNd;
- pCurCrsr->GetPoint()->nContent.Assign( pTxtNd, nPos );
+ m_pCurCrsr->GetPoint()->nNode = *pTxtNd;
+ m_pCurCrsr->GetPoint()->nContent.Assign( pTxtNd, nPos );
- if( !pCurCrsr->IsSelOvr() )
+ if( !m_pCurCrsr->IsSelOvr() )
{
UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
return sal_True;
@@ -991,7 +991,7 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( !IsTableMode() )
{
Point aPt( rPt );
- SwPosition aPos( *pCurCrsr->GetPoint() );
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
SwTxtNode* pTxtNd;
SwCntntFrm *pFrm(0);
@@ -1066,11 +1066,11 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bRet && bSetCrsr )
{
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
SwCallLink aLk( *this ); // watch Crsr-Moves
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = aPos;
- if( pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = aPos;
+ if( m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE) )
bRet = sal_False;
else
@@ -1106,10 +1106,10 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bSetCrsr )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = aPos;
- if( pCurCrsr->IsSelOvr() )
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = aPos;
+ if( m_pCurCrsr->IsSelOvr() )
{
// allow click fields in protected sections
// only placeholder is not possible
@@ -1159,7 +1159,7 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
bRet = sal_True;
if( bSetCrsr )
{
- *pCurCrsr->GetPoint() = aPos;
+ *m_pCurCrsr->GetPoint() = aPos;
if( !GotoFtnAnchor() )
bRet = sal_False;
}
@@ -1173,16 +1173,16 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bSetCrsr )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->GetPoint()->nNode = *((SwTxtFtn*)pTxtAttr)->GetStartNode();
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->GetPoint()->nNode = *((SwTxtFtn*)pTxtAttr)->GetStartNode();
SwCntntNode* pCNd = GetDoc()->GetNodes().GoNextSection(
- &pCurCrsr->GetPoint()->nNode,
+ &m_pCurCrsr->GetPoint()->nNode,
sal_True, !IsReadOnlyAvailable() );
if( pCNd )
{
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
- if( pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
+ if( m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE ))
bRet = sal_False;
else
@@ -1238,10 +1238,10 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bSetCrsr )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = aPos;
- if( pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = aPos;
+ if( m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE ) )
bRet = sal_False;
else
@@ -1283,11 +1283,11 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
bRet = sal_True;
if( bSetCrsr )
{
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
SwCallLink aLk( *this ); // watch Crsr-Moves
- pCurCrsr->DeleteMark();
- *pCurCrsr->GetPoint() = aPos;
- if( pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ m_pCurCrsr->DeleteMark();
+ *m_pCurCrsr->GetPoint() = aPos;
+ if( m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE) )
bRet = sal_False;
else
@@ -1383,9 +1383,9 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bSetCrsr )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
- *pCurCrsr->GetPoint() = aPos;
- if( pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
+ *m_pCurCrsr->GetPoint() = aPos;
+ if( m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE) )
bRet = sal_False;
else
@@ -1602,7 +1602,7 @@ sal_Bool SwCrsrShell::SelectTxtAttr( sal_uInt16 nWhich, sal_Bool bExpand,
if( !IsTableMode() )
{
- SwPosition& rPos = *pCurCrsr->GetPoint();
+ SwPosition& rPos = *m_pCurCrsr->GetPoint();
if( !pTxtAttr )
{
SwTxtNode* pTxtNd = rPos.nNode.GetNode().GetTxtNode();
@@ -1616,15 +1616,15 @@ sal_Bool SwCrsrShell::SelectTxtAttr( sal_uInt16 nWhich, sal_Bool bExpand,
if( pTxtAttr )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
rPos.nContent = *pTxtAttr->GetStart();
- pCurCrsr->SetMark();
+ m_pCurCrsr->SetMark();
const xub_StrLen* pEnd = pTxtAttr->GetEnd();
rPos.nContent = pEnd ? *pEnd : *pTxtAttr->GetStart() + 1;
- if( !pCurCrsr->IsSelOvr() )
+ if( !m_pCurCrsr->IsSelOvr() )
{
UpdateCrsr();
bRet = sal_True;
@@ -1673,7 +1673,7 @@ sal_Bool SwCrsrShell::GetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode,
&& GetDoc()->GetIDocumentUndoRedo().DoesUndo())
{
Point aPt( rPt );
- SwPosition aPos( *pCurCrsr->GetPoint() );
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
SwFillCrsrPos aFPos( eFillMode );
SwCrsrMoveState aTmpState( &aFPos );
@@ -1699,7 +1699,7 @@ sal_Bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
&& GetDoc()->GetIDocumentUndoRedo().DoesUndo())
{
Point aPt( rPt );
- SwPosition aPos( *pCurCrsr->GetPoint() );
+ SwPosition aPos( *m_pCurCrsr->GetPoint() );
SwFillCrsrPos aFPos( eFillMode );
SwCrsrMoveState aTmpState( &aFPos );
@@ -1746,18 +1746,18 @@ sal_Bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
GetDoc()->AppendTxtNode( aPos );
if( !n && pNextFmt )
{
- *pCurCrsr->GetPoint() = aPos;
- GetDoc()->SetTxtFmtColl( *pCurCrsr, pNextFmt, false );
+ *m_pCurCrsr->GetPoint() = aPos;
+ GetDoc()->SetTxtFmtColl( *m_pCurCrsr, pNextFmt, false );
}
if( n < aFPos.nColumnCnt )
{
- *pCurCrsr->GetPoint() = aPos;
- GetDoc()->InsertPoolItem( *pCurCrsr,
+ *m_pCurCrsr->GetPoint() = aPos;
+ GetDoc()->InsertPoolItem( *m_pCurCrsr,
SvxFmtBreakItem( SVX_BREAK_COLUMN_BEFORE, RES_BREAK ), 0);
}
}
- *pCurCrsr->GetPoint() = aPos;
+ *m_pCurCrsr->GetPoint() = aPos;
switch( aFPos.eMode )
{
case FILL_INDENT:
@@ -1778,7 +1778,7 @@ sal_Bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
if( SVX_ADJUST_LEFT != rAdj.GetAdjust() )
aSet.Put( SvxAdjustItem( SVX_ADJUST_LEFT, RES_PARATR_ADJUST ) );
- GetDoc()->InsertItemSet( *pCurCrsr, aSet, 0 );
+ GetDoc()->InsertItemSet( *m_pCurCrsr, aSet, 0 );
}
else {
OSL_ENSURE( !this, "No CntntNode" );
@@ -1794,7 +1794,7 @@ sal_Bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
if (aFPos.nSpaceCnt)
comphelper::string::padToLength(sInsert, sInsert.getLength() + aFPos.nSpaceCnt, ' ');
if (sInsert.getLength())
- GetDoc()->InsertString( *pCurCrsr, sInsert.makeStringAndClear());
+ GetDoc()->InsertString( *m_pCurCrsr, sInsert.makeStringAndClear());
}
// no break - still need to set orientation
case FILL_MARGIN:
@@ -1812,7 +1812,7 @@ sal_Bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
default:
break;
}
- GetDoc()->InsertPoolItem( *pCurCrsr, aAdj, 0 );
+ GetDoc()->InsertPoolItem( *m_pCurCrsr, aAdj, 0 );
}
break;
}
@@ -1833,10 +1833,10 @@ const SwRedline* SwCrsrShell::SelNextRedline()
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
- pFnd = GetDoc()->SelNextRedline( *pCurCrsr );
- if( pFnd && !pCurCrsr->IsInProtectTable() && !pCurCrsr->IsSelOvr() )
+ pFnd = GetDoc()->SelNextRedline( *m_pCurCrsr );
+ if( pFnd && !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
else
pFnd = 0;
@@ -1851,10 +1851,10 @@ const SwRedline* SwCrsrShell::SelPrevRedline()
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
- pFnd = GetDoc()->SelPrevRedline( *pCurCrsr );
- if( pFnd && !pCurCrsr->IsInProtectTable() && !pCurCrsr->IsSelOvr() )
+ pFnd = GetDoc()->SelPrevRedline( *m_pCurCrsr );
+ if( pFnd && !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
else
pFnd = 0;
@@ -1866,44 +1866,44 @@ const SwRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect
{
const SwRedline* pFnd = 0;
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
pFnd = GetDoc()->GetRedlineTbl()[ nArrPos ];
if( pFnd )
{
- *pCurCrsr->GetPoint() = *pFnd->Start();
+ *m_pCurCrsr->GetPoint() = *pFnd->Start();
SwCntntNode* pCNd;
- SwNodeIndex* pIdx = &pCurCrsr->GetPoint()->nNode;
+ SwNodeIndex* pIdx = &m_pCurCrsr->GetPoint()->nNode;
if( !pIdx->GetNode().IsCntntNode() &&
0 != ( pCNd = GetDoc()->GetNodes().GoNextSection( pIdx,
sal_True, IsReadOnlyAvailable() )) )
{
if( *pIdx <= pFnd->End()->nNode )
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
else
pFnd = 0;
}
if( pFnd && bSelect )
{
- pCurCrsr->SetMark();
+ m_pCurCrsr->SetMark();
if( nsRedlineType_t::REDLINE_FMTCOLL == pFnd->GetType() )
{
pCNd = pIdx->GetNode().GetCntntNode();
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
- pCurCrsr->GetMark()->nContent.Assign( pCNd, 0 );
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
+ m_pCurCrsr->GetMark()->nContent.Assign( pCNd, 0 );
}
else
- *pCurCrsr->GetPoint() = *pFnd->End();
+ *m_pCurCrsr->GetPoint() = *pFnd->End();
- pIdx = &pCurCrsr->GetPoint()->nNode;
+ pIdx = &m_pCurCrsr->GetPoint()->nNode;
if( !pIdx->GetNode().IsCntntNode() &&
0 != ( pCNd = GetDoc()->GetNodes().GoPrevSection( pIdx,
sal_True, IsReadOnlyAvailable() )) )
{
- if( *pIdx >= pCurCrsr->GetMark()->nNode )
- pCurCrsr->GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
+ if( *pIdx >= m_pCurCrsr->GetMark()->nNode )
+ m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
else
pFnd = 0;
}
@@ -1911,20 +1911,20 @@ const SwRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect
if( !pFnd )
{
- pCurCrsr->DeleteMark();
- pCurCrsr->RestoreSavePos();
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->RestoreSavePos();
}
- else if( bSelect && *pCurCrsr->GetMark() == *pCurCrsr->GetPoint() )
- pCurCrsr->DeleteMark();
+ else if( bSelect && *m_pCurCrsr->GetMark() == *m_pCurCrsr->GetPoint() )
+ m_pCurCrsr->DeleteMark();
- if( pFnd && !pCurCrsr->IsInProtectTable() && !pCurCrsr->IsSelOvr() )
+ if( pFnd && !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE
| SwCrsrShell::READONLY );
else
{
pFnd = 0;
if( bSelect )
- pCurCrsr->DeleteMark();
+ m_pCurCrsr->DeleteMark();
}
}
return pFnd;
@@ -1956,7 +1956,7 @@ const SwRedline* SwCrsrShell::GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect
{
// Check for overlaps. These can happen when FmtColl-
// Redlines were streched over a whole paragraph
- SwPaM* pCur = pCurCrsr;
+ SwPaM* pCur = m_pCurCrsr;
SwPaM* pNextPam = (SwPaM*)pCur->GetNext();
SwPosition* pCStt = pCur->Start(), *pCEnd = pCur->End();
while( pCur != pNextPam )
@@ -2049,7 +2049,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
Point aPt;
_SetGetExpFld aCmpPos( SwPosition( bNext ? *pBodyEndNd : *pBodySttNd ) );
- _SetGetExpFld aCurPos( bNext ? *pCurCrsr->End() : *pCurCrsr->Start() );
+ _SetGetExpFld aCurPos( bNext ? *m_pCurCrsr->End() : *m_pCurCrsr->Start() );
if( aCurPos.GetNode() < nBodySttNdIdx )
{
const SwCntntNode* pCNd = aCurPos.GetNodeFromCntnt()->GetCntntNode();
@@ -2131,14 +2131,14 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
// found a text attribute ?
if( pFndAttr )
{
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
- aCmpPos.GetPosOfContent( *pCurCrsr->GetPoint() );
- pCurCrsr->DeleteMark();
- pCurCrsr->SetMark();
- pCurCrsr->GetPoint()->nContent = *pFndAttr->SwTxtAttr::GetEnd();
+ aCmpPos.GetPosOfContent( *m_pCurCrsr->GetPoint() );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SetMark();
+ m_pCurCrsr->GetPoint()->nContent = *pFndAttr->SwTxtAttr::GetEnd();
- if( !pCurCrsr->IsInProtectTable() && !pCurCrsr->IsSelOvr() )
+ if( !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
{
UpdateCrsr( SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|
SwCrsrShell::READONLY );
diff --git a/sw/source/core/crsr/crstrvl1.cxx b/sw/source/core/crsr/crstrvl1.cxx
index 27a3bcee3648..495d3ea17532 100644
--- a/sw/source/core/crsr/crstrvl1.cxx
+++ b/sw/source/core/crsr/crstrvl1.cxx
@@ -23,27 +23,27 @@
sal_Bool SwCrsrShell::IsStartWord( sal_Int16 nWordType ) const
{
- return pCurCrsr->IsStartWord( nWordType );
+ return m_pCurCrsr->IsStartWord( nWordType );
}
sal_Bool SwCrsrShell::IsEndWord( sal_Int16 nWordType ) const
{
- return pCurCrsr->IsEndWord( nWordType );
+ return m_pCurCrsr->IsEndWord( nWordType );
}
sal_Bool SwCrsrShell::IsInWord( sal_Int16 nWordType ) const
{
- return pCurCrsr->IsInWord( nWordType );
+ return m_pCurCrsr->IsInWord( nWordType );
}
sal_Bool SwCrsrShell::IsStartSentence() const
{
- return pCurCrsr->IsStartEndSentence( false );
+ return m_pCurCrsr->IsStartEndSentence( false );
}
sal_Bool SwCrsrShell::IsEndSentence() const
{
- return pCurCrsr->IsStartEndSentence( true );
+ return m_pCurCrsr->IsStartEndSentence( true );
}
@@ -79,12 +79,12 @@ sal_Bool SwCrsrShell::GoStartSentence()
sal_Bool SwCrsrShell::SelectWord( const Point* pPt )
{
- return pCurCrsr->SelectWord( this, pPt );
+ return m_pCurCrsr->SelectWord( this, pPt );
}
sal_Bool SwCrsrShell::ExpandToSentenceBorders()
{
- return pCurCrsr->ExpandToSentenceBorders();
+ return m_pCurCrsr->ExpandToSentenceBorders();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/crsr/trvlcol.cxx b/sw/source/core/crsr/trvlcol.cxx
index 262ab7b87230..ef7865653a25 100644
--- a/sw/source/core/crsr/trvlcol.cxx
+++ b/sw/source/core/crsr/trvlcol.cxx
@@ -81,7 +81,7 @@ SwPosColumn fnColumnEnd = &GetColumnEnd;
sal_Bool SwCrsrShell::MoveColumn( SwWhichColumn fnWhichCol, SwPosColumn fnPosCol )
{
sal_Bool bRet = sal_False;
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
{
SwLayoutFrm* pLayFrm = GetCurrFrm()->GetUpper();
if( pLayFrm && 0 != ( pLayFrm = (*fnWhichCol)( pLayFrm )) )
@@ -91,7 +91,7 @@ sal_Bool SwCrsrShell::MoveColumn( SwWhichColumn fnWhichCol, SwPosColumn fnPosCol
{
SET_CURR_SHELL( this );
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
pCnt->Calc();
@@ -102,10 +102,10 @@ sal_Bool SwCrsrShell::MoveColumn( SwWhichColumn fnWhichCol, SwPosColumn fnPosCol
aPt.Y() += pCnt->Prt().Height();
}
- pCnt->GetCrsrOfst( pCurCrsr->GetPoint(), aPt );
+ pCnt->GetCrsrOfst( m_pCurCrsr->GetPoint(), aPt );
- if( !pCurCrsr->IsInProtectTable( sal_True ) &&
- !pCurCrsr->IsSelOvr() )
+ if( !m_pCurCrsr->IsInProtectTable( sal_True ) &&
+ !m_pCurCrsr->IsSelOvr() )
{
UpdateCrsr();
bRet = sal_True;
diff --git a/sw/source/core/crsr/trvlfnfl.cxx b/sw/source/core/crsr/trvlfnfl.cxx
index 5355769b2801..3a88cf6264b1 100644
--- a/sw/source/core/crsr/trvlfnfl.cxx
+++ b/sw/source/core/crsr/trvlfnfl.cxx
@@ -153,11 +153,11 @@ sal_Bool SwCrsrShell::GotoFtnAnchor()
{
// jump from footnote to anchor
SwCallLink aLk( *this ); // watch Crsr-Moves
- sal_Bool bRet = pCurCrsr->GotoFtnAnchor();
+ sal_Bool bRet = m_pCurCrsr->GotoFtnAnchor();
if( bRet )
{
// special treatment for table header row
- pCurCrsr->GetPtPos() = Point();
+ m_pCurCrsr->GetPtPos() = Point();
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
}
@@ -314,10 +314,10 @@ sal_Bool SwCrsrShell::GotoFlyAnchor()
return sal_False;
SwCallLink aLk( *this ); // watch Crsr-Moves
- SwCrsrSaveState aSaveState( *pCurCrsr );
+ SwCrsrSaveState aSaveState( *m_pCurCrsr );
// jump in BodyFrame closest to FlyFrame
- SwRect aTmpRect( aCharRect );
+ SwRect aTmpRect( m_aCharRect );
if( !pFrm->Frm().IsInside( aTmpRect ))
aTmpRect = pFrm->Frm();
Point aPt( aTmpRect.Left(), aTmpRect.Top() +
@@ -328,9 +328,9 @@ sal_Bool SwCrsrShell::GotoFlyAnchor()
const SwPageFrm* pPageFrm = pFrm->FindPageFrm();
const SwCntntFrm* pFndFrm = pPageFrm->GetCntntPos( aPt, sal_False, sal_True );
- pFndFrm->GetCrsrOfst( pCurCrsr->GetPoint(), aPt );
+ pFndFrm->GetCrsrOfst( m_pCurCrsr->GetPoint(), aPt );
- sal_Bool bRet = !pCurCrsr->IsInProtectTable() && !pCurCrsr->IsSelOvr();
+ sal_Bool bRet = !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr();
if( bRet )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
diff --git a/sw/source/core/crsr/trvlreg.cxx b/sw/source/core/crsr/trvlreg.cxx
index c9174131cea1..26a96047f4a0 100644
--- a/sw/source/core/crsr/trvlreg.cxx
+++ b/sw/source/core/crsr/trvlreg.cxx
@@ -233,7 +233,7 @@ sal_Bool SwCursor::MoveRegion( SwWhichRegion fnWhichRegion, SwPosRegion fnPosReg
sal_Bool SwCrsrShell::MoveRegion( SwWhichRegion fnWhichRegion, SwPosRegion fnPosRegion )
{
SwCallLink aLk( *this ); // watch Crsr-Moves;call Link if needed
- sal_Bool bRet = !pTblCrsr && pCurCrsr->MoveRegion( fnWhichRegion, fnPosRegion );
+ sal_Bool bRet = !m_pTblCrsr && m_pCurCrsr->MoveRegion( fnWhichRegion, fnPosRegion );
if( bRet )
UpdateCrsr();
return bRet;
@@ -268,7 +268,7 @@ bool SwCursor::GotoRegion( const String& rName )
bool SwCrsrShell::GotoRegion( const String& rName )
{
SwCallLink aLk( *this ); // watch Crsr-Moves;call Link if needed
- bool bRet = !pTblCrsr && pCurCrsr->GotoRegion( rName );
+ bool bRet = !m_pTblCrsr && m_pCurCrsr->GotoRegion( rName );
if( bRet )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index 57b944f37d38..5d86e85e68e7 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -47,7 +47,7 @@ sal_Bool SwCrsrShell::GoNextCell( sal_Bool bAppendLine )
if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() ))
{
- SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwCursor* pCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
SwCallLink aLk( *this ); // watch Crsr-Moves
bRet = sal_True;
@@ -107,7 +107,7 @@ sal_Bool SwCrsrShell::GoPrevCell()
sal_Bool bRet = sal_False;
if( IsTableMode() || IsCrsrInTbl() )
{
- SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwCursor* pCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
SwCallLink aLk( *this ); // watch Crsr-Moves
bRet = pCrsr->GoPrevCell();
if( bRet )
@@ -222,26 +222,26 @@ bool SwCrsrShell::_SelTblRowOrCol( bool bRow, bool bRowSimple )
}
// if no table cursor exists, create one
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
{
- pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() );
- pCurCrsr->DeleteMark();
- pCurCrsr->SwSelPaintRects::Hide();
+ m_pTblCrsr = new SwShellTableCrsr( *this, *m_pCurCrsr->GetPoint() );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SwSelPaintRects::Hide();
}
- pTblCrsr->DeleteMark();
+ m_pTblCrsr->DeleteMark();
// set start and end of a column
- pTblCrsr->GetPoint()->nNode = *pEnd->GetSttNd();
- pTblCrsr->Move( fnMoveForward, fnGoCntnt );
- pTblCrsr->SetMark();
- pTblCrsr->GetPoint()->nNode = *pStt->GetSttNd()->EndOfSectionNode();
- pTblCrsr->Move( fnMoveBackward, fnGoCntnt );
+ m_pTblCrsr->GetPoint()->nNode = *pEnd->GetSttNd();
+ m_pTblCrsr->Move( fnMoveForward, fnGoCntnt );
+ m_pTblCrsr->SetMark();
+ m_pTblCrsr->GetPoint()->nNode = *pStt->GetSttNd()->EndOfSectionNode();
+ m_pTblCrsr->Move( fnMoveBackward, fnGoCntnt );
// set PtPos 'close' to the reference table, otherwise we might get problems
// with the repeated headlines check in UpdateCrsr():
if ( !bRow )
- pTblCrsr->GetPtPos() = pMasterTabFrm->IsVertical()
+ m_pTblCrsr->GetPtPos() = pMasterTabFrm->IsVertical()
? pMasterTabFrm->Frm().TopRight()
: pMasterTabFrm->Frm().TopLeft();
@@ -262,22 +262,22 @@ sal_Bool SwCrsrShell::SelTbl()
SET_CURR_SHELL( this );
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
{
- pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() );
- pCurCrsr->DeleteMark();
- pCurCrsr->SwSelPaintRects::Hide();
+ m_pTblCrsr = new SwShellTableCrsr( *this, *m_pCurCrsr->GetPoint() );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SwSelPaintRects::Hide();
}
- pTblCrsr->DeleteMark();
- pTblCrsr->GetPoint()->nNode = *pTblNd;
- pTblCrsr->Move( fnMoveForward, fnGoCntnt );
- pTblCrsr->SetMark();
+ m_pTblCrsr->DeleteMark();
+ m_pTblCrsr->GetPoint()->nNode = *pTblNd;
+ m_pTblCrsr->Move( fnMoveForward, fnGoCntnt );
+ m_pTblCrsr->SetMark();
// set MkPos 'close' to the master table, otherwise we might get problems
// with the repeated headlines check in UpdateCrsr():
- pTblCrsr->GetMkPos() = pMasterTabFrm->IsVertical() ? pMasterTabFrm->Frm().TopRight() : pMasterTabFrm->Frm().TopLeft();
- pTblCrsr->GetPoint()->nNode = *pTblNd->EndOfSectionNode();
- pTblCrsr->Move( fnMoveBackward, fnGoCntnt );
+ m_pTblCrsr->GetMkPos() = pMasterTabFrm->IsVertical() ? pMasterTabFrm->Frm().TopRight() : pMasterTabFrm->Frm().TopLeft();
+ m_pTblCrsr->GetPoint()->nNode = *pTblNd->EndOfSectionNode();
+ m_pTblCrsr->Move( fnMoveBackward, fnGoCntnt );
UpdateCrsr();
return sal_True;
}
@@ -290,7 +290,7 @@ sal_Bool SwCrsrShell::SelTblBox()
// search for start node of our table box. If not found, exit realy
const SwStartNode* pStartNode =
- pCurCrsr->GetPoint()->nNode.GetNode().FindTableBoxStartNode();
+ m_pCurCrsr->GetPoint()->nNode.GetNode().FindTableBoxStartNode();
#if OSL_DEBUG_LEVEL > 0
// the old code checks whether we're in a table by asking the
@@ -308,27 +308,27 @@ sal_Bool SwCrsrShell::SelTblBox()
SET_CURR_SHELL( this );
// create a table cursor, if there isn't one already
- if( !pTblCrsr )
+ if( !m_pTblCrsr )
{
- pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() );
- pCurCrsr->DeleteMark();
- pCurCrsr->SwSelPaintRects::Hide();
+ m_pTblCrsr = new SwShellTableCrsr( *this, *m_pCurCrsr->GetPoint() );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SwSelPaintRects::Hide();
}
- // select the complete box with our shiny new pTblCrsr
+ // select the complete box with our shiny new m_pTblCrsr
// 1. delete mark, and move point to first content node in box
- pTblCrsr->DeleteMark();
- *(pTblCrsr->GetPoint()) = SwPosition( *pStartNode );
- pTblCrsr->Move( fnMoveForward, fnGoNode );
+ m_pTblCrsr->DeleteMark();
+ *(m_pTblCrsr->GetPoint()) = SwPosition( *pStartNode );
+ m_pTblCrsr->Move( fnMoveForward, fnGoNode );
// 2. set mark, and move point to last content node in box
- pTblCrsr->SetMark();
- *(pTblCrsr->GetPoint()) = SwPosition( *(pStartNode->EndOfSectionNode()) );
- pTblCrsr->Move( fnMoveBackward, fnGoNode );
+ m_pTblCrsr->SetMark();
+ *(m_pTblCrsr->GetPoint()) = SwPosition( *(pStartNode->EndOfSectionNode()) );
+ m_pTblCrsr->Move( fnMoveBackward, fnGoNode );
// 3. exchange
- pTblCrsr->Exchange();
+ m_pTblCrsr->Exchange();
// with some luck, UpdateCrsr() will now update everything that
// needs updateing
@@ -640,9 +640,9 @@ sal_Bool GotoCurrTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl,
sal_Bool SwCursor::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl )
{
sal_Bool bRet = sal_False;
- SwTableCursor* pTblCrsr = dynamic_cast<SwTableCursor*>(this);
+ SwTableCursor* m_pTblCrsr = dynamic_cast<SwTableCursor*>(this);
- if( pTblCrsr || !HasMark() )
+ if( m_pTblCrsr || !HasMark() )
{
SwCrsrSaveState aSaveState( *this );
bRet = (*fnWhichTbl)( *this, fnPosTbl, IsReadOnlyAvailable() ) &&
@@ -656,20 +656,20 @@ sal_Bool SwCrsrShell::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl )
{
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
- SwShellCrsr* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
+ SwShellCrsr* pCrsr = m_pTblCrsr ? m_pTblCrsr : m_pCurCrsr;
bool bCheckPos;
sal_Bool bRet;
sal_uLong nPtNd = 0;
xub_StrLen nPtCnt = 0;
- if ( !pTblCrsr && pCurCrsr->HasMark() )
+ if ( !m_pTblCrsr && m_pCurCrsr->HasMark() )
{
// switch to table mode
- pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() );
- pCurCrsr->DeleteMark();
- pCurCrsr->SwSelPaintRects::Hide();
- pTblCrsr->SetMark();
- pCrsr = pTblCrsr;
+ m_pTblCrsr = new SwShellTableCrsr( *this, *m_pCurCrsr->GetPoint() );
+ m_pCurCrsr->DeleteMark();
+ m_pCurCrsr->SwSelPaintRects::Hide();
+ m_pTblCrsr->SetMark();
+ pCrsr = m_pTblCrsr;
bCheckPos = false;
}
else
@@ -702,12 +702,12 @@ bool SwCrsrShell::IsTblComplexForChart()
// Here we may trigger table formatting so we better do that inside an action
StartAction();
- const SwTableNode* pTNd = pCurCrsr->GetPoint()->nNode.GetNode().FindTableNode();
+ const SwTableNode* pTNd = m_pCurCrsr->GetPoint()->nNode.GetNode().FindTableNode();
if( pTNd )
{
// in a table; check if table or section is balanced
String sSel;
- if( pTblCrsr )
+ if( m_pTblCrsr )
sSel = GetBoxNms();
bRet = pTNd->GetTable().IsTblComplexForChart( sSel );
}
@@ -725,7 +725,7 @@ String SwCrsrShell::GetBoxNms() const
if( IsTableMode() )
{
- SwCntntNode *pCNd = pTblCrsr->Start()->nNode.GetNode().GetCntntNode();
+ SwCntntNode *pCNd = m_pTblCrsr->Start()->nNode.GetNode().GetCntntNode();
pFrm = pCNd ? pCNd->getLayoutFrm( GetLayout() ) : 0;
if( !pFrm )
return sNm;
@@ -741,7 +741,7 @@ String SwCrsrShell::GetBoxNms() const
sNm = ((SwCellFrm*)pFrm)->GetTabBox()->GetName();
sNm += ':';
- pPos = pTblCrsr->End();
+ pPos = m_pTblCrsr->End();
}
else
{
@@ -770,10 +770,10 @@ String SwCrsrShell::GetBoxNms() const
bool SwCrsrShell::GotoTable( const String& rName )
{
SwCallLink aLk( *this ); // watch Crsr-Moves
- bool bRet = !pTblCrsr && pCurCrsr->GotoTable( rName );
+ bool bRet = !m_pTblCrsr && m_pCurCrsr->GotoTable( rName );
if( bRet )
{
- pCurCrsr->GetPtPos() = Point();
+ m_pCurCrsr->GetPtPos() = Point();
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );
}
@@ -783,7 +783,7 @@ bool SwCrsrShell::GotoTable( const String& rName )
sal_Bool SwCrsrShell::CheckTblBoxCntnt( const SwPosition* pPos )
{
- if( !pBoxIdx || !pBoxPtr || IsSelTblCells() || !IsAutoUpdateCells() )
+ if( !m_pBoxIdx || !m_pBoxPtr || IsSelTblCells() || !IsAutoUpdateCells() )
return sal_False;
// check if box content is consistent with given box format, reset if not
@@ -792,12 +792,12 @@ sal_Bool SwCrsrShell::CheckTblBoxCntnt( const SwPosition* pPos )
if( !pPos )
{
// get stored position
- if( pBoxIdx && pBoxPtr &&
- 0 != ( pSttNd = pBoxIdx->GetNode().GetStartNode() ) &&
+ if( m_pBoxIdx && m_pBoxPtr &&
+ 0 != ( pSttNd = m_pBoxIdx->GetNode().GetStartNode() ) &&
SwTableBoxStartNode == pSttNd->GetStartNodeType() &&
- pBoxPtr == pSttNd->FindTableNode()->GetTable().
- GetTblBox( pBoxIdx->GetIndex() ) )
- pChkBox = pBoxPtr;
+ m_pBoxPtr == pSttNd->FindTableNode()->GetTable().
+ GetTblBox( m_pBoxIdx->GetIndex() ) )
+ pChkBox = m_pBoxPtr;
}
else if( 0 != ( pSttNd = pPos->nNode.GetNode().
FindSttNodeByType( SwTableBoxStartNode )) )
@@ -815,8 +815,8 @@ sal_Bool SwCrsrShell::CheckTblBoxCntnt( const SwPosition* pPos )
// cursor not anymore in this section?
if( pChkBox && !pPos &&
- ( pCurCrsr->HasMark() || pCurCrsr->GetNext() != pCurCrsr ||
- pSttNd->GetIndex() + 1 == pCurCrsr->GetPoint()->nNode.GetIndex() ))
+ ( m_pCurCrsr->HasMark() || m_pCurCrsr->GetNext() != m_pCurCrsr ||
+ pSttNd->GetIndex() + 1 == m_pCurCrsr->GetPoint()->nNode.GetIndex() ))
pChkBox = 0;
// Did the content of a box change at all? This is important if e.g. Undo
@@ -851,44 +851,44 @@ void SwCrsrShell::SaveTblBoxCntnt( const SwPosition* pPos )
return ;
if( !pPos )
- pPos = pCurCrsr->GetPoint();
+ pPos = m_pCurCrsr->GetPoint();
SwStartNode* pSttNd = pPos->nNode.GetNode().FindSttNodeByType( SwTableBoxStartNode );
bool bCheckBox = false;
- if( pSttNd && pBoxIdx )
+ if( pSttNd && m_pBoxIdx )
{
- if( pSttNd == &pBoxIdx->GetNode() )
+ if( pSttNd == &m_pBoxIdx->GetNode() )
pSttNd = 0;
else
bCheckBox = true;
}
else
- bCheckBox = 0 != pBoxIdx;
+ bCheckBox = 0 != m_pBoxIdx;
if( bCheckBox )
{
- // check pBoxIdx
- SwPosition aPos( *pBoxIdx );
+ // check m_pBoxIdx
+ SwPosition aPos( *m_pBoxIdx );
CheckTblBoxCntnt( &aPos );
}
if( pSttNd )
{
- pBoxPtr = pSttNd->FindTableNode()->GetTable().GetTblBox( pSttNd->GetIndex() );
+ m_pBoxPtr = pSttNd->FindTableNode()->GetTable().GetTblBox( pSttNd->GetIndex() );
- if( pBoxIdx )
- *pBoxIdx = *pSttNd;
+ if( m_pBoxIdx )
+ *m_pBoxIdx = *pSttNd;
else
- pBoxIdx = new SwNodeIndex( *pSttNd );
+ m_pBoxIdx = new SwNodeIndex( *pSttNd );
}
}
void SwCrsrShell::ClearTblBoxCntnt()
{
- delete pBoxIdx, pBoxIdx = 0;
- pBoxPtr = 0;
+ delete m_pBoxIdx, m_pBoxIdx = 0;
+ m_pBoxPtr = 0;
}
sal_Bool SwCrsrShell::EndAllTblBoxEdit()
@@ -898,7 +898,7 @@ sal_Bool SwCrsrShell::EndAllTblBoxEdit()
do {
if( pSh->IsA( TYPE( SwCrsrShell ) ) )
bRet |= ((SwCrsrShell*)pSh)->CheckTblBoxCntnt(
- ((SwCrsrShell*)pSh)->pCurCrsr->GetPoint() );
+ ((SwCrsrShell*)pSh)->m_pCurCrsr->GetPoint() );
} while( this != (pSh = (ViewShell *)pSh->GetNext()) );
return bRet;
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 7566f406fd1a..271d6981b4d4 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -83,7 +83,7 @@ void SwVisCrsr::Show()
bIsVisible = true;
// display at all?
- if( pCrsrShell->VisArea().IsOver( pCrsrShell->aCharRect ) )
+ if( pCrsrShell->VisArea().IsOver( pCrsrShell->m_aCharRect ) )
_SetPosAndShow();
}
}
@@ -104,23 +104,23 @@ void SwVisCrsr::Hide()
void SwVisCrsr::_SetPosAndShow()
{
SwRect aRect;
- long nTmpY = pCrsrShell->aCrsrHeight.Y();
+ long nTmpY = pCrsrShell->m_aCrsrHeight.Y();
if( 0 > nTmpY )
{
nTmpY = -nTmpY;
aTxtCrsr.SetOrientation( 900 );
- aRect = SwRect( pCrsrShell->aCharRect.Pos(),
- Size( pCrsrShell->aCharRect.Height(), nTmpY ) );
- aRect.Pos().X() += pCrsrShell->aCrsrHeight.X();
+ aRect = SwRect( pCrsrShell->m_aCharRect.Pos(),
+ Size( pCrsrShell->m_aCharRect.Height(), nTmpY ) );
+ aRect.Pos().X() += pCrsrShell->m_aCrsrHeight.X();
if( pCrsrShell->IsOverwriteCrsr() )
aRect.Pos().Y() += aRect.Width();
}
else
{
aTxtCrsr.SetOrientation( 0 );
- aRect = SwRect( pCrsrShell->aCharRect.Pos(),
- Size( pCrsrShell->aCharRect.Width(), nTmpY ) );
- aRect.Pos().Y() += pCrsrShell->aCrsrHeight.X();
+ aRect = SwRect( pCrsrShell->m_aCharRect.Pos(),
+ Size( pCrsrShell->m_aCharRect.Width(), nTmpY ) );
+ aRect.Pos().Y() += pCrsrShell->m_aCrsrHeight.X();
}
// check if cursor should show the current cursor bidi level
@@ -316,16 +316,16 @@ void SwSelPaintRects::Invalidate( const SwRect& rRect )
// visible area, it is never aligned on one pixel at the right/bottom.
// This has to be determined here and if that is the case the
// rectangle has to be expanded.
- if( GetShell()->bVisPortChgd && 0 != ( nSz = size()) )
+ if( GetShell()->m_bVisPortChgd && 0 != ( nSz = size()) )
{
SwSelPaintRects::Get1PixelInLogic( *GetShell() );
iterator it = begin();
for( ; nSz--; ++it )
{
SwRect& rRectIt = *it;
- if( rRectIt.Right() == GetShell()->aOldRBPos.X() )
+ if( rRectIt.Right() == GetShell()->m_aOldRBPos.X() )
rRectIt.Right( rRectIt.Right() + nPixPtX );
- if( rRectIt.Bottom() == GetShell()->aOldRBPos.Y() )
+ if( rRectIt.Bottom() == GetShell()->m_aOldRBPos.Y() )
rRectIt.Bottom( rRectIt.Bottom() + nPixPtY );
}
}
diff --git a/sw/source/core/frmedt/tblsel.cxx b/sw/source/core/frmedt/tblsel.cxx
index f6e6c5a370f7..358a383f2dd1 100644
--- a/sw/source/core/frmedt/tblsel.cxx
+++ b/sw/source/core/frmedt/tblsel.cxx
@@ -679,9 +679,9 @@ sal_Bool IsFrmInTblSel( const SwRect& rUnion, const SwFrm* pCell )
sal_Bool GetAutoSumSel( const SwCrsrShell& rShell, SwCellFrms& rBoxes )
{
- SwShellCrsr* pCrsr = rShell.pCurCrsr;
+ SwShellCrsr* pCrsr = rShell.m_pCurCrsr;
if ( rShell.IsTableMode() )
- pCrsr = rShell.pTblCrsr;
+ pCrsr = rShell.m_pTblCrsr;
const SwLayoutFrm *pStart = pCrsr->GetCntntNode()->getLayoutFrm( rShell.GetLayout(),
&pCrsr->GetPtPos() )->GetUpper(),