diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 14:31:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 07:02:59 +0100 |
commit | a675428e349d3424ffcc844e9c3884a82cf82ef7 (patch) | |
tree | d5a42a00e03b038da9838b2d44c1464f3d70cf69 /sc/source/ui/view/viewfunc.cxx | |
parent | 7a1c21e53fc4733a4bb52282ce0098fcc085ab0e (diff) |
TypedWhichId for sc constants
Change-Id: I25a07d84ae24fdd3b4fbd303beea755169eb9acb
Reviewed-on: https://gerrit.libreoffice.org/45084
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 591e2ef0b1c7..c83dcc1fe6b1 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -29,6 +29,7 @@ #include <editeng/editview.hxx> #include <editeng/langitem.hxx> #include <editeng/scripttypeitem.hxx> +#include <editeng/shaditem.hxx> #include <editeng/justifyitem.hxx> #include <sfx2/bindings.hxx> #include <svl/zforlist.hxx> @@ -899,9 +900,9 @@ void ScViewFunc::ApplyAttributes( const SfxItemSet* pDialogSet, if ( pDialogSet->GetItemState( ATTR_VALUE_FORMAT ) == SfxItemState::SET ) { // don't reset to default SYSTEM GENERAL if not intended sal_uInt32 nOldFormat = - static_cast<const SfxUInt32Item&>(pOldSet->Get( ATTR_VALUE_FORMAT )).GetValue(); + pOldSet->Get( ATTR_VALUE_FORMAT ).GetValue(); sal_uInt32 nNewFormat = - static_cast<const SfxUInt32Item&>(pDialogSet->Get( ATTR_VALUE_FORMAT )).GetValue(); + pDialogSet->Get( ATTR_VALUE_FORMAT ).GetValue(); if ( nNewFormat != nOldFormat ) { SvNumberFormatter* pFormatter = @@ -930,10 +931,10 @@ void ScViewFunc::ApplyAttributes( const SfxItemSet* pDialogSet, // font language has changed. Redo the online spelling. ResetAutoSpell(); - const SvxBoxItem& rOldOuter = static_cast<const SvxBoxItem&> (pOldSet->Get(ATTR_BORDER)); - const SvxBoxItem& rNewOuter = static_cast<const SvxBoxItem&> (pDialogSet->Get(ATTR_BORDER)); - const SvxBoxInfoItem& rOldInner = static_cast<const SvxBoxInfoItem&> (pOldSet->Get(ATTR_BORDER_INNER)); - const SvxBoxInfoItem& rNewInner = static_cast<const SvxBoxInfoItem&> (pDialogSet->Get(ATTR_BORDER_INNER)); + const SvxBoxItem& rOldOuter = pOldSet->Get(ATTR_BORDER); + const SvxBoxItem& rNewOuter = pDialogSet->Get(ATTR_BORDER); + const SvxBoxInfoItem& rOldInner = pOldSet->Get(ATTR_BORDER_INNER); + const SvxBoxInfoItem& rNewInner = pDialogSet->Get(ATTR_BORDER_INNER); SfxItemSet& rNewSet = aNewAttrs.GetItemSet(); SfxItemPool* pNewPool = rNewSet.GetPool(); |