Kaydet (Commit) 2fea23f1 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

refactor out to limit scope: FN_UNO_DISPLAY_NAME

Change-Id: I0a186de2e013d3b3b876ce61333d2f1736936ce8
üst 5d26fe7e
......@@ -2053,7 +2053,7 @@ uno::Any SwXStyle::GetStyleProperty<RES_PAGEDESC>(const SfxItemPropertySimpleEnt
return uno::makeAny(aString);
}
template<>
uno::Any SwXStyle::GetStyleProperty<FN_UNO_IS_AUTO_UPDATE>(const SfxItemPropertySimpleEntry& rEntry, const SfxItemPropertySet&, SwStyleBase_Impl& rBase)
uno::Any SwXStyle::GetStyleProperty<FN_UNO_IS_AUTO_UPDATE>(const SfxItemPropertySimpleEntry&, const SfxItemPropertySet&, SwStyleBase_Impl& rBase)
throw(uno::RuntimeException, std::exception)
{
switch(GetFamily())
......@@ -2063,6 +2063,12 @@ uno::Any SwXStyle::GetStyleProperty<FN_UNO_IS_AUTO_UPDATE>(const SfxItemProperty
default: return uno::Any();
}
}
template<>
uno::Any SwXStyle::GetStyleProperty<FN_UNO_DISPLAY_NAME>(const SfxItemPropertySimpleEntry&, const SfxItemPropertySet&, SwStyleBase_Impl& rBase)
throw(uno::RuntimeException, std::exception)
{
return uno::makeAny(rBase.getNewBase()->GetDisplayName());
}
uno::Any SwXStyle::lcl_GetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const SfxItemPropertySet& rPropSet, SwStyleBase_Impl& rBase)
throw(uno::RuntimeException, std::exception)
......@@ -2129,8 +2135,7 @@ uno::Any SwXStyle::lcl_GetStyleProperty(const SfxItemPropertySimpleEntry& rEntry
}
case FN_UNO_DISPLAY_NAME:
{
aRet <<= rBase.getNewBase()->GetDisplayName();
break;
return GetStyleProperty<FN_UNO_DISPLAY_NAME>(rEntry, rPropSet, rBase);
}
case FN_UNO_PARA_STYLE_CONDITIONS:
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment