LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::framework::CenterViewFocusModule Class Referencefinal

This module waits for new views to be created for the center pane and then moves the center view to the top most place on the shell stack. More...

#include <CenterViewFocusModule.hxx>

Inheritance diagram for sd::framework::CenterViewFocusModule:
[legend]
Collaboration diagram for sd::framework::CenterViewFocusModule:
[legend]

Public Member Functions

 CenterViewFocusModule (rtl::Reference< sd::DrawController > const &rxController)
 
virtual ~CenterViewFocusModule () override
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual void SAL_CALL notifyConfigurationChange (const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

void HandleNewView (const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration)
 At the end of an update of the current configuration this method handles a new view in the center pane by moving the associated view shell to the top of the shell stack. More...
 

Private Attributes

bool mbValid
 
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
 
ViewShellBasempBase
 
bool mbNewViewCreated
 This flag indicates whether in the last configuration change cycle a new view has been created and thus the center view has to be moved to the top of the shell stack. More...
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

This module waits for new views to be created for the center pane and then moves the center view to the top most place on the shell stack.

As we are moving away from the shell stack this module may become obsolete or has to be modified.

Definition at line 51 of file CenterViewFocusModule.hxx.

Constructor & Destructor Documentation

◆ CenterViewFocusModule()

sd::framework::CenterViewFocusModule::CenterViewFocusModule ( rtl::Reference< sd::DrawController > const &  rxController)
explicit

◆ ~CenterViewFocusModule()

sd::framework::CenterViewFocusModule::~CenterViewFocusModule ( )
overridevirtual

Definition at line 75 of file CenterViewFocusModule.cxx.

Member Function Documentation

◆ disposing() [1/2]

virtual void SAL_CALL sd::framework::CenterViewFocusModule::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual

◆ disposing() [2/2]

void sd::framework::CenterViewFocusModule::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 79 of file CenterViewFocusModule.cxx.

References mbValid, mpBase, and mxConfigurationController.

◆ HandleNewView()

void sd::framework::CenterViewFocusModule::HandleNewView ( const css::uno::Reference< css::drawing::framework::XConfiguration > &  rxConfiguration)
private

At the end of an update of the current configuration this method handles a new view in the center pane by moving the associated view shell to the top of the shell stack.

Definition at line 106 of file CenterViewFocusModule.cxx.

References sd::framework::FrameworkHelper::CreateResourceId(), sd::framework::ViewShellWrapper::GetViewShell(), sd::ViewShellBase::GetViewShellManager(), mbNewViewCreated, mpBase, sd::framework::FrameworkHelper::msCenterPaneURL, sd::framework::FrameworkHelper::msViewURLPrefix, and mxConfigurationController.

Referenced by notifyConfigurationChange().

◆ notifyConfigurationChange()

void SAL_CALL sd::framework::CenterViewFocusModule::notifyConfigurationChange ( const css::drawing::framework::ConfigurationChangeEvent &  rEvent)
overridevirtual

Member Data Documentation

◆ mbNewViewCreated

bool sd::framework::CenterViewFocusModule::mbNewViewCreated
private

This flag indicates whether in the last configuration change cycle a new view has been created and thus the center view has to be moved to the top of the shell stack.

Definition at line 79 of file CenterViewFocusModule.hxx.

Referenced by HandleNewView(), and notifyConfigurationChange().

◆ mbValid

bool sd::framework::CenterViewFocusModule::mbValid
private

◆ mpBase

ViewShellBase* sd::framework::CenterViewFocusModule::mpBase
private

Definition at line 74 of file CenterViewFocusModule.hxx.

Referenced by CenterViewFocusModule(), disposing(), and HandleNewView().

◆ mxConfigurationController

css::uno::Reference<css::drawing::framework::XConfigurationController> sd::framework::CenterViewFocusModule::mxConfigurationController
private

Definition at line 73 of file CenterViewFocusModule.hxx.

Referenced by CenterViewFocusModule(), disposing(), and HandleNewView().


The documentation for this class was generated from the following files: