summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index a9a4bd035e81..83b65bd0ca48 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -346,7 +346,7 @@ long Window::SetZoomFactor(long nZoom)
UpdateMapOrigin();
// Update the view's snapping to the new zoom factor.
- if ( mpViewShell && mpViewShell->ISA(DrawViewShell) )
+ if ( mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr )
static_cast<DrawViewShell*>(mpViewShell)->GetView()->
RecalcLogicSnapMagnetic(*this);
@@ -585,7 +585,7 @@ void Window::UpdateMapMode()
// removed old stuff here which still forced zoom to be
// %BRUSH_SIZE which is outdated now
- if (mpViewShell && mpViewShell->ISA(DrawViewShell))
+ if (mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr)
{
// page should not "stick" to the window border
if (aPix.Width() == 0)
@@ -790,7 +790,7 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
else
nPreviewSlot = SID_PREVIEW_QUALITY_COLOR;
- if( mpViewShell->ISA( DrawViewShell ) )
+ if( dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr )
{
SetDrawMode( nOutputMode );
mpViewShell->GetFrameView()->SetDrawMode( nOutputMode );
@@ -798,7 +798,7 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
}
// Overwrite window color for OutlineView
- if( mpViewShell->ISA(OutlineViewShell ) )
+ if( dynamic_cast< OutlineViewShell *>( mpViewShell ) != nullptr )
{
svtools::ColorConfig aColorConfig;
const Color aDocColor( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor );
@@ -811,7 +811,7 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
mpViewShell->ArrangeGUIElements();
// re-create handles to show new outfit
- if(mpViewShell->ISA(DrawViewShell))
+ if(dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr)
{
mpViewShell->GetView()->AdjustMarkHdl();
}
@@ -882,7 +882,7 @@ sal_Int8 Window::AcceptDrop( const AcceptDropEvent& rEvt )
if( mpViewShell )
nRet = mpViewShell->AcceptDrop( rEvt, *this, this, SDRPAGE_NOTFOUND, SDRLAYER_NOTFOUND );
- if (mbUseDropScroll && ! mpViewShell->ISA(OutlineViewShell))
+ if (mbUseDropScroll && dynamic_cast< OutlineViewShell *>( mpViewShell ) == nullptr)
DropScroll( rEvt.maPosPixel );
}
@@ -953,7 +953,7 @@ void Window::DropScroll(const Point& rMousePos)
Window::CreateAccessible()
{
// If current viewshell is PresentationViewShell, just return empty because the correct ShowWin will be created later.
- if (mpViewShell && mpViewShell->ISA(PresentationViewShell))
+ if (mpViewShell && dynamic_cast< PresentationViewShell *>( mpViewShell ) != nullptr)
{
return vcl::Window::CreateAccessible ();
}