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

This module is responsible for showing the slide sorter bar and the slide sorter view in the center pane. More...

#include <SlideSorterModule.hxx>

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

Public Member Functions

 SlideSorterModule (const rtl::Reference<::sd::DrawController > &rxController, const OUString &rsLeftPaneURL)
 
virtual ~SlideSorterModule () override
 
void AddActiveMainView (const OUString &rsMainViewURL)
 Remember the given URL as one of a center pane view for which to activate the resource managed by the called object. More...
 
bool IsResourceActive (const OUString &rsMainViewURL)
 
void SaveResourceState ()
 
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 HandleMainViewSwitch (const OUString &rsViewURL, const bool bIsActivated)
 
void HandleResourceRequest (bool bActivation, const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration)
 
void UpdateViewTabBar (const css::uno::Reference< css::drawing::framework::XTabBar > &rxViewTabBar)
 

Private Attributes

css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
 
::std::set< OUString > maActiveMainViewContainer
 
css::uno::Reference< css::drawing::framework::XResourceId > mxResourceId
 The resource managed by this class. More...
 
css::uno::Reference< css::drawing::framework::XResourceId > mxMainViewAnchorId
 The anchor of the main view. More...
 
OUString msCurrentMainViewURL
 
css::uno::Reference< css::drawing::framework::XResourceId > mxViewTabBarId
 
rtl::Reference<::sd::DrawControllermxControllerManager
 

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 is responsible for showing the slide sorter bar and the slide sorter view in the center pane.

Manage the activation state of one resource depending on the view in the center pane. The ResourceManager remembers in which configuration to activate and in which to deactivate the resource. When the resource is deactivated or activated manually by the user then the ResourceManager detects this and remembers it for the future.

Definition at line 49 of file SlideSorterModule.hxx.

Constructor & Destructor Documentation

◆ SlideSorterModule()

sd::framework::SlideSorterModule::SlideSorterModule ( const rtl::Reference<::sd::DrawController > &  rxController,
const OUString &  rsLeftPaneURL 
)

◆ ~SlideSorterModule()

sd::framework::SlideSorterModule::~SlideSorterModule ( )
overridevirtual

Definition at line 102 of file SlideSorterModule.cxx.

Member Function Documentation

◆ AddActiveMainView()

void sd::framework::SlideSorterModule::AddActiveMainView ( const OUString &  rsMainViewURL)

Remember the given URL as one of a center pane view for which to activate the resource managed by the called object.

Definition at line 221 of file SlideSorterModule.cxx.

References maActiveMainViewContainer.

Referenced by SlideSorterModule().

◆ disposing() [1/2]

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

◆ disposing() [2/2]

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

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 233 of file SlideSorterModule.cxx.

References mxConfigurationController.

◆ HandleMainViewSwitch()

void sd::framework::SlideSorterModule::HandleMainViewSwitch ( const OUString &  rsViewURL,
const bool  bIsActivated 
)
private

◆ HandleResourceRequest()

void sd::framework::SlideSorterModule::HandleResourceRequest ( bool  bActivation,
const css::uno::Reference< css::drawing::framework::XConfiguration > &  rxConfiguration 
)
private

◆ IsResourceActive()

bool sd::framework::SlideSorterModule::IsResourceActive ( const OUString &  rsMainViewURL)

Definition at line 227 of file SlideSorterModule.cxx.

References maActiveMainViewContainer.

Referenced by SaveResourceState().

◆ notifyConfigurationChange()

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

◆ SaveResourceState()

void sd::framework::SlideSorterModule::SaveResourceState ( )

◆ UpdateViewTabBar()

void sd::framework::SlideSorterModule::UpdateViewTabBar ( const css::uno::Reference< css::drawing::framework::XTabBar > &  rxViewTabBar)
private

Member Data Documentation

◆ maActiveMainViewContainer

::std::set<OUString> sd::framework::SlideSorterModule::maActiveMainViewContainer
private

◆ msCurrentMainViewURL

OUString sd::framework::SlideSorterModule::msCurrentMainViewURL
private

Definition at line 83 of file SlideSorterModule.hxx.

Referenced by HandleMainViewSwitch().

◆ mxConfigurationController

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

Definition at line 77 of file SlideSorterModule.hxx.

Referenced by disposing(), HandleMainViewSwitch(), and SlideSorterModule().

◆ mxControllerManager

rtl::Reference<::sd::DrawController> sd::framework::SlideSorterModule::mxControllerManager
private

Definition at line 85 of file SlideSorterModule.hxx.

Referenced by SlideSorterModule(), and UpdateViewTabBar().

◆ mxMainViewAnchorId

css::uno::Reference<css::drawing::framework::XResourceId> sd::framework::SlideSorterModule::mxMainViewAnchorId
private

The anchor of the main view.

Definition at line 82 of file SlideSorterModule.hxx.

Referenced by notifyConfigurationChange().

◆ mxResourceId

css::uno::Reference<css::drawing::framework::XResourceId> sd::framework::SlideSorterModule::mxResourceId
private

The resource managed by this class.

Definition at line 80 of file SlideSorterModule.hxx.

Referenced by HandleMainViewSwitch(), and notifyConfigurationChange().

◆ mxViewTabBarId

css::uno::Reference<css::drawing::framework::XResourceId> sd::framework::SlideSorterModule::mxViewTabBarId
private

Definition at line 84 of file SlideSorterModule.hxx.

Referenced by notifyConfigurationChange(), and UpdateViewTabBar().


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