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
0c39edeb
Kaydet (Commit)
0c39edeb
authored
Kas 27, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clean up and reduce indent levels
Change-Id: I85fe89e9ef9a6afe79e7e31a3d3d9be85936394d
üst
c022f8f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+12
-16
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
0c39edeb
...
...
@@ -427,29 +427,25 @@ sal_Int32 lcl_GetCountOrName2<SFX_STYLE_FAMILY_PAGE>(const SwDoc &rDoc, OUString
}
template
<>
sal_Int32
lcl_GetCountOrName2
<
SFX_STYLE_FAMILY_PSEUDO
>
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
)
sal_Int32
lcl_GetCountOrName2
<
SFX_STYLE_FAMILY_PSEUDO
>
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
)
{
constexpr
sal_Int32
nBaseCount
=
RES_POOLNUMRULE_END
-
RES_POOLNUMRULE_BEGIN
;
nIndex
-=
nBaseCount
;
sal_Int32
nCount
=
0
;
const
sal_Int32
nBaseCount
=
RES_POOLNUMRULE_END
-
RES_POOLNUMRULE_BEGIN
;
nIndex
=
nIndex
-
nBaseCount
;
const
SwNumRuleTable
&
rNumTable
=
rDoc
.
GetNumRuleTable
();
for
(
size_t
i
=
0
;
i
<
rNumTable
.
size
();
++
i
)
for
(
const
auto
pRule
:
rDoc
.
GetNumRuleTable
())
{
const
SwNumRule
&
rRule
=
*
rNumTable
[
i
];
if
(
rRule
.
IsAutoRule
()
)
if
(
pRule
->
IsAutoRule
())
continue
;
if
(
IsPoolUserFormat
(
rRule
.
GetPoolFormatId
()
)
)
if
(
!
IsPoolUserFormat
(
pRule
->
GetPoolFormatId
()))
continue
;
if
(
nIndex
==
nCount
)
{
if
(
nIndex
==
nCount
)
{
*
pString
=
rRule
.
GetName
();
break
;
}
nCount
++
;
*
pString
=
pRule
->
GetName
();
break
;
}
++
nCount
;
}
nCount
+=
nBaseCount
;
return
nCount
;
return
nCount
+
nBaseCount
;
}
static
sal_Int32
lcl_GetCountOrName
(
const
SwDoc
&
rDoc
,
...
...
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