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/fuprlout.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/fuprlout.cxx')
-rw-r--r-- | sd/source/ui/func/fuprlout.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 01993ba790c1..16665d1c6f64 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -93,7 +93,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) /* if we are on a master page, the changes apply for all pages and notes- pages who are using the relevant layout */ bool bOnMaster = false; - if( mpViewShell && mpViewShell->ISA(DrawViewShell)) + if( mpViewShell && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr) { EditMode eEditMode = static_cast<DrawViewShell*>(mpViewShell)->GetEditMode(); @@ -210,7 +210,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) /* That isn't quite right. If the masterpageview is active and you are removing a masterpage, it's possible that you are removing the current masterpage. So you have to call ResetActualPage ! */ - if( mpViewShell->ISA(DrawViewShell) && !bCheckMasters ) + if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bCheckMasters ) static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(true); if (bLoad) @@ -236,7 +236,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) } // remove blocking - if (mpViewShell->ISA(DrawViewShell) && !bCheckMasters ) + if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bCheckMasters ) static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(false); // if the master page was visible, show it again @@ -244,7 +244,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) { if (bOnMaster) { - if (mpViewShell->ISA(DrawViewShell)) + if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr) { ::sd::View* pView = static_cast<DrawViewShell*>(mpViewShell)->GetView(); @@ -276,7 +276,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) // fake a mode change to repaint the page tab bar - if( mpViewShell && mpViewShell->ISA( DrawViewShell ) ) + if( mpViewShell && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr ) { DrawViewShell* pDrawViewSh = static_cast<DrawViewShell*>(mpViewShell); |