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

This module is responsible for showing the ViewTabBar above the view in the center pane. More...

#include <ViewTabBarModule.hxx>

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

Public Member Functions

 ViewTabBarModule (const rtl::Reference<::sd::DrawController > &rxController, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewTabBarId)
 Create a new module that controls the view tab bar above the view in the specified pane. More...
 
virtual ~ViewTabBarModule () 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 UpdateViewTabBar (const css::uno::Reference< css::drawing::framework::XTabBar > &rxTabBar)
 This is the place where the view tab bar is filled. More...
 

Private Attributes

css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
 
css::uno::Reference< css::drawing::framework::XResourceId > mxViewTabBarId
 

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 ViewTabBar above the view in the center pane.

Definition at line 40 of file ViewTabBarModule.hxx.

Constructor & Destructor Documentation

◆ ViewTabBarModule()

sd::framework::ViewTabBarModule::ViewTabBarModule ( const rtl::Reference<::sd::DrawController > &  rxController,
const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewTabBarId 
)

Create a new module that controls the view tab bar above the view in the specified pane.

Parameters
rxControllerThis is the access point to the drawing framework.
rxViewTabBarIdThis ResourceId specifies which tab bar is to be managed by the new module.

Definition at line 49 of file ViewTabBarModule.cxx.

References Any, sd::framework::FrameworkHelper::msResourceActivationEvent, sd::framework::FrameworkHelper::msResourceActivationRequestEvent, sd::framework::FrameworkHelper::msResourceDeactivationRequestEvent, mxConfigurationController, and UpdateViewTabBar().

◆ ~ViewTabBarModule()

sd::framework::ViewTabBarModule::~ViewTabBarModule ( )
overridevirtual

Definition at line 77 of file ViewTabBarModule.cxx.

Member Function Documentation

◆ disposing() [1/2]

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

◆ disposing() [2/2]

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

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 81 of file ViewTabBarModule.cxx.

References mxConfigurationController.

◆ notifyConfigurationChange()

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

◆ UpdateViewTabBar()

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

This is the place where the view tab bar is filled.

Only missing buttons are added, so it is safe to call this method multiple times.

Definition at line 136 of file ViewTabBarModule.cxx.

References sd::framework::FrameworkHelper::CreateResourceId(), sd::framework::FrameworkHelper::msImpressViewURL, sd::framework::FrameworkHelper::msNotesViewURL, sd::framework::FrameworkHelper::msOutlineViewURL, mxConfigurationController, mxViewTabBarId, and SdResId().

Referenced by notifyConfigurationChange(), and ViewTabBarModule().

Member Data Documentation

◆ mxConfigurationController

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

◆ mxViewTabBarId

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

Definition at line 73 of file ViewTabBarModule.hxx.

Referenced by notifyConfigurationChange(), and UpdateViewTabBar().


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