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
7f49659e
Kaydet (Commit)
7f49659e
authored
Eki 26, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide_3: SwEditShell::HasNumber, HasBullet etc.
Change-Id: I6db8421a52f7a9bece5ebb95b377dd3bb0a39af4
üst
8691bb65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
ednumber.cxx
sw/source/core/edit/ednumber.cxx
+12
-8
No files found.
sw/source/core/edit/ednumber.cxx
Dosyayı görüntüle @
7f49659e
...
...
@@ -150,8 +150,7 @@ void SwEditShell::NoNum()
bool
SwEditShell
::
SelectionHasNumber
()
const
{
bool
bResult
=
HasNumber
();
const
SwTextNode
*
pTextNd
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
const
SwTextNode
*
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
!
bResult
&&
pTextNd
&&
pTextNd
->
Len
()
==
0
&&
!
pTextNd
->
GetNumRule
())
{
SwPamRanges
aRangeArr
(
*
GetCursor
()
);
SwPaM
aPam
(
*
GetCursor
()
->
GetPoint
()
);
...
...
@@ -168,6 +167,10 @@ bool SwEditShell::SelectionHasNumber() const
for
(
sal_uInt32
nPos
=
nStt
;
nPos
<=
nEnd
;
nPos
++
)
{
pTextNd
=
mxDoc
->
GetNodes
()[
nPos
]
->
GetTextNode
();
if
(
pTextNd
)
{
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
SwNodeIndex
(
*
pTextNd
));
}
if
(
pTextNd
&&
pTextNd
->
Len
()
!=
0
)
{
bResult
=
pTextNd
->
HasNumber
();
...
...
@@ -196,8 +199,7 @@ bool SwEditShell::SelectionHasNumber() const
bool
SwEditShell
::
SelectionHasBullet
()
const
{
bool
bResult
=
HasBullet
();
const
SwTextNode
*
pTextNd
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
const
SwTextNode
*
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
!
bResult
&&
pTextNd
&&
pTextNd
->
Len
()
==
0
&&
!
pTextNd
->
GetNumRule
())
{
SwPamRanges
aRangeArr
(
*
GetCursor
()
);
SwPaM
aPam
(
*
GetCursor
()
->
GetPoint
()
);
...
...
@@ -214,6 +216,10 @@ bool SwEditShell::SelectionHasBullet() const
for
(
sal_uInt32
nPos
=
nStt
;
nPos
<=
nEnd
;
nPos
++
)
{
pTextNd
=
mxDoc
->
GetNodes
()[
nPos
]
->
GetTextNode
();
if
(
pTextNd
)
{
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
SwNodeIndex
(
*
pTextNd
));
}
if
(
pTextNd
&&
pTextNd
->
Len
()
!=
0
)
{
bResult
=
pTextNd
->
HasBullet
();
...
...
@@ -235,8 +241,7 @@ bool SwEditShell::HasNumber() const
{
bool
bResult
=
false
;
const
SwTextNode
*
pTextNd
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
const
SwTextNode
*
const
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNd
)
{
...
...
@@ -258,8 +263,7 @@ bool SwEditShell::HasBullet() const
{
bool
bResult
=
false
;
const
SwTextNode
*
pTextNd
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
const
SwTextNode
*
const
pTextNd
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNd
)
{
...
...
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