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
d632f641
Kaydet (Commit)
d632f641
authored
Ock 02, 2016
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor out to limit scope: FN_UNO_FOLLOW_STYLE
Change-Id: I2f5f36fe9b9c7d1ee4289f2af268c25ebf8963d9
üst
d9df090e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+11
-11
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
d632f641
...
@@ -1606,6 +1606,16 @@ void SwXStyle::SetPropertyValue<RES_PARATR_OUTLINELEVEL>(const SfxItemPropertySi
...
@@ -1606,6 +1606,16 @@ void SwXStyle::SetPropertyValue<RES_PARATR_OUTLINELEVEL>(const SfxItemPropertySi
if
(
0
<=
nLevel
&&
nLevel
<=
MAXLEVEL
)
if
(
0
<=
nLevel
&&
nLevel
<=
MAXLEVEL
)
o_rStyleBase
.
getNewBase
()
->
GetCollection
()
->
SetAttrOutlineLevel
(
nLevel
);
o_rStyleBase
.
getNewBase
()
->
GetCollection
()
->
SetAttrOutlineLevel
(
nLevel
);
}
}
template
<>
void
SwXStyle
::
SetPropertyValue
<
FN_UNO_FOLLOW_STYLE
>
(
const
SfxItemPropertySimpleEntry
&
,
const
SfxItemPropertySet
&
,
const
uno
::
Any
&
rValue
,
SwStyleBase_Impl
&
o_rStyleBase
)
{
if
(
!
rValue
.
has
<
OUString
>
())
return
;
const
auto
sValue
(
rValue
.
get
<
OUString
>
());
OUString
aString
;
SwStyleNameMapper
::
FillUIName
(
sValue
,
aString
,
m_rEntry
.
m_aPoolId
,
true
);
o_rStyleBase
.
getNewBase
()
->
SetFollow
(
aString
);
}
void
SwXStyle
::
SetStyleProperty
(
const
SfxItemPropertySimpleEntry
&
rEntry
,
const
SfxItemPropertySet
&
rPropSet
,
const
uno
::
Any
&
rValue
,
SwStyleBase_Impl
&
rBase
)
throw
(
beans
::
PropertyVetoException
,
lang
::
IllegalArgumentException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
void
SwXStyle
::
SetStyleProperty
(
const
SfxItemPropertySimpleEntry
&
rEntry
,
const
SfxItemPropertySet
&
rPropSet
,
const
uno
::
Any
&
rValue
,
SwStyleBase_Impl
&
rBase
)
throw
(
beans
::
PropertyVetoException
,
lang
::
IllegalArgumentException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
...
@@ -1653,23 +1663,13 @@ void SwXStyle::SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const
...
@@ -1653,23 +1663,13 @@ void SwXStyle::SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const
bDone
=
true
;
bDone
=
true
;
break
;
break
;
case
RES_PARATR_OUTLINELEVEL
:
case
RES_PARATR_OUTLINELEVEL
:
{
SetPropertyValue
<
RES_PARATR_OUTLINELEVEL
>
(
rEntry
,
rPropSet
,
rValue
,
rBase
);
SetPropertyValue
<
RES_PARATR_OUTLINELEVEL
>
(
rEntry
,
rPropSet
,
rValue
,
rBase
);
bDone
=
true
;
bDone
=
true
;
break
;
break
;
}
case
FN_UNO_FOLLOW_STYLE
:
case
FN_UNO_FOLLOW_STYLE
:
{
SetPropertyValue
<
FN_UNO_FOLLOW_STYLE
>
(
rEntry
,
rPropSet
,
rValue
,
rBase
);
OUString
sTmp
;
aValue
>>=
sTmp
;
OUString
aString
;
SwStyleNameMapper
::
FillUIName
(
sTmp
,
aString
,
lcl_GetSwEnumFromSfxEnum
(
eFamily
),
true
)
;
rBase
.
getNewBase
()
->
SetFollow
(
aString
);
bDone
=
true
;
bDone
=
true
;
break
;
break
;
}
case
RES_PAGEDESC
:
case
RES_PAGEDESC
:
{
{
if
(
MID_PAGEDESC_PAGEDESCNAME
!=
nMemberId
)
if
(
MID_PAGEDESC_PAGEDESCNAME
!=
nMemberId
)
...
...
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