summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtwin3.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin3.cxx16
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;
}