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

sw: prefix members of SwUnoCrsr, SwUnoTableCrsr

Change-Id: Ie0e8041d6d62176e68c953be39e513c862d01c63
üst 5f76b2e5
...@@ -18,14 +18,16 @@ ...@@ -18,14 +18,16 @@
*/ */
#ifndef INCLUDED_SW_INC_UNOCRSR_HXX #ifndef INCLUDED_SW_INC_UNOCRSR_HXX
#define INCLUDED_SW_INC_UNOCRSR_HXX #define INCLUDED_SW_INC_UNOCRSR_HXX
#include <swcrsr.hxx> #include <swcrsr.hxx>
#include <calbck.hxx> #include <calbck.hxx>
class SwUnoCrsr : public virtual SwCursor, public SwModify class SwUnoCrsr : public virtual SwCursor, public SwModify
{ {
bool bRemainInSection : 1; private:
bool bSkipOverHiddenSections : 1; bool m_bRemainInSection : 1;
bool bSkipOverProtectSections : 1; bool m_bSkipOverHiddenSections : 1;
bool m_bSkipOverProtectSections : 1;
public: public:
SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing = 0 ); SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing = 0 );
...@@ -48,18 +50,18 @@ public: ...@@ -48,18 +50,18 @@ public:
virtual bool IsReadOnlyAvailable() const SAL_OVERRIDE; virtual bool IsReadOnlyAvailable() const SAL_OVERRIDE;
bool IsRemainInSection() const { return bRemainInSection; } bool IsRemainInSection() const { return m_bRemainInSection; }
void SetRemainInSection( bool bFlag ) { bRemainInSection = bFlag; } void SetRemainInSection( bool bFlag ) { m_bRemainInSection = bFlag; }
virtual bool IsSkipOverProtectSections() const SAL_OVERRIDE virtual bool IsSkipOverProtectSections() const SAL_OVERRIDE
{ return bSkipOverProtectSections; } { return m_bSkipOverProtectSections; }
void SetSkipOverProtectSections( bool bFlag ) void SetSkipOverProtectSections( bool bFlag )
{ bSkipOverProtectSections = bFlag; } { m_bSkipOverProtectSections = bFlag; }
virtual bool IsSkipOverHiddenSections() const SAL_OVERRIDE virtual bool IsSkipOverHiddenSections() const SAL_OVERRIDE
{ return bSkipOverHiddenSections; } { return m_bSkipOverHiddenSections; }
void SetSkipOverHiddenSections( bool bFlag ) void SetSkipOverHiddenSections( bool bFlag )
{ bSkipOverHiddenSections = bFlag; } { m_bSkipOverHiddenSections = bFlag; }
// make copy of cursor // make copy of cursor
virtual SwUnoCrsr * Clone() const; virtual SwUnoCrsr * Clone() const;
...@@ -72,7 +74,7 @@ class SwUnoTableCrsr : public virtual SwUnoCrsr, public virtual SwTableCursor ...@@ -72,7 +74,7 @@ class SwUnoTableCrsr : public virtual SwUnoCrsr, public virtual SwTableCursor
// The selection has the same order as the table boxes, i.e. // The selection has the same order as the table boxes, i.e.
// if something is deleted from the one array at a certain position // if something is deleted from the one array at a certain position
// it has also to be deleted from the other! // it has also to be deleted from the other!
SwCursor aTblSel; SwCursor m_aTblSel;
using SwTableCursor::MakeBoxSels; using SwTableCursor::MakeBoxSels;
...@@ -91,8 +93,8 @@ public: ...@@ -91,8 +93,8 @@ public:
void MakeBoxSels(); void MakeBoxSels();
SwCursor& GetSelRing() { return aTblSel; } SwCursor& GetSelRing() { return m_aTblSel; }
const SwCursor& GetSelRing() const { return aTblSel; } const SwCursor& GetSelRing() const { return m_aTblSel; }
}; };
#endif #endif
......
...@@ -27,10 +27,11 @@ ...@@ -27,10 +27,11 @@
IMPL_FIXEDMEMPOOL_NEWDEL( SwUnoCrsr ) IMPL_FIXEDMEMPOOL_NEWDEL( SwUnoCrsr )
SwUnoCrsr::SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing ) SwUnoCrsr::SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing )
: SwCursor( rPos, pRing, false ), SwModify( 0 ), : SwCursor( rPos, pRing, false )
bRemainInSection( true ), , SwModify(nullptr)
bSkipOverHiddenSections( false ), , m_bRemainInSection(true)
bSkipOverProtectSections( false ) , m_bSkipOverHiddenSections(false)
, m_bSkipOverProtectSections(false)
{} {}
SwUnoCrsr::~SwUnoCrsr() SwUnoCrsr::~SwUnoCrsr()
...@@ -98,7 +99,7 @@ void SwUnoCrsr::DoSetBidiLevelUpDown() ...@@ -98,7 +99,7 @@ void SwUnoCrsr::DoSetBidiLevelUpDown()
bool SwUnoCrsr::IsSelOvr( int eFlags ) bool SwUnoCrsr::IsSelOvr( int eFlags )
{ {
if( bRemainInSection ) if (m_bRemainInSection)
{ {
SwDoc* pDoc = GetDoc(); SwDoc* pDoc = GetDoc();
SwNodeIndex aOldIdx( *pDoc->GetNodes()[ GetSavePos()->nNode ] ); SwNodeIndex aOldIdx( *pDoc->GetNodes()[ GetSavePos()->nNode ] );
...@@ -183,15 +184,18 @@ bool SwUnoCrsr::IsSelOvr( int eFlags ) ...@@ -183,15 +184,18 @@ bool SwUnoCrsr::IsSelOvr( int eFlags )
} }
SwUnoTableCrsr::SwUnoTableCrsr(const SwPosition& rPos) SwUnoTableCrsr::SwUnoTableCrsr(const SwPosition& rPos)
: SwCursor(rPos,0,false), SwUnoCrsr(rPos), SwTableCursor(rPos), aTblSel(rPos,0,false) : SwCursor(rPos, 0, false)
, SwUnoCrsr(rPos)
, SwTableCursor(rPos)
, m_aTblSel(rPos, 0, false)
{ {
SetRemainInSection(false); SetRemainInSection(false);
} }
SwUnoTableCrsr::~SwUnoTableCrsr() SwUnoTableCrsr::~SwUnoTableCrsr()
{ {
while( aTblSel.GetNext() != &aTblSel ) while (m_aTblSel.GetNext() != &m_aTblSel)
delete aTblSel.GetNext(); delete m_aTblSel.GetNext();
} }
bool SwUnoTableCrsr::IsSelOvr( int eFlags ) bool SwUnoTableCrsr::IsSelOvr( int eFlags )
...@@ -227,7 +231,7 @@ void SwUnoTableCrsr::MakeBoxSels() ...@@ -227,7 +231,7 @@ void SwUnoTableCrsr::MakeBoxSels()
if( IsChgd() ) if( IsChgd() )
{ {
SwTableCursor::MakeBoxSels( &aTblSel ); SwTableCursor::MakeBoxSels( &m_aTblSel );
if (!GetSelectedBoxesCount()) if (!GetSelectedBoxesCount())
{ {
const SwTableBox* pBox; const SwTableBox* pBox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment