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/table | |
parent | b417930dce9570ad16d04a1f834f5be2738b19ed (diff) |
convert EID constants to typed_flags
Change-Id: I3bcccd8836e54dd33bb079856226fbedd574c824
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 9233453be888..f09f52dc5a36 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -424,11 +424,11 @@ void TableDesignWidget::addListener() Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,TableDesignWidget,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 - | tools::EventMultiplexerEvent::EID_DISPOSING); + EventMultiplexerEventId::EditViewSelection + | EventMultiplexerEventId::CurrentPageChanged + | EventMultiplexerEventId::MainViewRemoved + | EventMultiplexerEventId::MainViewAdded + | EventMultiplexerEventId::Disposing); } void TableDesignWidget::removeListener() @@ -442,20 +442,22 @@ IMPL_LINK(TableDesignWidget,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; } } |