summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-12 11:00:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-21 07:17:04 +0000
commit8889ac2a1e956873f9d7357e2b3d066122ea64f4 (patch)
tree90013e69274e840e55203dd3d552a219270ab6be
parent4849df7b4ca22978f6e15d03d3eca822f343fc5e (diff)
tdf#104046 - Slides in the slide pane don't update in realtime
This appears to be a consequence of my change commit 942716fee138b68c2af9411384f402b5692a88b2 convert EID constants to typed_flags in that change I made a "fix": @@ -689,20 +687,20 @@ void EventMultiplexer::Implementation::CallListeners (EventMultiplexerEvent& rEv ListenerList::const_iterator iListenerEnd (aCopyListeners.end()); for (; iListener!=iListenerEnd; ++iListener) { - if ((iListener->second && rEvent.meEventId)) + if (iListener->second & rEvent.meEventId) iListener->first.Call(rEvent); } } which causes this bug. I should have noticed that my "fix" indicates that the event filtering part of this multiplexing code was never working, and since no-one has ever complained about, lets just remove all of this unnecessary complexity. Change-Id: Id71613d4fd5817ee1358705059e4ce63d57573ad Reviewed-on: https://gerrit.libreoffice.org/31894 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 69f6fbb5d0ad87c85e0236a7fece107b69eb8b8b) Reviewed-on: https://gerrit.libreoffice.org/32114 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx9
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx9
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx7
-rw-r--r--sd/source/ui/inc/EventMultiplexer.hxx76
-rw-r--r--sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx9
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx10
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx11
-rw-r--r--sd/source/ui/slidesorter/controller/SlsListener.cxx16
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx8
-rw-r--r--sd/source/ui/tools/EventMultiplexer.cxx59
-rw-r--r--sd/source/ui/view/FormShellManager.cxx6
-rw-r--r--sd/source/ui/view/ToolBarManager.cxx6
-rw-r--r--sd/source/ui/view/outlview.cxx5
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx6
14 files changed, 55 insertions, 182 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 237bdd198a7a..319d9b45e6d2 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -308,14 +308,7 @@ void CustomAnimationPane::KeyInput( const KeyEvent& rKEvt )
void CustomAnimationPane::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,CustomAnimationPane,EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener (
- aLink,
- EventMultiplexerEventId::EditViewSelection
- | EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::Disposing
- | EventMultiplexerEventId::EndTextEdit);
+ mrBase.GetEventMultiplexer()->AddEventListener(aLink);
}
void CustomAnimationPane::removeListener()
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index dc65fdde43da..05a173449875 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -947,14 +947,7 @@ void SlideTransitionPane::playCurrentEffect()
void SlideTransitionPane::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,SlideTransitionPane,EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener (
- aLink,
- EventMultiplexerEventId::EditViewSelection
- | EventMultiplexerEventId::SlideSortedSelection
- | EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::ConfigurationUpdated);
+ mrBase.GetEventMultiplexer()->AddEventListener( aLink );
}
void SlideTransitionPane::removeListener()
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 1eda7533e41f..f2fcd2ce7112 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -866,12 +866,7 @@ void AnnotationManagerImpl::DisposeTags()
void AnnotationManagerImpl::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,AnnotationManagerImpl,EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener (
- aLink,
- EventMultiplexerEventId::EditViewSelection
- | EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded);
+ mrBase.GetEventMultiplexer()->AddEventListener(aLink);
}
void AnnotationManagerImpl::removeListener()
diff --git a/sd/source/ui/inc/EventMultiplexer.hxx b/sd/source/ui/inc/EventMultiplexer.hxx
index 2e8aeb2fbe4a..45e8e8f84133 100644
--- a/sd/source/ui/inc/EventMultiplexer.hxx
+++ b/sd/source/ui/inc/EventMultiplexer.hxx
@@ -35,101 +35,93 @@ class ViewShellBase;
}
-enum class EventMultiplexerEventId : sal_uInt32 {
+enum class EventMultiplexerEventId
+{
/** The EventMultiplexer itself is being disposed. Called for a live
EventMultiplexer. Removing a listener as response is not necessary,
though.
*/
- Disposing = 0x00000001,
+ Disposing,
/** The selection in the center pane has changed.
*/
- EditViewSelection = 0x00000002,
+ EditViewSelection,
/** The selection in the slide sorter has changed, regardless of whether
the slide sorter is displayed in the left pane or the center pane.
*/
- SlideSortedSelection = 0x00000004,
+ SlideSortedSelection,
/** The current page has changed.
*/
- CurrentPageChanged = 0x00000008,
+ CurrentPageChanged,
/** The current MainViewShell (the ViewShell displayed in the center
pane) has been removed.
*/
- MainViewRemoved = 0x00000010,
+ MainViewRemoved,
/** A new ViewShell has been made the MainViewShell.
*/
- MainViewAdded = 0x00000020,
+ MainViewAdded,
/** A new ViewShell is being displayed in one of the panes. Note that
for the ViewShell in the center pane both this event type and
EventId::MainViewAdded is broadcasted.
*/
- ViewAdded = 0x00000040,
+ ViewAdded,
/** The PaneManager is being destroyed.
*/
- PaneManagerDying = 0x00000080,
+ PaneManagerDying,
/** Edit mode was (or is being) switched to normal mode. Find
EventId::EditModeMaster below.
*/
- EditModeNormal = 0x00000100,
+ EditModeNormal,
/** One or more pages have been inserted into or deleted from the model.
*/
- PageOrder = 0x00000200,
+ PageOrder,
/** Text editing in one of the shapes in the MainViewShell has started.
*/
- BeginTextEdit = 0x00000400,
+ BeginTextEdit,
/** Text editing in one of the shapes in the MainViewShell has ended.
*/
- EndTextEdit = 0x00000800,
+ EndTextEdit,
/** A UNO controller has been attached to the UNO frame.
*/
- ControllerAttached = 0x00001000,
+ ControllerAttached,
/** A UNO controller has been detached to the UNO frame.
*/
- ControllerDetached = 0x00002000,
+ ControllerDetached,
/** The state of a shape has changed. The page is available in the user data.
*/
- ShapeChanged = 0x00004000,
+ ShapeChanged,
/** A shape has been inserted to a page. The page is available in the
user data.
*/
- ShapeInserted = 0x00008000,
+ ShapeInserted,
/** A shape has been removed from a page. The page is available in the
user data.
*/
- ShapeRemoved = 0x00010000,
+ ShapeRemoved,
/** A configuration update has been completed.
*/
- ConfigurationUpdated = 0x00020000,
+ ConfigurationUpdated,
/** Edit mode was (or is being) switched to master mode.
*/
- EditModeMaster = 0x00040000,
-
- /** Some constants that make it easier to remove a listener for all
- event types at once.
- */
- AllMask = 0x0007ffff,
- NONE = 0x00000000
+ EditModeMaster,
};
-namespace o3tl {
- template<> struct typed_flags<EventMultiplexerEventId> : is_typed_flags<EventMultiplexerEventId, 0x0007ffff> {};
-}
namespace sd { namespace tools {
@@ -150,14 +142,6 @@ public:
There is usually one EventMultiplexer instance per ViewShellBase().
Call the laters GetEventMultiplexer() method to get access to that
instance.
-
- When a listener is registered it can specify the events it
- wants to be informed of. This can be done with code like the following:
-
- mrViewShellBase.GetEventMultiplexer().AddEventListener (
- LINK(this,MasterPagesSelector,EventMultiplexerListener),
- EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::MainViewRemoved);
*/
class EventMultiplexer
{
@@ -172,24 +156,12 @@ public:
@param rCallback
The callback to call as soon as one of the event specified by
aEventTypeSet is received by the EventMultiplexer.
- @param aEventTypeSet
- A, possibly empty, set of event types that the listener wants to
- be informed about.
*/
- void AddEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypeSet);
+ void AddEventListener(const Link<EventMultiplexerEvent&,void>& rCallback);
/** Remove an event listener for the specified event types.
- @param aEventTypeSet
- The listener will not be called anymore for any of the event
- types in this set. Use EventMultiplexerEventId::AllMask, the default value, to
- remove the listener for all event types it has been registered
- for.
- */
- void RemoveEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypeSet = EventMultiplexerEventId::AllMask);
+ */
+ void RemoveEventListener(const Link<EventMultiplexerEvent&,void>& rCallback);
/** This method is used for out-of-line events. An event of the
specified type will be sent to all listeners that are registered for
diff --git a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
index 465938a4e02c..9db8fcbf204e 100644
--- a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
@@ -74,14 +74,7 @@ CurrentMasterPagesSelector::CurrentMasterPagesSelector (
: MasterPagesSelector (pParent, rDocument, rBase, rpContainer, rxSidebar)
{
Link<sd::tools::EventMultiplexerEvent&,void> aLink (LINK(this,CurrentMasterPagesSelector,EventMultiplexerListener));
- rBase.GetEventMultiplexer()->AddEventListener(aLink,
- EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::EditModeNormal
- | EventMultiplexerEventId::EditModeMaster
- | EventMultiplexerEventId::PageOrder
- | EventMultiplexerEventId::ShapeChanged
- | EventMultiplexerEventId::ShapeInserted
- | EventMultiplexerEventId::ShapeRemoved);
+ rBase.GetEventMultiplexer()->AddEventListener(aLink);
}
CurrentMasterPagesSelector::~CurrentMasterPagesSelector()
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index b9b99ba5564d..5efff01c5b82 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -168,14 +168,7 @@ void LayoutMenu::implConstruct( DrawDocShell& rDocumentShell )
InvalidateContent();
Link<::sd::tools::EventMultiplexerEvent&,void> aEventListenerLink (LINK(this,LayoutMenu,EventMultiplexerListener));
- mrBase.GetEventMultiplexer()->AddEventListener(aEventListenerLink,
- EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::SlideSortedSelection
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::ConfigurationUpdated
- | EventMultiplexerEventId::EditModeNormal
- | EventMultiplexerEventId::EditModeMaster);
+ mrBase.GetEventMultiplexer()->AddEventListener(aEventListenerLink);
Window::SetHelpId(HID_SD_TASK_PANE_PREVIEW_LAYOUTS);
SetAccessibleName(SdResId(STR_TASKPANEL_LAYOUT_MENU_TITLE));
@@ -728,7 +721,6 @@ IMPL_LINK(LayoutMenu, EventMultiplexerListener, ::sd::tools::EventMultiplexerEve
break;
default:
- /* Ignored */
break;
}
}
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 3957fbafbd0d..71d254111aa1 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -304,16 +304,7 @@ void SlideBackground::SetPanelTitle( const OUString& rTitle )
void SlideBackground::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this, SlideBackground, EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener (
- aLink,
- EventMultiplexerEventId::CurrentPageChanged |
- EventMultiplexerEventId::MainViewAdded |
- EventMultiplexerEventId::ShapeChanged |
- EventMultiplexerEventId::EditModeNormal |
- EventMultiplexerEventId::EditModeMaster |
- EventMultiplexerEventId::EditViewSelection |
- EventMultiplexerEventId::EndTextEdit |
- EventMultiplexerEventId::ViewAdded);
+ mrBase.GetEventMultiplexer()->AddEventListener( aLink );
}
void SlideBackground::removeListener()
diff --git a/sd/source/ui/slidesorter/controller/SlsListener.cxx b/sd/source/ui/slidesorter/controller/SlsListener.cxx
index 4e7ed4167752..b9d3f21cc349 100644
--- a/sd/source/ui/slidesorter/controller/SlsListener.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsListener.cxx
@@ -126,13 +126,7 @@ Listener::Listener (
}
Link<tools::EventMultiplexerEvent&,void> aLink (LINK(this, Listener, EventMultiplexerCallback));
- mpBase->GetEventMultiplexer()->AddEventListener(
- aLink,
- EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::ControllerAttached
- | EventMultiplexerEventId::ControllerDetached
- | EventMultiplexerEventId::ConfigurationUpdated);
+ mpBase->GetEventMultiplexer()->AddEventListener(aLink);
}
}
@@ -186,13 +180,7 @@ void Listener::ReleaseListeners()
if (mpBase != nullptr)
{
Link<sd::tools::EventMultiplexerEvent&,void> aLink (LINK(this, Listener, EventMultiplexerCallback));
- mpBase->GetEventMultiplexer()->RemoveEventListener(
- aLink,
- EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::ControllerAttached
- | EventMultiplexerEventId::ControllerDetached
- | EventMultiplexerEventId::ConfigurationUpdated);
+ mpBase->GetEventMultiplexer()->RemoveEventListener(aLink);
}
}
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index 93bd711931fe..d2feaa446417 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -415,13 +415,7 @@ void TableDesignWidget::updateControls()
void TableDesignWidget::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,TableDesignWidget,EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener (
- aLink,
- EventMultiplexerEventId::EditViewSelection
- | EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::Disposing);
+ mrBase.GetEventMultiplexer()->AddEventListener( aLink );
}
void TableDesignWidget::removeListener()
diff --git a/sd/source/ui/tools/EventMultiplexer.cxx b/sd/source/ui/tools/EventMultiplexer.cxx
index 924a5e91e6a9..5442c40fe40b 100644
--- a/sd/source/ui/tools/EventMultiplexer.cxx
+++ b/sd/source/ui/tools/EventMultiplexer.cxx
@@ -68,12 +68,10 @@ public:
virtual ~Implementation() override;
void AddEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes);
+ const Link<EventMultiplexerEvent&,void>& rCallback);
void RemoveEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes);
+ const Link<EventMultiplexerEvent&,void>& rCallback);
void CallListeners (EventMultiplexerEvent& rEvent);
@@ -118,8 +116,7 @@ protected:
private:
ViewShellBase& mrBase;
- typedef ::std::pair<Link<EventMultiplexerEvent&,void>,EventMultiplexerEventId> ListenerDescriptor;
- typedef ::std::vector<ListenerDescriptor> ListenerList;
+ typedef ::std::vector<Link<EventMultiplexerEvent&,void>> ListenerList;
ListenerList maListeners;
/// Remember whether we are listening to the UNO controller.
@@ -170,17 +167,15 @@ EventMultiplexer::~EventMultiplexer()
}
void EventMultiplexer::AddEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes)
+ const Link<EventMultiplexerEvent&,void>& rCallback)
{
- mpImpl->AddEventListener (rCallback, aEventTypes);
+ mpImpl->AddEventListener(rCallback);
}
void EventMultiplexer::RemoveEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes)
+ const Link<EventMultiplexerEvent&,void>& rCallback)
{
- mpImpl->RemoveEventListener (rCallback, aEventTypes);
+ mpImpl->RemoveEventListener(rCallback);
}
void EventMultiplexer::MultiplexEvent(
@@ -300,42 +295,25 @@ void EventMultiplexer::Implementation::ReleaseListeners()
}
void EventMultiplexer::Implementation::AddEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes)
+ const Link<EventMultiplexerEvent&,void>& rCallback)
{
- ListenerList::iterator iListener (maListeners.begin());
- ListenerList::const_iterator iEnd (maListeners.end());
- for (;iListener!=iEnd; ++iListener)
- if (iListener->first == rCallback)
- break;
- if (iListener != maListeners.end())
- {
- // Listener exists. Update its event type set.
- iListener->second |= aEventTypes;
- }
- else
- {
- maListeners.push_back (ListenerDescriptor(rCallback,aEventTypes));
- }
+ for (auto const & i : maListeners)
+ if (i == rCallback)
+ return;
+ maListeners.push_back(rCallback);
}
void EventMultiplexer::Implementation::RemoveEventListener (
- const Link<EventMultiplexerEvent&,void>& rCallback,
- EventMultiplexerEventId aEventTypes)
+ const Link<EventMultiplexerEvent&,void>& rCallback)
{
ListenerList::iterator iListener (maListeners.begin());
ListenerList::const_iterator iEnd (maListeners.end());
for (;iListener!=iEnd; ++iListener)
- if (iListener->first == rCallback)
+ if (*iListener == rCallback)
+ {
+ maListeners.erase(iListener);
break;
- if (iListener != maListeners.end())
- {
- // Update the event type set.
- iListener->second &= ~aEventTypes;
- // When no events remain in the set then remove the listener.
- if (iListener->second == EventMultiplexerEventId::NONE)
- maListeners.erase (iListener);
- }
+ }
}
void EventMultiplexer::Implementation::ConnectToController()
@@ -675,8 +653,7 @@ void EventMultiplexer::Implementation::CallListeners (EventMultiplexerEvent& rEv
ListenerList::const_iterator iListenerEnd (aCopyListeners.end());
for (; iListener!=iListenerEnd; ++iListener)
{
- if (iListener->second & rEvent.meEventId)
- iListener->first.Call(rEvent);
+ iListener->Call(rEvent);
}
}
diff --git a/sd/source/ui/view/FormShellManager.cxx b/sd/source/ui/view/FormShellManager.cxx
index fc57bec856a1..97184ae1a809 100644
--- a/sd/source/ui/view/FormShellManager.cxx
+++ b/sd/source/ui/view/FormShellManager.cxx
@@ -58,11 +58,7 @@ FormShellManager::FormShellManager (ViewShellBase& rBase)
// Register at the EventMultiplexer to be informed about changes in the
// center pane.
Link<sd::tools::EventMultiplexerEvent&,void> aLink (LINK(this, FormShellManager, ConfigurationUpdateHandler));
- mrBase.GetEventMultiplexer()->AddEventListener(
- aLink,
- EventMultiplexerEventId::MainViewRemoved
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::ConfigurationUpdated);
+ mrBase.GetEventMultiplexer()->AddEventListener(aLink);
RegisterAtCenterPane();
}
diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx
index 971f408e3478..ec8918863e11 100644
--- a/sd/source/ui/view/ToolBarManager.cxx
+++ b/sd/source/ui/view/ToolBarManager.cxx
@@ -532,11 +532,7 @@ ToolBarManager::Implementation::Implementation (
maToolBarRules(rpToolBarManager,rpViewShellManager)
{
Link<tools::EventMultiplexerEvent&,void> aLink (LINK(this,ToolBarManager::Implementation,EventMultiplexerCallback));
- mpEventMultiplexer->AddEventListener(
- aLink,
- EventMultiplexerEventId::ControllerAttached
- | EventMultiplexerEventId::ControllerDetached
- | EventMultiplexerEventId::PaneManagerDying);
+ mpEventMultiplexer->AddEventListener( aLink );
}
/** The order of statements is important.
diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx
index edc461fe7f1d..9eda921bb7a9 100644
--- a/sd/source/ui/view/outlview.cxx
+++ b/sd/source/ui/view/outlview.cxx
@@ -127,10 +127,7 @@ OutlineView::OutlineView( DrawDocShell& rDocSh, vcl::Window* pWindow, OutlineVie
}
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,OutlineView,EventMultiplexerListener) );
- mrOutlineViewShell.GetViewShellBase().GetEventMultiplexer()->AddEventListener(
- aLink,
- EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::PageOrder);
+ mrOutlineViewShell.GetViewShellBase().GetEventMultiplexer()->AddEventListener(aLink);
LanguageType eLang = mrOutliner.GetDefaultLanguage();
maPageNumberFont = OutputDevice::GetDefaultFont( DefaultFontType::SANS_UNICODE, eLang, GetDefaultFontFlags::NONE );
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 6cff6d7b2879..f27ef3662b5c 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -399,11 +399,7 @@ ViewOverlayManager::ViewOverlayManager( ViewShellBase& rViewShellBase )
, mnUpdateTagsEvent( nullptr )
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,ViewOverlayManager,EventMultiplexerListener) );
- mrBase.GetEventMultiplexer()->AddEventListener(aLink, EventMultiplexerEventId::CurrentPageChanged
- | EventMultiplexerEventId::MainViewAdded
- | EventMultiplexerEventId::ViewAdded
- | EventMultiplexerEventId::BeginTextEdit
- | EventMultiplexerEventId::EndTextEdit );
+ mrBase.GetEventMultiplexer()->AddEventListener(aLink);
StartListening( *mrBase.GetDocShell() );
}