LibreOffice Module sd (master) 1
|
Factory of the presenter screen specific views. More...
#include <PresenterViewFactory.hxx>
Public Member Functions | |
virtual | ~PresenterViewFactory () override |
virtual void SAL_CALL | disposing () 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 > &rxPane) override |
Static Public Member Functions | |
static css::uno::Reference< css::drawing::framework::XResourceFactory > | Create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference<::sd::DrawController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController) |
Create a new instance of this class and register it as resource factory in the drawing framework of the given controller. More... | |
Static Public Attributes | |
static constexpr OUStringLiteral | msCurrentSlidePreviewViewURL = u"private:resource/view/Presenter/CurrentSlidePreview" |
static constexpr OUStringLiteral | msNextSlidePreviewViewURL = u"private:resource/view/Presenter/NextSlidePreview" |
static constexpr OUStringLiteral | msNotesViewURL = u"private:resource/view/Presenter/Notes" |
static constexpr OUStringLiteral | msToolBarViewURL = u"private:resource/view/Presenter/ToolBar" |
static constexpr OUStringLiteral | msSlideSorterURL = u"private:resource/view/Presenter/SlideSorter" |
static constexpr OUStringLiteral | msHelpViewURL = u"private:resource/view/Presenter/Help" |
Private Types | |
typedef ::std::pair< css::uno::Reference< css::drawing::framework::XView >, css::uno::Reference< css::drawing::framework::XPane > > | ViewResourceDescriptor |
typedef ::std::map< OUString, ViewResourceDescriptor > | ResourceContainer |
Private Member Functions | |
PresenterViewFactory (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference<::sd::DrawController > &rxController, ::rtl::Reference< PresenterController > pPresenterController) | |
void | Register (const ::rtl::Reference<::sd::DrawController > &rxController) |
css::uno::Reference< css::drawing::framework::XView > | CreateSlideShowView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) const |
css::uno::Reference< css::drawing::framework::XView > | CreateSlidePreviewView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::drawing::framework::XPane > &rxPane) const |
css::uno::Reference< css::drawing::framework::XView > | CreateToolBarView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) const |
css::uno::Reference< css::drawing::framework::XView > | CreateNotesView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) const |
css::uno::Reference< css::drawing::framework::XView > | CreateSlideSorterView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) const |
css::uno::Reference< css::drawing::framework::XView > | CreateHelpView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) const |
css::uno::Reference< css::drawing::framework::XResource > | GetViewFromCache (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::drawing::framework::XPane > &rxAnchorPane) const |
css::uno::Reference< css::drawing::framework::XResource > | CreateView (const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::drawing::framework::XPane > &rxAnchorPane) |
void | ThrowIfDisposed () const |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxComponentContext |
css::uno::Reference< css::drawing::framework::XConfigurationController > | mxConfigurationController |
unotools::WeakReference<::sd::DrawController > | mxControllerWeak |
::rtl::Reference< PresenterController > | mpPresenterController |
std::unique_ptr< ResourceContainer > | mpResourceCache |
Additional Inherited Members | |
![]() | |
mutable::osl::Mutex | m_aMutex |
Factory of the presenter screen specific views.
The supported set of views includes: a life view of the current slide, a static preview of the next slide, the notes of the current slide, a tool bar
Definition at line 76 of file PresenterViewFactory.hxx.
|
private |
Definition at line 123 of file PresenterViewFactory.hxx.
|
private |
Definition at line 122 of file PresenterViewFactory.hxx.
|
overridevirtual |
Definition at line 145 of file PresenterViewFactory.cxx.
|
private |
Definition at line 95 of file PresenterViewFactory.cxx.
References m_aMutex.
Referenced by Create().
|
static |
Create a new instance of this class and register it as resource factory in the drawing framework of the given controller.
This registration keeps it alive. When the drawing framework is shut down and releases its reference to the factory then the factory is destroyed.
Definition at line 106 of file PresenterViewFactory.cxx.
References PresenterViewFactory().
Referenced by sdext::presenter::PresenterScreen::SetupViewFactory().
|
private |
Definition at line 460 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 404 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
overridevirtual |
Definition at line 176 of file PresenterViewFactory.cxx.
References CreateView(), GetViewFromCache(), mpPresenterController, mxConfigurationController, and ThrowIfDisposed().
|
private |
Definition at line 365 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxConfigurationController.
Referenced by CreateView().
|
private |
Definition at line 336 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 432 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 394 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 288 of file PresenterViewFactory.cxx.
References CreateHelpView(), CreateNotesView(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), CreateToolBarView(), msCurrentSlidePreviewViewURL, msHelpViewURL, msNextSlidePreviewViewURL, msNotesViewURL, msSlideSorterURL, and msToolBarViewURL.
Referenced by createResource().
|
overridevirtual |
Definition at line 149 of file PresenterViewFactory.cxx.
References mpResourceCache, and mxConfigurationController.
|
private |
Definition at line 252 of file PresenterViewFactory.cxx.
References mpResourceCache.
Referenced by createResource().
|
private |
Definition at line 117 of file PresenterViewFactory.cxx.
References msCurrentSlidePreviewViewURL, msHelpViewURL, msNextSlidePreviewViewURL, msNotesViewURL, msSlideSorterURL, msToolBarViewURL, and mxConfigurationController.
|
overridevirtual |
Definition at line 202 of file PresenterViewFactory.cxx.
References mpPresenterController, mpResourceCache, mxConfigurationController, and ThrowIfDisposed().
|
private |
css::lang::DisposedException |
Definition at line 470 of file PresenterViewFactory.cxx.
Referenced by createResource(), and releaseResource().
|
private |
Definition at line 120 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), createResource(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), CreateToolBarView(), and releaseResource().
|
private |
Definition at line 124 of file PresenterViewFactory.hxx.
Referenced by disposing(), GetViewFromCache(), and releaseResource().
|
staticconstexpr |
Definition at line 81 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
staticconstexpr |
Definition at line 89 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
staticconstexpr |
Definition at line 83 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
staticconstexpr |
Definition at line 85 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
staticconstexpr |
Definition at line 87 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
staticconstexpr |
Definition at line 86 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
private |
Definition at line 116 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), and CreateToolBarView().
|
private |
Definition at line 118 of file PresenterViewFactory.hxx.
Referenced by CreateNotesView(), createResource(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), disposing(), Register(), and releaseResource().
|
private |
Definition at line 119 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), CreateSlideShowView(), CreateSlideSorterView(), and CreateToolBarView().