LibreOffice Module sdext (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 css::uno::Reference< css::frame::XController > &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 css::uno::Reference< css::frame::XController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController) | |
void | Register (const css::uno::Reference< css::frame::XController > &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 |
css::uno::WeakReference< css::frame::XController > | 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 73 of file PresenterViewFactory.hxx.
|
private |
Definition at line 120 of file PresenterViewFactory.hxx.
|
private |
Definition at line 119 of file PresenterViewFactory.hxx.
|
overridevirtual |
Definition at line 148 of file PresenterViewFactory.cxx.
|
private |
Definition at line 94 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 107 of file PresenterViewFactory.cxx.
References PresenterViewFactory().
Referenced by sdext::presenter::PresenterScreen::SetupViewFactory().
|
private |
Definition at line 463 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 407 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
overridevirtual |
Definition at line 179 of file PresenterViewFactory.cxx.
References CreateView(), GetViewFromCache(), mpPresenterController, mxConfigurationController, and ThrowIfDisposed().
|
private |
Definition at line 368 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxConfigurationController.
Referenced by CreateView().
|
private |
Definition at line 339 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 435 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, mxConfigurationController, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 397 of file PresenterViewFactory.cxx.
References mpPresenterController, mxComponentContext, and mxControllerWeak.
Referenced by CreateView().
|
private |
Definition at line 291 of file PresenterViewFactory.cxx.
References sdext::presenter::CachablePresenterView::ActivatePresenterView(), CreateHelpView(), CreateNotesView(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), CreateToolBarView(), msCurrentSlidePreviewViewURL, msHelpViewURL, msNextSlidePreviewViewURL, msNotesViewURL, msSlideSorterURL, and msToolBarViewURL.
Referenced by createResource().
|
overridevirtual |
Definition at line 152 of file PresenterViewFactory.cxx.
References mpResourceCache, and mxConfigurationController.
|
private |
Definition at line 255 of file PresenterViewFactory.cxx.
References sdext::presenter::CachablePresenterView::ActivatePresenterView(), and mpResourceCache.
Referenced by createResource().
|
private |
Definition at line 119 of file PresenterViewFactory.cxx.
References msCurrentSlidePreviewViewURL, msHelpViewURL, msNextSlidePreviewViewURL, msNotesViewURL, msSlideSorterURL, msToolBarViewURL, and mxConfigurationController.
|
overridevirtual |
|
private |
css::lang::DisposedException |
Definition at line 473 of file PresenterViewFactory.cxx.
Referenced by createResource(), and releaseResource().
|
private |
Definition at line 117 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), createResource(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), CreateToolBarView(), and releaseResource().
|
private |
Definition at line 121 of file PresenterViewFactory.hxx.
Referenced by disposing(), GetViewFromCache(), and releaseResource().
|
static |
Definition at line 79 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
static |
Definition at line 86 of file PresenterViewFactory.hxx.
Referenced by CreateView(), sdext::presenter::PresenterWindowManager::LayoutHelpMode(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
static |
Definition at line 81 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
static |
Definition at line 82 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
static |
Definition at line 85 of file PresenterViewFactory.hxx.
Referenced by CreateView(), sdext::presenter::PresenterWindowManager::LayoutSlideSorterMode(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
static |
Definition at line 83 of file PresenterViewFactory.hxx.
Referenced by CreateView(), Register(), and sdext::presenter::PresenterController::RequestViews().
|
private |
Definition at line 113 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), and CreateToolBarView().
|
private |
Definition at line 115 of file PresenterViewFactory.hxx.
Referenced by CreateNotesView(), createResource(), CreateSlidePreviewView(), CreateSlideShowView(), CreateSlideSorterView(), disposing(), Register(), and releaseResource().
|
private |
Definition at line 116 of file PresenterViewFactory.hxx.
Referenced by CreateHelpView(), CreateNotesView(), CreateSlideShowView(), CreateSlideSorterView(), and CreateToolBarView().