summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-15 14:20:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-17 08:10:02 +0100
commit93117d454afc4d7402ae791526e66330f981c4d0 (patch)
tree03c626069bd4063ff731f6bb3e9631099761212a /sw
parent7f055f373bf2a19f6f2c73914eaa4f3c6fa57f98 (diff)
TypedWhichId for EE_PARA* constants
Change-Id: I64d1765336f39c3e3ded4d58ebdee80e97624276 Reviewed-on: https://gerrit.libreoffice.org/44799 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx7
-rw-r--r--sw/source/uibase/shells/drwtxtex.cxx7
2 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index 48234bd84ae0..07e6da2a0eac 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -193,8 +193,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq )
case SID_PARASPACE_INCREASE:
case SID_PARASPACE_DECREASE:
{
- SvxULSpaceItem aULSpace(
- static_cast< const SvxULSpaceItem& >( aEditAttr.Get( EE_PARA_ULSPACE ) ) );
+ SvxULSpaceItem aULSpace( aEditAttr.Get( EE_PARA_ULSPACE ) );
sal_uInt16 nUpper = aULSpace.GetUpper();
sal_uInt16 nLower = aULSpace.GetLower();
@@ -659,7 +658,7 @@ void SwAnnotationShell::GetState(SfxItemSet& rSet)
SfxItemState eState = aEditAttr.GetItemState( EE_PARA_SBL );
if( eState >= SfxItemState::DEFAULT )
{
- SvxLineSpacingItem aLR = static_cast<const SvxLineSpacingItem&>( aEditAttr.Get( EE_PARA_SBL ) );
+ SvxLineSpacingItem aLR = aEditAttr.Get( EE_PARA_SBL );
rSet.Put(aLR);
}
else
@@ -675,7 +674,7 @@ void SwAnnotationShell::GetState(SfxItemSet& rSet)
SfxItemState eState = aEditAttr.GetItemState( EE_PARA_ULSPACE );
if( eState >= SfxItemState::DEFAULT )
{
- SvxULSpaceItem aULSpace = static_cast<const SvxULSpaceItem&>( aEditAttr.Get( EE_PARA_ULSPACE ) );
+ SvxULSpaceItem aULSpace = aEditAttr.Get( EE_PARA_ULSPACE );
if ( !aULSpace.GetUpper() && !aULSpace.GetLower() )
rSet.DisableItem( SID_PARASPACE_DECREASE );
else if ( aULSpace.GetUpper() >= 5670 && aULSpace.GetLower() >= 5670 )
diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx
index b414398e3d0d..696500197643 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -256,8 +256,7 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
case SID_PARASPACE_INCREASE:
case SID_PARASPACE_DECREASE:
{
- SvxULSpaceItem aULSpace(
- static_cast< const SvxULSpaceItem& >( aEditAttr.Get( EE_PARA_ULSPACE ) ) );
+ SvxULSpaceItem aULSpace( aEditAttr.Get( EE_PARA_ULSPACE ) );
sal_uInt16 nUpper = aULSpace.GetUpper();
sal_uInt16 nLower = aULSpace.GetLower();
@@ -681,7 +680,7 @@ ASK_ADJUST:
SfxItemState eState = aEditAttr.GetItemState(EE_PARA_SBL);
if( eState >= SfxItemState::DEFAULT )
{
- SvxLineSpacingItem aLR = static_cast<const SvxLineSpacingItem&>( aEditAttr.Get( EE_PARA_SBL ) );
+ SvxLineSpacingItem aLR = aEditAttr.Get( EE_PARA_SBL );
rSet.Put(aLR);
}
else
@@ -698,7 +697,7 @@ ASK_ADJUST:
SfxItemState eState = aEditAttr.GetItemState(EE_PARA_ULSPACE);
if( eState >= SfxItemState::DEFAULT )
{
- SvxULSpaceItem aULSpace = static_cast<const SvxULSpaceItem&>( aEditAttr.Get( EE_PARA_ULSPACE ) );
+ SvxULSpaceItem aULSpace = aEditAttr.Get( EE_PARA_ULSPACE );
if ( !aULSpace.GetUpper() && !aULSpace.GetLower() )
rSet.DisableItem( SID_PARASPACE_DECREASE );
else if ( aULSpace.GetUpper() >= 5670 && aULSpace.GetLower() >= 5670 )