diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 08:43:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 08:44:50 +0200 |
commit | 942716fee138b68c2af9411384f402b5692a88b2 (patch) | |
tree | 61ac99aa7ad3cdedd1c75621f5e4146f819e7bc2 /sd/source/ui/annotations | |
parent | b417930dce9570ad16d04a1f834f5be2738b19ed (diff) |
convert EID constants to typed_flags
Change-Id: I3bcccd8836e54dd33bb079856226fbedd574c824
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index b2e6c9a20cea..76703f876a2e 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -868,10 +868,10 @@ void AnnotationManagerImpl::addListener() Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,AnnotationManagerImpl,EventMultiplexerListener) ); mrBase.GetEventMultiplexer()->AddEventListener ( aLink, - tools::EventMultiplexerEvent::EID_EDIT_VIEW_SELECTION - | tools::EventMultiplexerEvent::EID_CURRENT_PAGE - | tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED - | tools::EventMultiplexerEvent::EID_MAIN_VIEW_ADDED); + EventMultiplexerEventId::EditViewSelection + | EventMultiplexerEventId::CurrentPageChanged + | EventMultiplexerEventId::MainViewRemoved + | EventMultiplexerEventId::MainViewAdded); } void AnnotationManagerImpl::removeListener() @@ -885,20 +885,22 @@ IMPL_LINK(AnnotationManagerImpl,EventMultiplexerListener, { switch (rEvent.meEventId) { - case tools::EventMultiplexerEvent::EID_CURRENT_PAGE: - case tools::EventMultiplexerEvent::EID_EDIT_VIEW_SELECTION: + case EventMultiplexerEventId::CurrentPageChanged: + case EventMultiplexerEventId::EditViewSelection: onSelectionChanged(); break; - case tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED: + case EventMultiplexerEventId::MainViewRemoved: mxView.clear(); onSelectionChanged(); break; - case tools::EventMultiplexerEvent::EID_MAIN_VIEW_ADDED: + case EventMultiplexerEventId::MainViewAdded: mxView.set( mrBase.GetController(), UNO_QUERY ); onSelectionChanged(); break; + + default: break; } } |