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
d8261df8
Kaydet (Commit)
d8261df8
authored
Eki 29, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide_3: adapt SwWrtShell::NumOrBulletOn/Off
Change-Id: I5cd89bc0595f96125d58a05e01d9e33b965621fe
üst
3d59c463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
wrtsh1.cxx
sw/source/uibase/wrtsh/wrtsh1.cxx
+9
-6
No files found.
sw/source/uibase/wrtsh/wrtsh1.cxx
Dosyayı görüntüle @
d8261df8
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
#include <fmtftn.hxx>
#include <fmtftn.hxx>
#include <fmthdft.hxx>
#include <fmthdft.hxx>
#include <fmtpdsc.hxx>
#include <fmtpdsc.hxx>
#include <txtfrm.hxx>
#include <wdocsh.hxx>
#include <wdocsh.hxx>
#include <basesh.hxx>
#include <basesh.hxx>
#include <swmodule.hxx>
#include <swmodule.hxx>
...
@@ -1026,8 +1027,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
...
@@ -1026,8 +1027,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
// check, if text node at current cursor positioned is counted.
// check, if text node at current cursor positioned is counted.
// If not, let it been counted. Then it has to be checked,
// If not, let it been counted. Then it has to be checked,
// of the outline numbering has to be activated or continued.
// of the outline numbering has to be activated or continued.
SwTextNode
*
pTextNode
=
SwTextNode
const
*
const
pTextNode
=
sw
::
GetParaPropsNode
(
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
(
);
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNode
&&
!
pTextNode
->
IsCountedInList
()
)
if
(
pTextNode
&&
!
pTextNode
->
IsCountedInList
()
)
{
{
// check, if numbering of the outline level of the paragraph
// check, if numbering of the outline level of the paragraph
...
@@ -1133,7 +1134,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
...
@@ -1133,7 +1134,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
// do not change found numbering/bullet rule, if it should only be continued.
// do not change found numbering/bullet rule, if it should only be continued.
if
(
!
bContinueFoundNumRule
)
if
(
!
bContinueFoundNumRule
)
{
{
SwTextNode
*
pTextNode
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
SwTextNode
const
*
const
pTextNode
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNode
)
if
(
pTextNode
)
{
{
...
@@ -1197,7 +1199,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
...
@@ -1197,7 +1199,8 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
pChrFormat
=
GetCharFormatFromPool
(
RES_POOLCHR_BUL_LEVEL
);
pChrFormat
=
GetCharFormatFromPool
(
RES_POOLCHR_BUL_LEVEL
);
}
}
const
SwTextNode
*
pTextNode
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
();
const
SwTextNode
*
const
pTextNode
=
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
const
SwTwips
nWidthOfTabs
=
pTextNode
const
SwTwips
nWidthOfTabs
=
pTextNode
?
pTextNode
->
GetWidthOfLeadingTabs
()
?
pTextNode
->
GetWidthOfLeadingTabs
()
:
0
;
:
0
;
...
@@ -1306,7 +1309,7 @@ void SwWrtShell::NumOrBulletOff()
...
@@ -1306,7 +1309,7 @@ void SwWrtShell::NumOrBulletOff()
SwNumRule
aNumRule
(
*
pCurNumRule
);
SwNumRule
aNumRule
(
*
pCurNumRule
);
SwTextNode
*
pTextNode
=
SwTextNode
*
pTextNode
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
(
);
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNode
)
if
(
pTextNode
)
{
{
...
@@ -1413,7 +1416,7 @@ SelectionType SwWrtShell::GetSelectionType() const
...
@@ -1413,7 +1416,7 @@ SelectionType SwWrtShell::GetSelectionType() const
if
(
pNumRule
)
if
(
pNumRule
)
{
{
const
SwTextNode
*
pTextNd
=
const
SwTextNode
*
pTextNd
=
GetCursor
()
->
GetPoint
()
->
nNode
.
GetNode
().
GetTextNode
(
);
sw
::
GetParaPropsNode
(
*
GetLayout
(),
GetCursor
()
->
GetPoint
()
->
nNode
);
if
(
pTextNd
&&
pTextNd
->
IsInList
()
)
if
(
pTextNd
&&
pTextNd
->
IsInList
()
)
{
{
...
...
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