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 @@
*/
#ifndef INCLUDED_SW_INC_UNOCRSR_HXX
#define INCLUDED_SW_INC_UNOCRSR_HXX
#include <swcrsr.hxx>
#include <calbck.hxx>
class SwUnoCrsr : public virtual SwCursor, public SwModify
{
bool bRemainInSection : 1;
bool bSkipOverHiddenSections : 1;
bool bSkipOverProtectSections : 1;
private:
bool m_bRemainInSection : 1;
bool m_bSkipOverHiddenSections : 1;
bool m_bSkipOverProtectSections : 1;
public:
SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing = 0 );
......@@ -48,18 +50,18 @@ public:
virtual bool IsReadOnlyAvailable() const SAL_OVERRIDE;
bool IsRemainInSection() const { return bRemainInSection; }
void SetRemainInSection( bool bFlag ) { bRemainInSection = bFlag; }
bool IsRemainInSection() const { return m_bRemainInSection; }
void SetRemainInSection( bool bFlag ) { m_bRemainInSection = bFlag; }
virtual bool IsSkipOverProtectSections() const SAL_OVERRIDE
{ return bSkipOverProtectSections; }
{ return m_bSkipOverProtectSections; }
void SetSkipOverProtectSections( bool bFlag )
{ bSkipOverProtectSections = bFlag; }
{ m_bSkipOverProtectSections = bFlag; }
virtual bool IsSkipOverHiddenSections() const SAL_OVERRIDE
{ return bSkipOverHiddenSections; }
{ return m_bSkipOverHiddenSections; }
void SetSkipOverHiddenSections( bool bFlag )
{ bSkipOverHiddenSections = bFlag; }
{ m_bSkipOverHiddenSections = bFlag; }
// make copy of cursor
virtual SwUnoCrsr * Clone() const;
......@@ -72,7 +74,7 @@ class SwUnoTableCrsr : public virtual SwUnoCrsr, public virtual SwTableCursor
// The selection has the same order as the table boxes, i.e.
// if something is deleted from the one array at a certain position
// it has also to be deleted from the other!
SwCursor aTblSel;
SwCursor m_aTblSel;
using SwTableCursor::MakeBoxSels;
......@@ -91,8 +93,8 @@ public:
void MakeBoxSels();
SwCursor& GetSelRing() { return aTblSel; }
const SwCursor& GetSelRing() const { return aTblSel; }
SwCursor& GetSelRing() { return m_aTblSel; }
const SwCursor& GetSelRing() const { return m_aTblSel; }
};
#endif
......
......@@ -27,10 +27,11 @@
IMPL_FIXEDMEMPOOL_NEWDEL( SwUnoCrsr )
SwUnoCrsr::SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing )
: SwCursor( rPos, pRing, false ), SwModify( 0 ),
bRemainInSection( true ),
bSkipOverHiddenSections( false ),
bSkipOverProtectSections( false )
: SwCursor( rPos, pRing, false )
, SwModify(nullptr)
, m_bRemainInSection(true)
, m_bSkipOverHiddenSections(false)
, m_bSkipOverProtectSections(false)
{}
SwUnoCrsr::~SwUnoCrsr()
......@@ -98,7 +99,7 @@ void SwUnoCrsr::DoSetBidiLevelUpDown()
bool SwUnoCrsr::IsSelOvr( int eFlags )
{
if( bRemainInSection )
if (m_bRemainInSection)
{
SwDoc* pDoc = GetDoc();
SwNodeIndex aOldIdx( *pDoc->GetNodes()[ GetSavePos()->nNode ] );
......@@ -183,15 +184,18 @@ bool SwUnoCrsr::IsSelOvr( int eFlags )
}
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);
}
SwUnoTableCrsr::~SwUnoTableCrsr()
{
while( aTblSel.GetNext() != &aTblSel )
delete aTblSel.GetNext();
while (m_aTblSel.GetNext() != &m_aTblSel)
delete m_aTblSel.GetNext();
}
bool SwUnoTableCrsr::IsSelOvr( int eFlags )
......@@ -227,7 +231,7 @@ void SwUnoTableCrsr::MakeBoxSels()
if( IsChgd() )
{
SwTableCursor::MakeBoxSels( &aTblSel );
SwTableCursor::MakeBoxSels( &m_aTblSel );
if (!GetSelectedBoxesCount())
{
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