diff options
Diffstat (limited to 'sd/source/ui/annotations/annotationtag.cxx')
-rw-r--r-- | sd/source/ui/annotations/annotationtag.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx index 771cd5964d5e..fe740b524273 100644 --- a/sd/source/ui/annotations/annotationtag.cxx +++ b/sd/source/ui/annotations/annotationtag.cxx @@ -614,7 +614,7 @@ IMPL_LINK(AnnotationTag, WindowEventHandler, VclWindowEvent&, rEvent, void) { if( pWindow == mpAnnotationWindow.get() ) { - if( rEvent.GetId() == VCLEVENT_WINDOW_DEACTIVATE ) + if( rEvent.GetId() == VclEventId::WindowDeactivate ) { // tdf#99388 and tdf#99712 if PopupMenu is active, suppress // deletion of the AnnotationWindow which is triggered by @@ -632,7 +632,7 @@ IMPL_LINK(AnnotationTag, WindowEventHandler, VclWindowEvent&, rEvent, void) { switch( rEvent.GetId() ) { - case VCLEVENT_WINDOW_MOUSEBUTTONUP: + case VclEventId::WindowMouseButtonUp: { // if we stop pressing the button without a mouse move we open the popup mpListenWindow->RemoveEventListener( LINK(this, AnnotationTag, WindowEventHandler)); @@ -641,7 +641,7 @@ IMPL_LINK(AnnotationTag, WindowEventHandler, VclWindowEvent&, rEvent, void) OpenPopup(false); } break; - case VCLEVENT_WINDOW_MOUSEMOVE: + case VclEventId::WindowMouseMove: { // if we move the mouse after a button down we wan't to start draging mpListenWindow->RemoveEventListener( LINK(this, AnnotationTag, WindowEventHandler)); @@ -660,9 +660,10 @@ IMPL_LINK(AnnotationTag, WindowEventHandler, VclWindowEvent&, rEvent, void) } } break; - case VCLEVENT_OBJECT_DYING: + case VclEventId::ObjectDying: mpListenWindow = nullptr; break; + default: break; } } } |