summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorJesso Clarence Murugan <developer.jesso@gmail.com>2012-07-16 12:18:02 +0300
committerMichael Meeks <michael.meeks@suse.com>2012-07-16 11:44:42 +0100
commit8a768fe2d780bdcb60c0dc0c4bc38410052233a4 (patch)
tree205ac02312712f026a9ab811f4ce10b539687d5a /vcl/source
parent1d1e7313ab076c919ce1bd095bac07480cea392f (diff)
Replaced all calls to deprecated function ImplDelData::IsDelete()
Deleted the function ImplDelData::IsDelete() and replaced all calls to it with calls to ImplDelData::IsDead() directly. IsDelete () function itself was only a simple wrapper to IsDead () (and mentioned as deprecated) Change-Id: I71baf68801219cfbe2d2dc41d6bd5e419b9b4a87
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/help.cxx2
-rw-r--r--vcl/source/app/svapp.cxx2
-rw-r--r--vcl/source/control/button.cxx18
-rw-r--r--vcl/source/control/ctrl.cxx4
-rw-r--r--vcl/source/control/lstbox.cxx2
-rw-r--r--vcl/source/window/dialog.cxx10
-rw-r--r--vcl/source/window/dndevdis.cxx2
-rw-r--r--vcl/source/window/dockwin.cxx2
-rw-r--r--vcl/source/window/menu.cxx6
-rw-r--r--vcl/source/window/syswin.cxx2
-rw-r--r--vcl/source/window/toolbox.cxx8
-rw-r--r--vcl/source/window/toolbox2.cxx6
-rw-r--r--vcl/source/window/window.cxx40
-rw-r--r--vcl/source/window/window2.cxx2
-rw-r--r--vcl/source/window/winproc.cxx52
15 files changed, 79 insertions, 79 deletions
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index 48881ba03561..c57cb7430467 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -400,7 +400,7 @@ void HelpTextWindow::ImplShow()
{
ImplDelData aDogTag( this );
Show( sal_True, SHOW_NOACTIVATE );
- if( !aDogTag.IsDelete() )
+ if( !aDogTag.IsDead() )
Update();
}
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 3611f4386213..c78bb97606dc 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1024,7 +1024,7 @@ void Application::RemoveUserEvent( sal_uLong nUserEvent )
if ( pSVEvent->mpWindow )
{
- if( ! pSVEvent->maDelData.IsDelete() )
+ if( ! pSVEvent->maDelData.IsDead() )
pSVEvent->mpWindow->ImplRemoveDel( &(pSVEvent->maDelData) );
pSVEvent->mpWindow = NULL;
}
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 9ba7e8f0fbf6..3dd6097465f7 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2346,7 +2346,7 @@ void RadioButton::ImplUncheckAllOther()
ImplDelData aDelData;
pWindow->ImplAddDel( &aDelData );
((RadioButton*)pWindow)->SetState( sal_False );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
pWindow->ImplRemoveDel( &aDelData );
}
@@ -2376,7 +2376,7 @@ void RadioButton::ImplUncheckAllOther()
ImplDelData aDelData;
pWindow->ImplAddDel( &aDelData );
((RadioButton*)pWindow)->SetState( sal_False );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
pWindow->ImplRemoveDel( &aDelData );
}
@@ -2401,18 +2401,18 @@ void RadioButton::ImplCallClick( sal_Bool bGrabFocus, sal_uInt16 nFocusFlags )
ImplAddDel( &aDelData );
if ( mbRadioCheck )
ImplUncheckAllOther();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
if ( bGrabFocus )
ImplGrabFocus( nFocusFlags );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
if ( mbStateChanged )
Toggle();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
Click();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
mbStateChanged = sal_False;
@@ -2831,11 +2831,11 @@ void RadioButton::Check( sal_Bool bCheck )
ImplDelData aDelData;
ImplAddDel( &aDelData );
StateChanged( STATE_CHANGE_STATE );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
if ( bCheck && mbRadioCheck )
ImplUncheckAllOther();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
Toggle();
ImplRemoveDel( &aDelData );
@@ -3351,7 +3351,7 @@ void CheckBox::ImplCheck()
ImplInvalidateOrDrawCheckBoxState();
if( ! (GetStyle() & WB_EARLYTOGGLE) )
Toggle();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
Click();
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index cd1c7df39cd5..5039c2b83e15 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -371,11 +371,11 @@ sal_Bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, const Lin
ImplAddDel( &aCheckDelete );
ImplCallEventListeners( nEvent );
- if ( !aCheckDelete.IsDelete() )
+ if ( !aCheckDelete.IsDead() )
{
rHandler.Call( pCaller );
- if ( !aCheckDelete.IsDelete() )
+ if ( !aCheckDelete.IsDead() )
{
ImplRemoveDel( &aCheckDelete );
return sal_False;
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index bf12e2d1c0b6..6a36f004469b 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -348,7 +348,7 @@ IMPL_LINK_NOARG(ListBox, ImplPopupModeEndHdl)
ImplDelData aCheckDelete;
ImplAddDel( &aCheckDelete );
Select();
- if ( aCheckDelete.IsDelete() )
+ if ( aCheckDelete.IsDead() )
return 0;
ImplRemoveDel( &aCheckDelete );
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index c284d3475bbc..bc7b73e30a97 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -519,7 +519,7 @@ sal_Bool Dialog::Close()
return sal_False;
}
//liuchen 2009-7-22
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
ImplRemoveDel( &aDelData );
@@ -543,7 +543,7 @@ sal_Bool Dialog::Close()
else
bRet = sal_False;
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_True;
ImplRemoveDel( &aDelData );
return bRet;
@@ -677,7 +677,7 @@ short Dialog::Execute()
// Yield util EndDialog is called or dialog gets destroyed
// (the latter should not happen, but better safe than sorry
- while ( !aDelData.IsDelete() && mbInExecute )
+ while ( !aDelData.IsDead() && mbInExecute )
Application::Yield();
ImplEndExecuteModal();
@@ -685,13 +685,13 @@ short Dialog::Execute()
#ifdef DBG_UTIL
if( pDialogParent )
{
- if( ! aParentDelData.IsDelete() )
+ if( ! aParentDelData.IsDead() )
pDialogParent->ImplRemoveDel( &aParentDelData );
else
OSL_FAIL( "Dialog::Execute() - Parent of dialog destroyed in Execute()" );
}
#endif
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
ImplRemoveDel( &aDelData );
#ifdef DBG_UTIL
else
diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx
index fc7c8fcbc70d..b6d3986a6c9a 100644
--- a/vcl/source/window/dndevdis.cxx
+++ b/vcl/source/window/dndevdis.cxx
@@ -451,7 +451,7 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( Window *pWindow,
xContext, nDropAction, relLoc.X(), relLoc.Y(), nSourceActions, xTransferable );
}
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
{
pWindow->ImplRemoveDel( &aDelData );
// release UI lock
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index a98b994262de..ada554629edd 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -713,7 +713,7 @@ sal_Bool DockingWindow::Close()
ImplDelData aDelData;
ImplAddDel( &aDelData );
ImplCallEventListeners( VCLEVENT_WINDOW_CLOSE );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
ImplRemoveDel( &aDelData );
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 3b4ac0d693e2..d39ac242dd76 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3624,7 +3624,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong
Activate();
bInCallback = sal_False;
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 0; // Error
pW->ImplRemoveDel( &aDelData );
@@ -3766,7 +3766,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong
if( ! aModalWinDel.IsDead() )
pW->ImplDecModalCount();
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
pWin->ImplRemoveDel( &aDelData );
else
return 0;
@@ -4980,7 +4980,7 @@ void MenuFloatingWindow::KeyInput( const KeyEvent& rKEvent )
}
}
// #105474# check if menu window was not destroyed
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
{
ImplRemoveDel( &aDelData );
bKeyInput = sal_False;
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index a7a8ce0dff75..0f356a91de87 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -192,7 +192,7 @@ sal_Bool SystemWindow::Close()
ImplDelData aDelData;
ImplAddDel( &aDelData );
ImplCallEventListeners( VCLEVENT_WINDOW_CLOSE );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
ImplRemoveDel( &aDelData );
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index f0d0936772c4..9d3e1155582c 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3579,7 +3579,7 @@ sal_Bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, sal_Bool bCa
ImplDelData aDelData;
ImplAddDel( &aDelData );
Select();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_True;
ImplRemoveDel( &aDelData );
}
@@ -4107,7 +4107,7 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
else
ImplHandleMouseMove( rTEvt.GetMouseEvent(), rTEvt.IsTrackingRepeat() );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
// toolbox was deleted
return;
ImplRemoveDel( &aDelData );
@@ -4992,7 +4992,7 @@ sal_Bool ToolBox::ImplActivateItem( KeyCode aKeyCode )
ImplDelData aDelData;
ImplAddDel( &aDelData );
Select();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return bRet;
ImplRemoveDel( &aDelData );
@@ -5234,7 +5234,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
}
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index ff2c3bb2d1f1..0a16c9d3d4e6 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -524,7 +524,7 @@ void ToolBox::Select()
ImplCallEventListeners( VCLEVENT_TOOLBOX_SELECT );
maSelectHdl.Call( this );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
@@ -2047,7 +2047,7 @@ void ToolBox::ImplExecuteCustomMenu()
sal_uInt16 uId = GetMenu()->Execute( pWin, Rectangle( ImplGetPopupPosition( aMenuRect, Size() ), Size() ),
POPUPMENU_EXECUTE_DOWN | POPUPMENU_NOMOUSEUPCLOSE );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
@@ -2055,7 +2055,7 @@ void ToolBox::ImplExecuteCustomMenu()
GetMenu()->RemoveEventListener( LINK( this, ToolBox, ImplCustomMenuListener ) );
if( bBorderDel )
{
- if( aBorderDel.IsDelete() )
+ if( aBorderDel.IsDead() )
return;
pWin->ImplRemoveDel( &aBorderDel );
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 9c45e8bf814c..a39d8550d54c 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -4010,7 +4010,7 @@ void Window::ImplGrabFocus( sal_uInt16 nFlags )
}
// call Get- and LoseFocus
- if ( pOldFocusWindow && ! aOldFocusDel.IsDelete() )
+ if ( pOldFocusWindow && ! aOldFocusDel.IsDead() )
{
if ( pOldFocusWindow->IsTracking() &&
(pSVData->maWinData.mnTrackFlags & STARTTRACK_FOCUSCANCEL) )
@@ -4040,15 +4040,15 @@ void Window::ImplGrabFocus( sal_uInt16 nFlags )
// notify the new focus window so it can restore the inner focus
// eg, toolboxes can select their recent active item
if( pOldFocusWindow &&
- ! aOldFocusDel.IsDelete() &&
+ ! aOldFocusDel.IsDead() &&
( pOldFocusWindow->GetDialogControlFlags() & WINDOW_DLGCTRL_FLOATWIN_POPUPMODEEND_CANCEL ) )
mpWindowImpl->mnGetFocusFlags |= GETFOCUS_FLOATWIN_POPUPMODEEND_CANCEL;
NotifyEvent aNEvt( EVENT_GETFOCUS, this );
- if ( !ImplCallPreNotify( aNEvt ) && !aDogTag.IsDelete() )
+ if ( !ImplCallPreNotify( aNEvt ) && !aDogTag.IsDead() )
GetFocus();
- if( !aDogTag.IsDelete() )
- ImplCallActivateListeners( (pOldFocusWindow && ! aOldFocusDel.IsDelete()) ? pOldFocusWindow : NULL );
- if( !aDogTag.IsDelete() )
+ if( !aDogTag.IsDead() )
+ ImplCallActivateListeners( (pOldFocusWindow && ! aOldFocusDel.IsDead()) ? pOldFocusWindow : NULL );
+ if( !aDogTag.IsDead() )
{
mpWindowImpl->mnGetFocusFlags = 0;
mpWindowImpl->mbInFocusHdl = sal_False;
@@ -4760,7 +4760,7 @@ void Window::GetFocus()
{
ImplDelData aDogtag( this );
mpWindowImpl->mpLastFocusWindow->GrabFocus();
- if( aDogtag.IsDelete() )
+ if( aDogtag.IsDead() )
return;
}
@@ -4967,7 +4967,7 @@ void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
ImplCallEventListeners( VCLEVENT_WINDOW_KEYUP, (void*)rNEvt.GetKeyEvent() );
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
@@ -5168,12 +5168,12 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData )
ImplGetSVData()->mpApp->ImplCallEventListeners( &aEvent );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
mpWindowImpl->maEventListeners.Call( &aEvent );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
ImplRemoveDel( &aDelData );
@@ -5185,7 +5185,7 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData )
pWindow->mpWindowImpl->maChildEventListeners.Call( &aEvent );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return;
pWindow->ImplRemoveDel( &aDelData );
@@ -6174,7 +6174,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
if ( !bVisible )
{
ImplHideAllOverlaps();
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
if ( mpWindowImpl->mpBorderWindow )
@@ -6211,7 +6211,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
aInvRegion = mpWindowImpl->maWinClipRegion;
}
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
bRealVisibilityChanged = mpWindowImpl->mbReallyVisible;
@@ -6342,7 +6342,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
mpWindowImpl->mbPaintFrame = sal_True;
sal_Bool bNoActivate = (nFlags & (SHOW_NOACTIVATE|SHOW_NOFOCUSCHANGE)) ? sal_True : sal_False;
mpWindowImpl->mpFrame->Show( sal_True, bNoActivate );
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
// Query the correct size of the window, if we are waiting for
@@ -6356,7 +6356,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
}
}
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
#if OSL_DEBUG_LEVEL > 0
@@ -6369,7 +6369,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
ImplShowAllOverlaps();
}
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
// invalidate all saved backgrounds
if ( mpWindowImpl->mpFrameData->mpFirstBackWin )
@@ -6382,7 +6382,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
// now only notify with a NULL data pointer, for all other clients except the access bridge.
if ( !bRealVisibilityChanged )
ImplCallEventListeners( mpWindowImpl->mbVisible ? VCLEVENT_WINDOW_SHOW : VCLEVENT_WINDOW_HIDE, NULL );
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return;
// #107575#, if a floating windows is shown that grabs the focus, we have to notify the toolkit about it
@@ -6420,7 +6420,7 @@ Size Window::GetSizePixel() const
ImplDelData aDogtag( this );
mpWindowImpl->mpFrameData->maResizeTimer.Stop();
mpWindowImpl->mpFrameData->maResizeTimer.GetTimeoutHdl().Call( NULL );
- if( aDogtag.IsDelete() )
+ if( aDogtag.IsDead() )
return Size(0,0);
}
@@ -8109,7 +8109,7 @@ void Window::ImplCallDeactivateListeners( Window *pNew )
{
ImplDelData aDogtag( this );
ImplCallEventListeners( VCLEVENT_WINDOW_DEACTIVATE );
- if( aDogtag.IsDelete() )
+ if( aDogtag.IsDead() )
return;
// #100759#, avoid walking the wrong frame's hierarchy
@@ -8128,7 +8128,7 @@ void Window::ImplCallActivateListeners( Window *pOld )
{
ImplDelData aDogtag( this );
ImplCallEventListeners( VCLEVENT_WINDOW_ACTIVATE, pOld );
- if( aDogtag.IsDelete() )
+ if( aDogtag.IsDead() )
return;
// #106298# revoke the change for 105369, because this change
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index bea09c63491b..c1445d15ef6b 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -832,7 +832,7 @@ sal_Bool Window::EndSaveFocus( sal_uIntPtr nSaveId, sal_Bool bRestore )
{
sal_Bool bOK = sal_True;
ImplFocusDelData* pDelData = (ImplFocusDelData*)(void*)nSaveId;
- if ( !pDelData->IsDelete() )
+ if ( !pDelData->IsDead() )
{
pDelData->mpFocusWin->ImplRemoveDel( pDelData );
if ( bRestore )
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index b5096abcc8f6..e35015fb4f75 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -300,17 +300,17 @@ static sal_Bool ImplCallCommand( Window* pChild, sal_uInt16 nEvt, void* pData =
NotifyEvent aNCmdEvt( EVENT_COMMAND, pChild, &aCEvt );
ImplDelData aDelData( pChild );
sal_Bool bPreNotify = (ImplCallPreNotify( aNCmdEvt ) != 0);
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
if ( !bPreNotify )
{
pChild->ImplGetWindowImpl()->mbCommand = sal_False;
pChild->Command( aCEvt );
- if( aDelData.IsDelete() )
+ if( aDelData.IsDead() )
return sal_False;
pChild->ImplNotifyKeyMouseCommandEventListeners( aNCmdEvt );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
if ( pChild->ImplGetWindowImpl()->mbCommand )
return sal_True;
@@ -336,7 +336,7 @@ static long ContextMenuEventLink( void* pCEvent, void* )
{
ContextMenuEvent* pEv = (ContextMenuEvent*)pCEvent;
- if( ! pEv->aDelData.IsDelete() )
+ if( ! pEv->aDelData.IsDead() )
{
pEv->pWindow->ImplRemoveDel( &pEv->aDelData );
ImplCallCommand( pEv->pWindow, COMMAND_CONTEXTMENU, NULL, sal_True, &pEv->aChildPos );
@@ -399,7 +399,7 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
ImplDestroyHelpWindow( true );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 1; // pWindow is dead now - avoid crash! (#122045#)
}
}
@@ -631,7 +631,7 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
{
pMouseMoveWin->MouseMove( aMLeaveEvt );
// #82968#
- if( !aDelData.IsDelete() )
+ if( !aDelData.IsDead() )
aNLeaveEvt.GetWindow()->ImplNotifyKeyMouseCommandEventListeners( aNLeaveEvt );
}
@@ -640,12 +640,12 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
if ( pChild )
{
- if ( aDelData2.IsDelete() )
+ if ( aDelData2.IsDead() )
pChild = NULL;
else
pChild->ImplRemoveDel( &aDelData2 );
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 1;
pMouseMoveWin->ImplRemoveDel( &aDelData );
}
@@ -719,7 +719,7 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
pChild->ImplAddDel( &aDelData );
if ( ImplHandleMouseFloatMode( pChild, aMousePos, nCode, nSVEvent, bMouseLeave ) )
{
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
{
pChild->ImplRemoveDel( &aDelData );
pChild->ImplGetFrameData()->mbStartDragCalled = sal_True;
@@ -747,11 +747,11 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
if( !pSVData->maWinData.mpFirstFloat && // totop for floating windows in popup would change the focus and would close them immediately
!(pChild->ImplGetFrameWindow()->GetStyle() & WB_OWNERDRAWDECORATION) ) // ownerdrawdecorated windows must never grab focus
pChild->ToTop();
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 1;
}
- if ( ImplCallPreNotify( aNEvt ) || aDelData.IsDelete() )
+ if ( ImplCallPreNotify( aNEvt ) || aDelData.IsDead() )
nRet = 1;
else
{
@@ -762,7 +762,7 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
{
TrackingEvent aTEvt( aMEvt );
pChild->Tracking( aTEvt );
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
{
// When ScrollRepeat, we restart the timer
if ( pSVData->maWinData.mpTrackTimer &&
@@ -779,7 +779,7 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
(pChild->GetSettings().GetMouseSettings().GetOptions() & MOUSE_OPTION_AUTOFOCUS) )
pChild->ToTop( TOTOP_NOGRABFOCUS );
- if( aDelData.IsDelete() )
+ if( aDelData.IsDead() )
bCallHelpRequest = sal_False;
else
{
@@ -819,11 +819,11 @@ long ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, sal_Bool bMouse
}
// #82968#
- if ( !aDelData.IsDelete() )
+ if ( !aDelData.IsDead() )
aNEvt.GetWindow()->ImplNotifyKeyMouseCommandEventListeners( aNEvt );
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 1;
@@ -1105,7 +1105,7 @@ static long ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
sal_Bool bKeyPreNotify = (ImplCallPreNotify( aNotifyEvt ) != 0);
long nRet = 1;
- if ( !bKeyPreNotify && !aDelData.IsDelete() )
+ if ( !bKeyPreNotify && !aDelData.IsDead() )
{
if ( nSVEvent == EVENT_KEYINPUT )
{
@@ -1118,11 +1118,11 @@ static long ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
pChild->KeyUp( aKeyEvt );
}
// #82968#
- if( !aDelData.IsDelete() )
+ if( !aDelData.IsDead() )
aNotifyEvt.GetWindow()->ImplNotifyKeyMouseCommandEventListeners( aNotifyEvt );
}
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return 1;
pChild->ImplRemoveDel( &aDelData );
@@ -1216,7 +1216,7 @@ static long ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
KeyEvent aKEvt( (xub_Unicode)nCharCode, aKeyCode, nRepeat );
NotifyEvent aNEvt( nSVEvent, pChild, &aKEvt );
sal_Bool bPreNotify = (ImplCallPreNotify( aNEvt ) != 0);
- if ( aChildDelData.IsDelete() )
+ if ( aChildDelData.IsDead() )
return 1;
if ( !bPreNotify )
@@ -1232,9 +1232,9 @@ static long ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
pChild->KeyUp( aKEvt );
}
// #82968#
- if( !aChildDelData.IsDelete() )
+ if( !aChildDelData.IsDead() )
aNEvt.GetWindow()->ImplNotifyKeyMouseCommandEventListeners( aNEvt );
- if ( aChildDelData.IsDelete() )
+ if ( aChildDelData.IsDead() )
return 1;
}
@@ -1439,13 +1439,13 @@ static sal_Bool ImplCallWheelCommand( Window* pWindow, const Point& rPos,
NotifyEvent aNCmdEvt( EVENT_COMMAND, pWindow, &aCEvt );
ImplDelData aDelData( pWindow );
sal_Bool bPreNotify = (ImplCallPreNotify( aNCmdEvt ) != 0);
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
if ( !bPreNotify )
{
pWindow->ImplGetWindowImpl()->mbCommand = sal_False;
pWindow->Command( aCEvt );
- if ( aDelData.IsDelete() )
+ if ( aDelData.IsDead() )
return sal_False;
if ( pWindow->ImplGetWindowImpl()->mbCommand )
return sal_True;
@@ -1464,7 +1464,7 @@ static long ImplHandleWheelEvent( Window* pWindow, const SalWheelMouseEvent& rEv
pSVData->maWinData.mpAutoScrollWin->EndAutoScroll();
if ( pSVData->maHelpData.mpHelpWin )
ImplDestroyHelpWindow( true );
- if( aDogTag.IsDelete() )
+ if( aDogTag.IsDead() )
return 0;
sal_uInt16 nMode;
@@ -1910,7 +1910,7 @@ static long DelayedCloseEventLink( void* pCEvent, void* )
{
DelayedCloseEvent* pEv = (DelayedCloseEvent*)pCEvent;
- if( ! pEv->aDelData.IsDelete() )
+ if( ! pEv->aDelData.IsDead() )
{
pEv->pWindow->ImplRemoveDel( &pEv->aDelData );
// dispatch to correct window type
@@ -1987,7 +1987,7 @@ static void ImplHandleUserEvent( ImplSVEvent* pSVEvent )
{
if ( pSVEvent )
{
- if ( pSVEvent->mbCall && !pSVEvent->maDelData.IsDelete() )
+ if ( pSVEvent->mbCall && !pSVEvent->maDelData.IsDead() )
{
if ( pSVEvent->mpWindow )
{