LibreOffice Module sd (master) 1
|
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>
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< ViewDescriptor > | 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) |
std::shared_ptr< ViewShell > | CreateViewShell (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< ViewDescriptor > | GetViewFromCache (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< ViewShellContainer > | mpViewShellContainer |
ViewShellBase * | mpBase |
FrameView * | mpFrameView |
ScopedVclPtr< vcl::Window > | mpWindow |
std::shared_ptr< ViewCache > | mpViewCache |
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 |
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.
sd::framework::BasicViewFactory::BasicViewFactory | ( | const rtl::Reference<::sd::DrawController > & | rxController | ) |
Definition at line 85 of file BasicViewFactory.cxx.
References Create(), get(), make_shared(), mpBase, mpWindow, sd::framework::FrameworkHelper::msDrawViewURL, sd::framework::FrameworkHelper::msHandoutViewURL, sd::framework::FrameworkHelper::msImpressViewURL, sd::framework::FrameworkHelper::msNotesViewURL, sd::framework::FrameworkHelper::msOutlineViewURL, sd::framework::FrameworkHelper::msPresentationViewURL, sd::framework::FrameworkHelper::msSlideSorterURL, mxConfigurationController, Reference, and WB_STDWORK.
|
overridevirtual |
Definition at line 119 of file BasicViewFactory.cxx.
|
private |
Definition at line 476 of file BasicViewFactory.cxx.
References sd::DrawDocShell::Connect(), sd::ViewShellBase::GetDocShell(), sd::ViewShellBase::GetDrawController(), SfxViewShell::GetViewFrame(), SfxObjectShell::IsInPlaceActive(), mpBase, SfxViewFrame::Resize(), and sd::DrawController::SetSubController().
Referenced by createResource().
|
overridevirtual |
Definition at line 150 of file BasicViewFactory.cxx.
References ActivateCenterView(), CreateView(), SfxViewShell::GetViewFrame(), GetViewFromCache(), VCLUnoHelper::GetWindow(), mpBase, mpFrameView, mpViewShellContainer, sd::framework::FrameworkHelper::msCenterPaneURL, mxConfigurationController, and vcl::Window::Resize().
|
private |
Definition at line 253 of file BasicViewFactory.cxx.
References CreateViewShell(), sd::ViewShellBase::GetViewShellManager(), and mpBase.
Referenced by createResource().
|
private |
Definition at line 297 of file BasicViewFactory.cxx.
References sd::slidesorter::SlideSorterViewShell::Create(), Handout, mpBase, sd::framework::FrameworkHelper::msDrawViewURL, sd::framework::FrameworkHelper::msHandoutViewURL, sd::framework::FrameworkHelper::msImpressViewURL, sd::framework::FrameworkHelper::msNotesViewURL, sd::framework::FrameworkHelper::msOutlineViewURL, sd::framework::FrameworkHelper::msPresentationViewURL, sd::framework::FrameworkHelper::msSlideSorterURL, Notes, and Standard.
Referenced by CreateView().
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 123 of file BasicViewFactory.cxx.
References sd::FrameView::Disconnect(), mpFrameView, mpViewCache, mpViewShellContainer, and ReleaseView().
|
private |
Definition at line 439 of file BasicViewFactory.cxx.
References mpViewCache, and ReleaseView().
Referenced by createResource().
|
private |
Definition at line 412 of file BasicViewFactory.cxx.
References sd::framework::FrameworkHelper::CreateResourceId(), sd::framework::FrameworkHelper::Instance(), mpBase, sd::framework::FrameworkHelper::msLeftDrawPaneURL, sd::framework::FrameworkHelper::msLeftImpressPaneURL, and sd::framework::FrameworkHelper::msSlideSorterURL.
Referenced by ReleaseView().
|
overridevirtual |
Definition at line 203 of file BasicViewFactory.cxx.
References sd::FrameView::Connect(), SfxViewShell::DisconnectAllClients(), sd::ViewShellBase::GetDrawController(), SfxShell::GetViewShell(), mpBase, mpFrameView, mpViewShellContainer, sd::framework::FrameworkHelper::msCenterPaneURL, ReleaseView(), and sd::DrawController::SetSubController().
|
private |
Definition at line 374 of file BasicViewFactory.cxx.
References sd::DrawDocShell::Disconnect(), sd::ViewShellBase::GetDocShell(), sd::ViewShellBase::GetViewShellManager(), IsCacheable(), mpBase, mpViewCache, and mxLocalPane.
Referenced by disposing(), GetViewFromCache(), and releaseResource().
|
private |
Definition at line 85 of file BasicViewFactory.hxx.
Referenced by ActivateCenterView(), BasicViewFactory(), createResource(), CreateView(), CreateViewShell(), IsCacheable(), releaseResource(), and ReleaseView().
|
private |
Definition at line 86 of file BasicViewFactory.hxx.
Referenced by createResource(), disposing(), and releaseResource().
|
private |
Definition at line 90 of file BasicViewFactory.hxx.
Referenced by disposing(), GetViewFromCache(), and ReleaseView().
|
private |
Definition at line 84 of file BasicViewFactory.hxx.
Referenced by createResource(), disposing(), and releaseResource().
|
private |
Definition at line 89 of file BasicViewFactory.hxx.
|
private |
Definition at line 81 of file BasicViewFactory.hxx.
Referenced by BasicViewFactory(), and createResource().
|
private |
Definition at line 92 of file BasicViewFactory.hxx.
Referenced by ReleaseView().