summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewstat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/viewstat.cxx')
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index 9ec0f9b96042..9d9dd105be6d 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -184,8 +184,7 @@ void SwView::GetState(SfxItemSet &rSet)
const size_t nCurIdx = m_pWrtShell->GetCurPageDesc();
const SwPageDesc& rDesc = m_pWrtShell->GetPageDesc( nCurIdx );
const SwFrameFormat& rMaster = rDesc.GetMaster();
- const SvxBrushItem& rBrush = static_cast<const SvxBrushItem&>(
- rMaster.GetFormatAttr(RES_BACKGROUND));
+ const SvxBrushItem& rBrush = rMaster.GetFormatAttr(RES_BACKGROUND);
rSet.Put(rBrush);
}
break;
@@ -240,31 +239,29 @@ void SwView::GetState(SfxItemSet &rSet)
case RES_PARATR_TABSTOP:
case SID_ATTR_DEFTABSTOP:
{
- const SvxTabStopItem& rDefTabs =
- static_cast<const SvxTabStopItem&>(m_pWrtShell->
- GetDefault(RES_PARATR_TABSTOP));
+ const SvxTabStopItem& rDefTabs = m_pWrtShell->GetDefault(RES_PARATR_TABSTOP);
rSet.Put( SfxUInt16Item( nWhich,
static_cast<sal_uInt16>(::GetTabDist(rDefTabs))));
}
break;
case SID_ATTR_LANGUAGE:
{
- std::unique_ptr<SfxPoolItem> pNewItem(static_cast<const SvxLanguageItem&>(
- m_pWrtShell->GetDefault(RES_CHRATR_LANGUAGE)).CloneSetWhich(SID_ATTR_LANGUAGE));
+ std::unique_ptr<SfxPoolItem> pNewItem(
+ m_pWrtShell->GetDefault(RES_CHRATR_LANGUAGE).CloneSetWhich(SID_ATTR_LANGUAGE));
rSet.Put(*pNewItem);
}
break;
case RES_CHRATR_CJK_LANGUAGE:
{
- std::unique_ptr<SfxPoolItem> pNewItem(static_cast<const SvxLanguageItem&>(
- m_pWrtShell->GetDefault(RES_CHRATR_CJK_LANGUAGE)).CloneSetWhich(RES_CHRATR_CJK_LANGUAGE));
+ std::unique_ptr<SfxPoolItem> pNewItem(
+ m_pWrtShell->GetDefault(RES_CHRATR_CJK_LANGUAGE).CloneSetWhich(RES_CHRATR_CJK_LANGUAGE));
rSet.Put(*pNewItem);
}
break;
case RES_CHRATR_CTL_LANGUAGE:
{
- std::unique_ptr<SfxPoolItem> pNewItem(static_cast<const SvxLanguageItem&>(
- m_pWrtShell->GetDefault(RES_CHRATR_CTL_LANGUAGE)).CloneSetWhich(RES_CHRATR_CTL_LANGUAGE));
+ std::unique_ptr<SfxPoolItem> pNewItem(
+ m_pWrtShell->GetDefault(RES_CHRATR_CTL_LANGUAGE).CloneSetWhich(RES_CHRATR_CTL_LANGUAGE));
rSet.Put(*pNewItem);
}
break;