LibreOffice Module sd (master) 1
|
This module is responsible for showing the slide sorter bar and the slide sorter view in the center pane. More...
#include <SlideSorterModule.hxx>
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 |
![]() | |
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 |
![]() | |
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 > &) |
![]() | |
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::DrawController > | mxControllerManager |
Additional Inherited Members | |
![]() | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
![]() | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
![]() | |
std::mutex | m_aMutex |
bool | m_bDisposed |
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.
sd::framework::SlideSorterModule::SlideSorterModule | ( | const rtl::Reference<::sd::DrawController > & | rxController, |
const OUString & | rsLeftPaneURL | ||
) |
Definition at line 49 of file SlideSorterModule.cxx.
References AddActiveMainView(), Any, sd::framework::FrameworkHelper::msDrawViewURL, sd::framework::FrameworkHelper::msHandoutViewURL, sd::framework::FrameworkHelper::msImpressViewURL, sd::framework::FrameworkHelper::msNotesViewURL, sd::framework::FrameworkHelper::msOutlineViewURL, sd::framework::FrameworkHelper::msResourceActivationEvent, sd::framework::FrameworkHelper::msResourceActivationRequestEvent, sd::framework::FrameworkHelper::msResourceDeactivationRequestEvent, sd::framework::FrameworkHelper::msSlideSorterURL, mxConfigurationController, mxControllerManager, and UpdateViewTabBar().
|
overridevirtual |
Definition at line 102 of file SlideSorterModule.cxx.
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().
|
overridevirtual |
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 233 of file SlideSorterModule.cxx.
References mxConfigurationController.
|
private |
Definition at line 246 of file SlideSorterModule.cxx.
References maActiveMainViewContainer, msCurrentMainViewURL, mxConfigurationController, and mxResourceId.
Referenced by notifyConfigurationChange().
|
private |
Definition at line 277 of file SlideSorterModule.cxx.
References sd::framework::FrameworkHelper::CreateResourceId(), maActiveMainViewContainer, sd::framework::FrameworkHelper::msCenterPaneURL, and sd::framework::FrameworkHelper::msViewURLPrefix.
Referenced by notifyConfigurationChange().
bool sd::framework::SlideSorterModule::IsResourceActive | ( | const OUString & | rsMainViewURL | ) |
Definition at line 227 of file SlideSorterModule.cxx.
References maActiveMainViewContainer.
Referenced by SaveResourceState().
|
overridevirtual |
Definition at line 116 of file SlideSorterModule.cxx.
References sd::framework::FrameworkHelper::CreateResourceId(), HandleMainViewSwitch(), HandleResourceRequest(), sd::framework::FrameworkHelper::msCenterPaneURL, sd::framework::FrameworkHelper::msResourceActivationEvent, sd::framework::FrameworkHelper::msViewURLPrefix, mxMainViewAnchorId, mxResourceId, mxViewTabBarId, and UpdateViewTabBar().
void sd::framework::SlideSorterModule::SaveResourceState | ( | ) |
Definition at line 106 of file SlideSorterModule.cxx.
References IsResourceActive(), sd::framework::FrameworkHelper::msDrawViewURL, sd::framework::FrameworkHelper::msHandoutViewURL, sd::framework::FrameworkHelper::msImpressViewURL, sd::framework::FrameworkHelper::msNotesViewURL, sd::framework::FrameworkHelper::msOutlineViewURL, sd::framework::FrameworkHelper::msSlideSorterURL, SvtSlideSorterBarOptions::SetVisibleDrawView(), SvtSlideSorterBarOptions::SetVisibleHandoutView(), SvtSlideSorterBarOptions::SetVisibleImpressView(), SvtSlideSorterBarOptions::SetVisibleNotesView(), SvtSlideSorterBarOptions::SetVisibleOutlineView(), and SvtSlideSorterBarOptions::SetVisibleSlideSorterView().
|
private |
Definition at line 189 of file SlideSorterModule.cxx.
References sd::framework::FrameworkHelper::CreateResourceId(), sd::framework::FrameworkHelper::msCenterPaneURL, sd::framework::FrameworkHelper::msHandoutViewURL, sd::framework::FrameworkHelper::msSlideSorterURL, mxControllerManager, mxViewTabBarId, and SdResId().
Referenced by notifyConfigurationChange(), and SlideSorterModule().
|
private |
Definition at line 78 of file SlideSorterModule.hxx.
Referenced by AddActiveMainView(), HandleMainViewSwitch(), HandleResourceRequest(), and IsResourceActive().
|
private |
Definition at line 83 of file SlideSorterModule.hxx.
Referenced by HandleMainViewSwitch().
|
private |
Definition at line 77 of file SlideSorterModule.hxx.
Referenced by disposing(), HandleMainViewSwitch(), and SlideSorterModule().
|
private |
Definition at line 85 of file SlideSorterModule.hxx.
Referenced by SlideSorterModule(), and UpdateViewTabBar().
|
private |
The anchor of the main view.
Definition at line 82 of file SlideSorterModule.hxx.
Referenced by notifyConfigurationChange().
|
private |
The resource managed by this class.
Definition at line 80 of file SlideSorterModule.hxx.
Referenced by HandleMainViewSwitch(), and notifyConfigurationChange().
|
private |
Definition at line 84 of file SlideSorterModule.hxx.
Referenced by notifyConfigurationChange(), and UpdateViewTabBar().