diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-09-30 16:10:07 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-10-06 07:29:37 +0000 |
commit | 89d39bc100aabf5dccbe77c0b5c0c85736e85b39 (patch) | |
tree | 871a91210913ecee91530c95392534bf18f80f3f /sw/source/uibase/sidebar/PagePropertyPanel.cxx | |
parent | 32b9901dae7403453d773f5904de15551a323595 (diff) |
tdf#94559: 4th step to remove rtti.hxx
replaced use of PTR_CAST, IS_TYPE, ISA in
idl, editeng, sc, sd, sw, sfx2, sot, starmath
Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653
Reviewed-on: https://gerrit.libreoffice.org/19132
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'sw/source/uibase/sidebar/PagePropertyPanel.cxx')
-rw-r--r-- | sw/source/uibase/sidebar/PagePropertyPanel.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx index ea4edfd5a4c9..bb9b436e6bb0 100644 --- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx +++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx @@ -488,7 +488,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE_COLUMN: { if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SfxInt16Item) ) + pState && dynamic_cast< const SfxInt16Item *>( pState ) != nullptr ) { mpPageColumnTypeItem.reset( static_cast<SfxInt16Item*>(pState->Clone()) ); ChangeColumnImage( mpPageColumnTypeItem->GetValue() ); @@ -497,7 +497,7 @@ void PagePropertyPanel::NotifyItemUpdate( break; case SID_ATTR_PAGE_LRSPACE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxLongLRSpaceItem) ) + pState && dynamic_cast< const SvxLongLRSpaceItem *>( pState ) != nullptr ) { mpPageLRMarginItem.reset( static_cast<SvxLongLRSpaceItem*>(pState->Clone()) ); ChangeMarginImage(); @@ -506,7 +506,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE_ULSPACE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxLongULSpaceItem) ) + pState && dynamic_cast< const SvxLongULSpaceItem *>( pState ) != nullptr ) { mpPageULMarginItem.reset( static_cast<SvxLongULSpaceItem*>(pState->Clone()) ); ChangeMarginImage(); @@ -515,7 +515,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxPageItem) ) + pState && dynamic_cast< const SvxPageItem *>( pState ) != nullptr ) { const sal_uInt16 nIdOrientation = mpToolBoxOrientation->GetItemId(UNO_ORIENTATION); mpPageItem.reset( static_cast<SvxPageItem*>(pState->Clone()) ); @@ -539,7 +539,7 @@ void PagePropertyPanel::NotifyItemUpdate( mpBindings->Invalidate( SID_ATTR_PAGE, true ); } if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxSizeItem) ) + pState && dynamic_cast< const SvxSizeItem *>( pState ) != nullptr ) { mpPageSizeItem.reset( static_cast<SvxSizeItem*>(pState->Clone()) ); ChangeSizeImage(); |