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
b9f67808
Kaydet (Commit)
b9f67808
authored
Ock 14, 2016
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor to limit scope: SID_SWREGISTER_COLLECTION
Change-Id: I67c259f4da968b9decc4ac95195864a28283d1b5
üst
8aa26b63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+14
-9
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
b9f67808
...
@@ -1729,6 +1729,19 @@ void SwXStyle::SetPropertyValue<FN_UNO_CATEGORY>(const SfxItemPropertySimpleEntr
...
@@ -1729,6 +1729,19 @@ void SwXStyle::SetPropertyValue<FN_UNO_CATEGORY>(const SfxItemPropertySimpleEntr
throw
lang
::
IllegalArgumentException
();
throw
lang
::
IllegalArgumentException
();
o_rStyleBase
.
getNewBase
()
->
SetMask
(
pUnoToCoreIt
->
second
|
SFXSTYLEBIT_USERDEF
);
o_rStyleBase
.
getNewBase
()
->
SetMask
(
pUnoToCoreIt
->
second
|
SFXSTYLEBIT_USERDEF
);
}
}
template
<>
void
SwXStyle
::
SetPropertyValue
<
SID_SWREGISTER_COLLECTION
>
(
const
SfxItemPropertySimpleEntry
&
,
const
SfxItemPropertySet
&
,
const
uno
::
Any
&
rValue
,
SwStyleBase_Impl
&
o_rStyleBase
)
{
OUString
sName
;
rValue
>>=
sName
;
SwRegisterItem
aReg
(
!
sName
.
isEmpty
());
aReg
.
SetWhich
(
SID_SWREGISTER_MODE
);
o_rStyleBase
.
GetItemSet
().
Put
(
aReg
);
OUString
aString
;
SwStyleNameMapper
::
FillUIName
(
sName
,
aString
,
nsSwGetPoolIdFromName
::
GET_POOLID_TXTCOLL
,
true
);
o_rStyleBase
.
GetItemSet
().
Put
(
SfxStringItem
(
SID_SWREGISTER_COLLECTION
,
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
)
{
{
...
@@ -1807,15 +1820,7 @@ void SwXStyle::SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const
...
@@ -1807,15 +1820,7 @@ void SwXStyle::SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const
}
}
case
SID_SWREGISTER_COLLECTION
:
case
SID_SWREGISTER_COLLECTION
:
{
{
OUString
sName
;
SetPropertyValue
<
SID_SWREGISTER_COLLECTION
>
(
rEntry
,
rPropSet
,
rValue
,
rBase
);
aValue
>>=
sName
;
SwRegisterItem
aReg
(
!
sName
.
isEmpty
()
);
aReg
.
SetWhich
(
SID_SWREGISTER_MODE
);
rBase
.
GetItemSet
().
Put
(
aReg
);
OUString
aString
;
SwStyleNameMapper
::
FillUIName
(
sName
,
aString
,
nsSwGetPoolIdFromName
::
GET_POOLID_TXTCOLL
,
true
);
rBase
.
GetItemSet
().
Put
(
SfxStringItem
(
SID_SWREGISTER_COLLECTION
,
aString
)
);
bDone
=
true
;
bDone
=
true
;
break
;
break
;
}
}
...
...
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