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
a9618132
Kaydet (Commit)
a9618132
authored
Kas 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
formatting
Change-Id: I6dc8d111ec4ff7cfc12fb8cdd96196043a6e6457
üst
b8f4fe06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+8
-14
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
a9618132
...
...
@@ -526,26 +526,20 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex)
break
;
case
SFX_STYLE_FAMILY_FRAME
:
{
if
(
nIndex
<
(
RES_POOLFRM_END
-
RES_POOLFRM_BEGIN
)
)
{
SwStyleNameMapper
::
FillUIName
(
static_cast
<
sal_uInt16
>
(
RES_POOLFRM_BEGIN
+
nIndex
),
sStyleName
);
}
if
(
nIndex
<
(
RES_POOLFRM_END
-
RES_POOLFRM_BEGIN
))
SwStyleNameMapper
::
FillUIName
(
static_cast
<
sal_uInt16
>
(
RES_POOLFRM_BEGIN
+
nIndex
),
sStyleName
);
}
break
;
case
SFX_STYLE_FAMILY_PAGE
:
{
if
(
nIndex
<
(
RES_POOLPAGE_END
-
RES_POOLPAGE_BEGIN
)
)
{
SwStyleNameMapper
::
FillUIName
(
static_cast
<
sal_uInt16
>
(
RES_POOLPAGE_BEGIN
+
nIndex
),
sStyleName
);
}
if
(
nIndex
<
(
RES_POOLPAGE_END
-
RES_POOLPAGE_BEGIN
))
SwStyleNameMapper
::
FillUIName
(
static_cast
<
sal_uInt16
>
(
RES_POOLPAGE_BEGIN
+
nIndex
),
sStyleName
);
}
break
;
case
SFX_STYLE_FAMILY_PSEUDO
:
{
if
(
nIndex
<
(
RES_POOLNUMRULE_END
-
RES_POOLNUMRULE_BEGIN
)
)
{
if
(
nIndex
<
(
RES_POOLNUMRULE_END
-
RES_POOLNUMRULE_BEGIN
))
SwStyleNameMapper
::
FillUIName
(
static_cast
<
sal_uInt16
>
(
RES_POOLNUMRULE_BEGIN
+
nIndex
),
sStyleName
);
}
}
break
;
...
...
@@ -553,14 +547,14 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex)
;
}
if
(
sStyleName
.
isEmpty
())
lcl_GetCountOrName
(
*
m_pDocShell
->
GetDoc
(),
m_eFamily
,
&
sStyleName
,
nIndex
);
lcl_GetCountOrName
(
*
m_pDocShell
->
GetDoc
(),
m_eFamily
,
&
sStyleName
,
nIndex
);
if
(
sStyleName
.
isEmpty
())
throw
lang
::
IndexOutOfBoundsException
();
SfxStyleSheetBase
*
pBase
=
m_pBasePool
->
Find
(
sStyleName
,
m_eFamily
);
SfxStyleSheetBase
*
pBase
=
m_pBasePool
->
Find
(
sStyleName
,
m_eFamily
);
if
(
!
pBase
)
throw
uno
::
RuntimeException
();
uno
::
Reference
<
style
::
XStyle
>
xStyle
=
_FindStyle
(
sStyleName
);
uno
::
Reference
<
style
::
XStyle
>
xStyle
=
_FindStyle
(
sStyleName
);
if
(
!
xStyle
.
is
())
{
switch
(
m_eFamily
)
...
...
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