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/docvw/edtwin3.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/docvw/edtwin3.cxx')
-rw-r--r-- | sw/source/uibase/docvw/edtwin3.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/docvw/edtwin3.cxx b/sw/source/uibase/docvw/edtwin3.cxx index 2d7502a51ba8..b8c4279f5bea 100644 --- a/sw/source/uibase/docvw/edtwin3.cxx +++ b/sw/source/uibase/docvw/edtwin3.cxx @@ -40,7 +40,7 @@ void ScrollMDI( SwViewShell* pVwSh, const SwRect &rRect, sal_uInt16 nRangeX, sal_uInt16 nRangeY) { SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); - if (pSfxVwSh && pSfxVwSh->ISA(SwView)) + if (pSfxVwSh && dynamic_cast< const SwView *>( pSfxVwSh ) != nullptr) static_cast<SwView *>(pSfxVwSh)->Scroll( rRect.SVRect(), nRangeX, nRangeY ); } @@ -48,7 +48,7 @@ void ScrollMDI( SwViewShell* pVwSh, const SwRect &rRect, bool IsScrollMDI( SwViewShell* pVwSh, const SwRect &rRect ) { SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); - if (pSfxVwSh && pSfxVwSh->ISA(SwView)) + if (pSfxVwSh && dynamic_cast< const SwView *>( pSfxVwSh ) != nullptr) return static_cast<SwView *>(pSfxVwSh)->IsScroll(rRect.SVRect()); return false; } @@ -59,9 +59,9 @@ void SizeNotify(SwViewShell* pVwSh, const Size &rSize) SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); if (pSfxVwSh) { - if (pSfxVwSh->ISA(SwView)) + if (dynamic_cast< const SwView *>( pSfxVwSh ) != nullptr) static_cast<SwView *>(pSfxVwSh)->DocSzChgd(rSize); - else if (pSfxVwSh->ISA(SwPagePreview)) + else if (dynamic_cast< const SwPagePreview *>( pSfxVwSh ) != nullptr) static_cast<SwPagePreview *>(pSfxVwSh)->DocSzChgd( rSize ); } } @@ -71,14 +71,14 @@ void PageNumNotify( SwViewShell* pVwSh, sal_uInt16 nPhyNum, sal_uInt16 nVirtNum, const OUString& rPgStr) { SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); - if ( pSfxVwSh && pSfxVwSh->ISA(SwView) && + if ( pSfxVwSh && dynamic_cast< const SwView *>( pSfxVwSh ) != nullptr && static_cast<SwView*>(pSfxVwSh)->GetCurShell() ) static_cast<SwView *>(pSfxVwSh)->UpdatePageNums(nPhyNum, nVirtNum, rPgStr); } void FrameNotify( SwViewShell* pVwSh, FlyMode eMode ) { - if ( pVwSh->ISA(SwCrsrShell) ) + if ( dynamic_cast< const SwCrsrShell *>( pVwSh ) != nullptr ) SwBaseShell::SetFrmMode( eMode, static_cast<SwWrtShell*>(pVwSh) ); } @@ -110,14 +110,14 @@ TableChgMode GetTableChgDefaultMode() void RepaintPagePreview( SwViewShell* pVwSh, const SwRect& rRect ) { SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); - if (pSfxVwSh && pSfxVwSh->ISA( SwPagePreview )) + if (pSfxVwSh && dynamic_cast< const SwPagePreview *>( pSfxVwSh ) != nullptr) static_cast<SwPagePreview *>(pSfxVwSh)->RepaintCoreRect( rRect ); } bool JumpToSwMark( SwViewShell* pVwSh, const OUString& rMark ) { SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell(); - if( pSfxVwSh && pSfxVwSh->ISA( SwView ) ) + if( pSfxVwSh && dynamic_cast< const SwView *>( pSfxVwSh ) != nullptr ) return static_cast<SwView *>(pSfxVwSh)->JumpToSwMark( rMark ); return false; } |