Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
49fe851c
Kaydet (Commit)
49fe851c
authored
Mar 13, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwUnoCrsr, SwUnoTableCrsr
Change-Id: Ie0e8041d6d62176e68c953be39e513c862d01c63
üst
5f76b2e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
21 deletions
+27
-21
unocrsr.hxx
sw/inc/unocrsr.hxx
+14
-12
unocrsr.cxx
sw/source/core/crsr/unocrsr.cxx
+13
-9
No files found.
sw/inc/unocrsr.hxx
Dosyayı görüntüle @
49fe851c
...
...
@@ -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
...
...
sw/source/core/crsr/unocrsr.cxx
Dosyayı görüntüle @
49fe851c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment