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

This factory provides the frequently used standard panes private:resource/pane/CenterPane private:resource/pane/FullScreenPane private:resource/pane/LeftImpressPane private:resource/pane/LeftDrawPane There are two left panes because this is (seems to be) the only way to show different titles for the left pane in Draw and Impress. More...

#include <BasicPaneFactory.hxx>

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

Classes

class  PaneContainer
 
class  PaneDescriptor
 Store URL, XPane reference and (local) PaneId for every pane factory that is registered at the PaneController. More...
 

Public Member Functions

 BasicPaneFactory (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference<::sd::DrawController > &rxController)
 
virtual ~BasicPaneFactory () override
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) override
 
virtual void SAL_CALL releaseResource (const css::uno::Reference< css::drawing::framework::XResource > &rxPane) override
 
virtual void SAL_CALL notifyConfigurationChange (const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEventObject) 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

css::uno::Reference< css::drawing::framework::XResource > CreateFrameWindowPane (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
 Create a new instance of FrameWindowPane. More...
 
css::uno::Reference< css::drawing::framework::XResource > CreateFullScreenPane (const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
 Create a new pane that represents the center pane in full screen mode. More...
 
css::uno::Reference< css::drawing::framework::XResource > CreateChildWindowPane (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const PaneDescriptor &rDescriptor)
 Create a new instance of ChildWindowPane. More...
 
void ThrowIfDisposed () const
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxComponentContext
 
css::uno::WeakReference< css::drawing::framework::XConfigurationController > mxConfigurationControllerWeak
 
ViewShellBasempViewShellBase
 
std::unique_ptr< PaneContainermpPaneContainer
 

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 factory provides the frequently used standard panes private:resource/pane/CenterPane private:resource/pane/FullScreenPane private:resource/pane/LeftImpressPane private:resource/pane/LeftDrawPane There are two left panes because this is (seems to be) the only way to show different titles for the left pane in Draw and Impress.

Definition at line 54 of file BasicPaneFactory.hxx.

Constructor & Destructor Documentation

◆ BasicPaneFactory()

sd::framework::BasicPaneFactory::BasicPaneFactory ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const rtl::Reference<::sd::DrawController > &  rxController 
)
explicit

◆ ~BasicPaneFactory()

sd::framework::BasicPaneFactory::~BasicPaneFactory ( )
overridevirtual

Definition at line 149 of file BasicPaneFactory.cxx.

Member Function Documentation

◆ CreateChildWindowPane()

Reference< XResource > sd::framework::BasicPaneFactory::CreateChildWindowPane ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxPaneId,
const PaneDescriptor rDescriptor 
)
private

Create a new instance of ChildWindowPane.

Parameters
rPaneIdThe ResourceURL member defines which side pane to create.

Definition at line 353 of file BasicPaneFactory.cxx.

References sd::framework::BasicPaneFactory::PaneDescriptor::mePaneId, and mpViewShellBase.

Referenced by createResource().

◆ CreateFrameWindowPane()

Reference< XResource > sd::framework::BasicPaneFactory::CreateFrameWindowPane ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxPaneId)
private

Create a new instance of FrameWindowPane.

Parameters
rPaneIdThere is only one frame window so this id is just checked to have the correct value.

Definition at line 327 of file BasicPaneFactory.cxx.

References sd::ViewShellBase::GetViewWindow(), and mpViewShellBase.

Referenced by createResource().

◆ CreateFullScreenPane()

Reference< XResource > sd::framework::BasicPaneFactory::CreateFullScreenPane ( const css::uno::Reference< css::uno::XComponentContext > &  rxComponentContext,
const css::uno::Reference< css::drawing::framework::XResourceId > &  rxPaneId 
)
private

Create a new pane that represents the center pane in full screen mode.

Definition at line 340 of file BasicPaneFactory.cxx.

References sd::ViewShellBase::GetViewWindow(), and mpViewShellBase.

Referenced by createResource().

◆ createResource()

Reference< XResource > SAL_CALL sd::framework::BasicPaneFactory::createResource ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxPaneId)
overridevirtual

◆ disposing() [1/2]

virtual void SAL_CALL sd::framework::BasicPaneFactory::disposing ( const css::lang::EventObject &  rEventObject)
overridevirtual

◆ disposing() [2/2]

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

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 153 of file BasicPaneFactory.cxx.

References mpPaneContainer, and mxConfigurationControllerWeak.

◆ notifyConfigurationChange()

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

Definition at line 295 of file BasicPaneFactory.cxx.

◆ releaseResource()

void SAL_CALL sd::framework::BasicPaneFactory::releaseResource ( const css::uno::Reference< css::drawing::framework::XResource > &  rxPane)
overridevirtual

◆ ThrowIfDisposed()

void sd::framework::BasicPaneFactory::ThrowIfDisposed ( ) const
private
Exceptions
css::lang::DisposedException

Definition at line 395 of file BasicPaneFactory.cxx.

References comphelper::UnoImplBase::m_bDisposed.

Referenced by createResource(), and releaseResource().

Member Data Documentation

◆ mpPaneContainer

std::unique_ptr<PaneContainer> sd::framework::BasicPaneFactory::mpPaneContainer
private

Definition at line 92 of file BasicPaneFactory.hxx.

Referenced by BasicPaneFactory(), createResource(), disposing(), and releaseResource().

◆ mpViewShellBase

ViewShellBase* sd::framework::BasicPaneFactory::mpViewShellBase
private

◆ mxComponentContext

css::uno::Reference<css::uno::XComponentContext> sd::framework::BasicPaneFactory::mxComponentContext
private

Definition at line 86 of file BasicPaneFactory.hxx.

Referenced by createResource().

◆ mxConfigurationControllerWeak

css::uno::WeakReference<css::drawing::framework::XConfigurationController> sd::framework::BasicPaneFactory::mxConfigurationControllerWeak
private

Definition at line 88 of file BasicPaneFactory.hxx.

Referenced by BasicPaneFactory(), and disposing().


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