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
071148be
Kaydet (Commit)
071148be
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: I291d5500b2bda1a9986a72cba8513a2897233689
üst
452ae1ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+18
-23
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
071148be
...
@@ -324,36 +324,31 @@ template<enum SfxStyleFamily>
...
@@ -324,36 +324,31 @@ template<enum SfxStyleFamily>
static
sal_Int32
lcl_GetCountOrName2
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
);
static
sal_Int32
lcl_GetCountOrName2
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
);
template
<>
template
<>
sal_Int32
lcl_GetCountOrName2
<
SFX_STYLE_FAMILY_CHAR
>
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
)
sal_Int32
lcl_GetCountOrName2
<
SFX_STYLE_FAMILY_CHAR
>
(
const
SwDoc
&
rDoc
,
OUString
*
pString
,
sal_Int32
nIndex
)
{
{
constexpr
sal_Int32
nBaseCount
=
RES_POOLCHR_HTML_END
-
RES_POOLCHR_HTML_BEGIN
+
RES_POOLCHR_NORMAL_END
-
RES_POOLCHR_NORMAL_BEGIN
;
nIndex
-=
nBaseCount
;
sal_Int32
nCount
=
0
;
sal_Int32
nCount
=
0
;
const
sal_Int32
nBaseCount
=
for
(
auto
pFormat
:
*
rDoc
.
GetCharFormats
())
RES_POOLCHR_HTML_END
-
RES_POOLCHR_HTML_BEGIN
+
RES_POOLCHR_NORMAL_END
-
RES_POOLCHR_NORMAL_BEGIN
;
nIndex
=
nIndex
-
nBaseCount
;
const
size_t
nArrLen
=
rDoc
.
GetCharFormats
()
->
size
();
for
(
size_t
i
=
0
;
i
<
nArrLen
;
++
i
)
{
{
SwCharFormat
*
pFormat
=
(
*
rDoc
.
GetCharFormats
())[
i
];
if
(
pFormat
->
IsDefault
()
&&
pFormat
!=
rDoc
.
GetDfltCharFormat
())
if
(
pFormat
->
IsDefault
()
&&
pFormat
!=
rDoc
.
GetDfltCharFormat
()
)
continue
;
continue
;
if
(
IsPoolUserFormat
(
pFormat
->
GetPoolFormatId
()
)
)
if
(
!
IsPoolUserFormat
(
pFormat
->
GetPoolFormatId
()))
continue
;
if
(
nIndex
==
nCount
)
{
{
if
(
nIndex
==
nCount
)
// the default character format needs to be set to "Default!"
{
if
(
rDoc
.
GetDfltCharFormat
()
==
pFormat
)
// the default character format needs to be set to "Default!"
SwStyleNameMapper
::
FillUIName
(
RES_POOLCOLL_STANDARD
,
*
pString
);
if
(
rDoc
.
GetDfltCharFormat
()
==
pFormat
)
else
SwStyleNameMapper
::
FillUIName
(
*
pString
=
pFormat
->
GetName
();
RES_POOLCOLL_STANDARD
,
*
pString
);
break
;
else
*
pString
=
pFormat
->
GetName
();
break
;
}
nCount
++
;
}
}
++
nCount
;
}
}
nCount
+=
nBaseCount
;
return
nCount
+
nBaseCount
;
return
nCount
;
}
}
template
<>
template
<>
...
...
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