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 /sd/source/ui/func/fuscale.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 'sd/source/ui/func/fuscale.cxx')
-rw-r--r-- | sd/source/ui/func/fuscale.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 2c2db012d629..4c54f95d27b7 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -77,7 +77,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) nValue = (sal_Int16) mpWindow->GetZoom(); // zoom on page size? - if( mpViewShell && mpViewShell->ISA( DrawViewShell ) && + if( mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr && static_cast<DrawViewShell*>(mpViewShell)->IsZoomOnPage() ) { pZoomItem.reset(new SvxZoomItem( SvxZoomType::WHOLEPAGE, nValue )); @@ -90,7 +90,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) // limit range if( mpViewShell ) { - if( mpViewShell->ISA( DrawViewShell ) ) + if( dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr ) { SdrPageView* pPageView = mpView->GetSdrPageView(); if( ( pPageView && pPageView->GetObjList()->GetObjCount() == 0 ) ) @@ -99,7 +99,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) nZoomValues &= ~SvxZoomEnableFlags::OPTIMAL; } } - else if( mpViewShell->ISA( OutlineViewShell ) ) + else if( dynamic_cast< OutlineViewShell *>( mpViewShell ) != nullptr ) { nZoomValues &= ~SvxZoomEnableFlags::OPTIMAL; nZoomValues &= ~SvxZoomEnableFlags::WHOLEPAGE; @@ -156,7 +156,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) case SvxZoomType::OPTIMAL: { - if( mpViewShell->ISA( DrawViewShell ) ) + if( dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr ) { // name confusion: SID_SIZE_ALL -> zoom onto all objects // --> the program offers it as optimal |