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

Factory for the frequently used standard views of the drawing framework: private:resource/view/ private:resource/view/ImpressView private:resource/view/GraphicView private:resource/view/OutlineView private:resource/view/NotesView private:resource/view/HandoutView private:resource/view/SlideSorter private:resource/view/PresentationView private:resource/view/TaskPane For some views in some panes this class also acts as a cache. More...

#include <BasicViewFactory.hxx>

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

Classes

class  ViewCache
 
class  ViewDescriptor
 
class  ViewShellContainer
 

Public Member Functions

 BasicViewFactory (const rtl::Reference<::sd::DrawController > &rxController)
 
virtual ~BasicViewFactory () 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 > &rxViewId) override
 
virtual void SAL_CALL releaseResource (const css::uno::Reference< css::drawing::framework::XResource > &xView) 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

std::shared_ptr< ViewDescriptorCreateView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, SfxViewFrame &rFrame, vcl::Window &rWindow, const css::uno::Reference< css::drawing::framework::XPane > &rxPane, FrameView *pFrameView, const bool bIsCenterView)
 
std::shared_ptr< ViewShellCreateViewShell (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, SfxViewFrame &rFrame, vcl::Window &rWindow, FrameView *pFrameView)
 
void ActivateCenterView (const std::shared_ptr< ViewDescriptor > &rpDescriptor)
 
void ReleaseView (const std::shared_ptr< ViewDescriptor > &rpDescriptor, bool bDoNotCache)
 
bool IsCacheable (const std::shared_ptr< ViewDescriptor > &rpDescriptor)
 
std::shared_ptr< ViewDescriptorGetViewFromCache (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::drawing::framework::XPane > &rxPane)
 

Private Attributes

css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
 
std::unique_ptr< ViewShellContainermpViewShellContainer
 
ViewShellBasempBase
 
FrameViewmpFrameView
 
ScopedVclPtr< vcl::WindowmpWindow
 
std::shared_ptr< ViewCachempViewCache
 
css::uno::Reference< css::drawing::framework::XPane > mxLocalPane
 

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

Factory for the frequently used standard views of the drawing framework: private:resource/view/ private:resource/view/ImpressView private:resource/view/GraphicView private:resource/view/OutlineView private:resource/view/NotesView private:resource/view/HandoutView private:resource/view/SlideSorter private:resource/view/PresentationView private:resource/view/TaskPane For some views in some panes this class also acts as a cache.

Definition at line 61 of file BasicViewFactory.hxx.

Constructor & Destructor Documentation

◆ BasicViewFactory()

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

◆ ~BasicViewFactory()

sd::framework::BasicViewFactory::~BasicViewFactory ( )
overridevirtual

Definition at line 119 of file BasicViewFactory.cxx.

Member Function Documentation

◆ ActivateCenterView()

void sd::framework::BasicViewFactory::ActivateCenterView ( const std::shared_ptr< ViewDescriptor > &  rpDescriptor)
private

◆ createResource()

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

◆ CreateView()

std::shared_ptr< BasicViewFactory::ViewDescriptor > sd::framework::BasicViewFactory::CreateView ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewId,
SfxViewFrame rFrame,
vcl::Window rWindow,
const css::uno::Reference< css::drawing::framework::XPane > &  rxPane,
FrameView pFrameView,
const bool  bIsCenterView 
)
private

Definition at line 253 of file BasicViewFactory.cxx.

References CreateViewShell(), sd::ViewShellBase::GetViewShellManager(), and mpBase.

Referenced by createResource().

◆ CreateViewShell()

std::shared_ptr< ViewShell > sd::framework::BasicViewFactory::CreateViewShell ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewId,
SfxViewFrame rFrame,
vcl::Window rWindow,
FrameView pFrameView 
)
private

◆ disposing()

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

◆ GetViewFromCache()

std::shared_ptr< BasicViewFactory::ViewDescriptor > sd::framework::BasicViewFactory::GetViewFromCache ( const css::uno::Reference< css::drawing::framework::XResourceId > &  rxViewId,
const css::uno::Reference< css::drawing::framework::XPane > &  rxPane 
)
private

Definition at line 439 of file BasicViewFactory.cxx.

References mpViewCache, and ReleaseView().

Referenced by createResource().

◆ IsCacheable()

bool sd::framework::BasicViewFactory::IsCacheable ( const std::shared_ptr< ViewDescriptor > &  rpDescriptor)
private

◆ releaseResource()

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

◆ ReleaseView()

void sd::framework::BasicViewFactory::ReleaseView ( const std::shared_ptr< ViewDescriptor > &  rpDescriptor,
bool  bDoNotCache 
)
private

Member Data Documentation

◆ mpBase

ViewShellBase* sd::framework::BasicViewFactory::mpBase
private

◆ mpFrameView

FrameView* sd::framework::BasicViewFactory::mpFrameView
private

Definition at line 86 of file BasicViewFactory.hxx.

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

◆ mpViewCache

std::shared_ptr<ViewCache> sd::framework::BasicViewFactory::mpViewCache
private

Definition at line 90 of file BasicViewFactory.hxx.

Referenced by disposing(), GetViewFromCache(), and ReleaseView().

◆ mpViewShellContainer

std::unique_ptr<ViewShellContainer> sd::framework::BasicViewFactory::mpViewShellContainer
private

Definition at line 84 of file BasicViewFactory.hxx.

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

◆ mpWindow

ScopedVclPtr<vcl::Window> sd::framework::BasicViewFactory::mpWindow
private

Definition at line 89 of file BasicViewFactory.hxx.

◆ mxConfigurationController

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

Definition at line 81 of file BasicViewFactory.hxx.

Referenced by BasicViewFactory(), and createResource().

◆ mxLocalPane

css::uno::Reference<css::drawing::framework::XPane> sd::framework::BasicViewFactory::mxLocalPane
private

Definition at line 92 of file BasicViewFactory.hxx.

Referenced by ReleaseView().


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