diff options
Diffstat (limited to 'sd/source/ui/tools/EventMultiplexer.cxx')
-rw-r--r-- | sd/source/ui/tools/EventMultiplexer.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sd/source/ui/tools/EventMultiplexer.cxx b/sd/source/ui/tools/EventMultiplexer.cxx index 81678d1af7c0..989587d401d0 100644 --- a/sd/source/ui/tools/EventMultiplexer.cxx +++ b/sd/source/ui/tools/EventMultiplexer.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -63,7 +63,7 @@ static const sal_Int32 ConfigurationUpdateEvent = 2; namespace sd { namespace tools { -typedef cppu::WeakComponentImplHelper4< +typedef cppu::WeakComponentImplHelper4< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::frame::XFrameActionListener, ::com::sun::star::view::XSelectionChangeListener, @@ -80,11 +80,11 @@ public: ~Implementation (void); void AddEventListener ( - Link& rCallback, + Link& rCallback, EventMultiplexerEvent::EventId aEventTypes); void RemoveEventListener ( - Link& rCallback, + Link& rCallback, EventMultiplexerEvent::EventId aEventTypes); void CallListeners (EventMultiplexerEvent& rEvent); @@ -92,19 +92,19 @@ public: ViewShellBase& GetViewShellBase() const { return mrBase; } //===== lang::XEventListener ============================================== - virtual void SAL_CALL + virtual void SAL_CALL disposing (const ::com::sun::star::lang::EventObject& rEventObject) throw (::com::sun::star::uno::RuntimeException); //===== beans::XPropertySetListener ======================================= - virtual void SAL_CALL + virtual void SAL_CALL propertyChange ( const com::sun::star::beans::PropertyChangeEvent& rEvent) throw (::com::sun::star::uno::RuntimeException); //===== view::XSelectionChangeListener ==================================== - virtual void SAL_CALL + virtual void SAL_CALL selectionChanged ( const com::sun::star::lang::EventObject& rEvent) throw (::com::sun::star::uno::RuntimeException); @@ -114,12 +114,12 @@ public: frame it is listening to. This usually happens when the view shell in the center pane is replaced by another view shell. */ - virtual void SAL_CALL + virtual void SAL_CALL frameAction (const ::com::sun::star::frame::FrameActionEvent& rEvent) throw (::com::sun::star::uno::RuntimeException); //===== drawing::framework::XConfigurationChangeListener ================== - virtual void SAL_CALL + virtual void SAL_CALL notifyConfigurationChange ( const ::com::sun::star::drawing::framework::ConfigurationChangeEvent& rEvent) throw (::com::sun::star::uno::RuntimeException); @@ -217,7 +217,7 @@ EventMultiplexer::~EventMultiplexer (void) void EventMultiplexer::AddEventListener ( - Link& rCallback, + Link& rCallback, EventMultiplexerEvent::EventId aEventTypes) { mpImpl->AddEventListener (rCallback, aEventTypes); @@ -241,7 +241,7 @@ void EventMultiplexer::MultiplexEvent( void* pUserData ) { EventMultiplexerEvent aEvent (mpImpl->GetViewShellBase(), eEventId, pUserData); - mpImpl->CallListeners(aEvent); + mpImpl->CallListeners(aEvent); } @@ -366,7 +366,7 @@ void EventMultiplexer::Implementation::ReleaseListeners (void) void EventMultiplexer::Implementation::AddEventListener ( - Link& rCallback, + Link& rCallback, EventMultiplexerEvent::EventId aEventTypes) { ListenerList::iterator iListener (maListeners.begin()); @@ -436,7 +436,7 @@ void EventMultiplexer::Implementation::ConnectToController (void) mbListeningToController = true; } - // Listen to changes of certain properties. + // Listen to changes of certain properties. Reference<beans::XPropertySet> xSet (xController, UNO_QUERY); if (xSet.is()) { @@ -448,7 +448,7 @@ void EventMultiplexer::Implementation::ConnectToController (void) { OSL_TRACE("EventMultiplexer::ConnectToController: CurrentPage unknown"); } - + try { xSet->addPropertyChangeListener(msEditModePropertyName, this); @@ -458,7 +458,7 @@ void EventMultiplexer::Implementation::ConnectToController (void) OSL_TRACE("EventMultiplexer::ConnectToController: IsMasterPageMode unknown"); } } - + // Listen for selection change events. Reference<view::XSelectionSupplier> xSelection (xController, UNO_QUERY); if (xSelection.is()) @@ -505,7 +505,7 @@ void EventMultiplexer::Implementation::DisconnectFromController (void) OSL_TRACE ("DisconnectFromController: IsMasterPageMode unknown"); } } - + // Remove selection change listener. Reference<view::XSelectionSupplier> xSelection (xController, UNO_QUERY); if (xSelection.is()) @@ -600,7 +600,7 @@ void SAL_CALL EventMultiplexer::Implementation::frameAction ( ConnectToController(); CallListeners (EventMultiplexerEvent::EID_CONTROLLER_ATTACHED); break; - + case frame::FrameAction_COMPONENT_ATTACHED: ConnectToController(); CallListeners (EventMultiplexerEvent::EID_CONTROLLER_ATTACHED); @@ -662,7 +662,7 @@ void SAL_CALL EventMultiplexer::Implementation::notifyConfigurationChange ( } } break; - + case ResourceDeactivationEvent: if (rEvent.ResourceId->getResourceURL().match(FrameworkHelper::msViewURLPrefix)) { @@ -695,7 +695,7 @@ void SAL_CALL EventMultiplexer::Implementation::notifyConfigurationChange ( CallListeners (EventMultiplexerEvent::EID_CONFIGURATION_UPDATED); break; } - + } |