LibreOffice Module sdext (master)
1
|
Life view in a secondary window of a full screen slide show. More...
#include <PresenterSlideShowView.hxx>
Public Member Functions | |
PresenterSlideShowView (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::frame::XController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController) | |
virtual | ~PresenterSlideShowView () override |
PresenterSlideShowView (const PresenterSlideShowView &)=delete | |
PresenterSlideShowView & | operator= (const PresenterSlideShowView &)=delete |
void | LateInit () |
virtual void SAL_CALL | disposing () override |
virtual void | ReleaseView () override |
Called before the view is disposed. More... | |
virtual css::uno::Reference< css::rendering::XSpriteCanvas > SAL_CALL | getCanvas () override |
virtual void SAL_CALL | clear () override |
virtual css::geometry::AffineMatrix2D SAL_CALL | getTransformation () override |
virtual css::geometry::IntegerSize2D SAL_CALL | getTranslationOffset () override |
virtual void SAL_CALL | addTransformationChangedListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
virtual void SAL_CALL | removeTransformationChangedListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
virtual void SAL_CALL | addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override |
virtual void SAL_CALL | removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override |
virtual void SAL_CALL | addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override |
virtual void SAL_CALL | removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override |
virtual void SAL_CALL | addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override |
virtual void SAL_CALL | removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override |
virtual void SAL_CALL | setMouseCursor (::sal_Int16 nPointerShape) override |
virtual css::awt::Rectangle SAL_CALL | getCanvasArea () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowPaint (const css::awt::PaintEvent &rEvent) override |
virtual void SAL_CALL | mousePressed (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseReleased (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseEntered (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseExited (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseDragged (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseMoved (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | windowResized (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &rEvent) override |
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL | getResourceId () override |
virtual sal_Bool SAL_CALL | isAnchorOnly () override |
virtual void SAL_CALL | setCurrentPage (const css::uno::Reference< css::drawing::XDrawPage > &rxSlide) override |
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL | getCurrentPage () override |
virtual void | ActivatePresenterView () override |
virtual void | DeactivatePresenterView () override |
Called when the view is put into a cache. More... | |
Private Member Functions | |
css::uno::Reference< css::awt::XWindow > | CreateViewWindow (const css::uno::Reference< css::awt::XWindow > &rxParentWindow) const |
Create the window into which the slide show will render its content. More... | |
css::uno::Reference< css::rendering::XCanvas > | CreateViewCanvas (const css::uno::Reference< css::awt::XWindow > &rxWindow) const |
void | Resize () |
void | PaintOuterWindow (const css::awt::Rectangle &rRepaintBox) |
void | PaintInnerWindow (const css::awt::PaintEvent &rEvent) |
void | PaintEndSlide (const css::awt::Rectangle &rRepaintBox) |
void | CreateBackgroundPolygons () |
void | ThrowIfDisposed () |
void | impl_addAndConfigureView () |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxComponentContext |
::rtl::Reference< PresenterController > | mpPresenterController |
css::uno::Reference< css::drawing::framework::XResourceId > | mxViewId |
css::uno::Reference< css::frame::XController > | mxController |
css::uno::Reference< css::presentation::XSlideShowController > | mxSlideShowController |
css::uno::Reference< css::presentation::XSlideShow > | mxSlideShow |
css::uno::Reference< css::rendering::XCanvas > | mxCanvas |
css::uno::Reference< css::rendering::XCanvas > | mxViewCanvas |
css::uno::Reference< css::awt::XPointer > | mxPointer |
css::uno::Reference< css::awt::XWindow > | mxWindow |
css::uno::Reference< css::awt::XWindow > | mxViewWindow |
css::uno::Reference< css::drawing::framework::XPane > | mxTopPane |
css::uno::Reference< css::drawing::XPresenterHelper > | mxPresenterHelper |
css::uno::Reference< css::rendering::XPolyPolygon2D > | mxBackgroundPolygon1 |
css::uno::Reference< css::rendering::XPolyPolygon2D > | mxBackgroundPolygon2 |
bool | mbIsViewAdded |
double | mnPageAspectRatio |
Aspect ratio of the current slide. More... | |
::cppu::OBroadcastHelper | maBroadcaster |
This broadcast helper is used to notify listeners registered to a SlideShowView object. More... | |
SharedBitmapDescriptor | mpBackground |
bool | mbIsForcedPaintPending |
bool | mbIsPaintPending |
OUString | msClickToExitPresentationText |
OUString | msClickToExitPresentationTitle |
OUString | msTitleTemplate |
bool | mbIsEndSlideVisible |
css::uno::Reference< css::drawing::XDrawPage > | mxCurrentSlide |
Additional Inherited Members | |
![]() | |
CachablePresenterView () | |
~CachablePresenterView () | |
![]() | |
mutable::osl::Mutex | m_aMutex |
![]() | |
bool | mbIsPresenterViewActive |
Life view in a secondary window of a full screen slide show.
Definition at line 55 of file PresenterSlideShowView.hxx.
sdext::presenter::PresenterSlideShowView::PresenterSlideShowView | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const css::uno::Reference< css::drawing::framework::XResourceId > & | rxViewId, | ||
const css::uno::Reference< css::frame::XController > & | rxController, | ||
const ::rtl::Reference< PresenterController > & | rpPresenterController | ||
) |
Definition at line 49 of file PresenterSlideShowView.cxx.
References m_aMutex, mnPageAspectRatio, mpBackground, mpPresenterController, and mxViewId.
|
overridevirtual |
Definition at line 171 of file PresenterSlideShowView.cxx.
|
delete |
|
overridevirtual |
Reimplemented from sdext::presenter::CachablePresenterView.
Definition at line 629 of file PresenterSlideShowView.cxx.
References impl_addAndConfigureView(), mbIsViewAdded, and mxSlideShow.
|
overridevirtual |
Definition at line 411 of file PresenterSlideShowView.cxx.
References cppu::OBroadcastHelperVar< class, class >::addListener(), maBroadcaster, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 429 of file PresenterSlideShowView.cxx.
References cppu::OBroadcastHelperVar< class, class >::addListener(), maBroadcaster, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 393 of file PresenterSlideShowView.cxx.
References cppu::OBroadcastHelperVar< class, class >::addListener(), maBroadcaster, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 375 of file PresenterSlideShowView.cxx.
References cppu::OBroadcastHelperVar< class, class >::addListener(), maBroadcaster, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 316 of file PresenterSlideShowView.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), mbIsForcedPaintPending, mbIsPaintPending, mxViewCanvas, mxViewWindow, and ThrowIfDisposed().
|
private |
Definition at line 895 of file PresenterSlideShowView.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), mxBackgroundPolygon1, mxBackgroundPolygon2, mxCanvas, mxViewWindow, and mxWindow.
Referenced by Resize().
|
private |
Definition at line 827 of file PresenterSlideShowView.cxx.
References mxPresenterHelper, and mxTopPane.
Referenced by LateInit().
|
private |
Create the window into which the slide show will render its content.
This window has the correct aspect ratio and is displayed centered and as large as possible in its parent window.
Definition at line 793 of file PresenterSlideShowView.cxx.
References mxComponentContext, and xFactory.
Referenced by LateInit().
|
overridevirtual |
Called when the view is put into a cache.
The view must not paint itself while being deactivated.
Reimplemented from sdext::presenter::CachablePresenterView.
Definition at line 638 of file PresenterSlideShowView.cxx.
References mbIsViewAdded, and mxSlideShow.
|
overridevirtual |
Definition at line 175 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OInterfaceContainerHelper::disposeAndClear(), cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, mpBackground, mpPresenterController, msClickToExitPresentationText, msClickToExitPresentationTitle, msTitleTemplate, mxBackgroundPolygon1, mxBackgroundPolygon2, mxCanvas, mxComponentContext, mxController, mxCurrentSlide, mxPointer, mxSlideShow, mxSlideShowController, mxViewCanvas, mxViewId, mxViewWindow, and mxWindow.
|
overridevirtual |
|
overridevirtual |
Definition at line 309 of file PresenterSlideShowView.cxx.
References mxViewCanvas, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 467 of file PresenterSlideShowView.cxx.
References mxPresenterHelper, mxTopPane, and mxViewWindow.
|
overridevirtual |
Definition at line 291 of file PresenterSlideShowView.cxx.
References mxCurrentSlide.
|
overridevirtual |
Definition at line 617 of file PresenterSlideShowView.cxx.
References mxViewId.
|
overridevirtual |
Definition at line 343 of file PresenterSlideShowView.cxx.
References mxViewWindow, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 369 of file PresenterSlideShowView.cxx.
References ThrowIfDisposed().
|
private |
Definition at line 952 of file PresenterSlideShowView.cxx.
References mxSlideShow.
Referenced by ActivatePresenterView(), LateInit(), and PaintInnerWindow().
|
overridevirtual |
Definition at line 622 of file PresenterSlideShowView.cxx.
void sdext::presenter::PresenterSlideShowView::LateInit | ( | ) |
Definition at line 89 of file PresenterSlideShowView.cxx.
References CreateViewCanvas(), CreateViewWindow(), sdext::presenter::PresenterConfigurationAccess::GetConfigurationNode(), impl_addAndConfigureView(), mbIsViewAdded, msClickToExitPresentationText, msClickToExitPresentationTitle, sdext::presenter::PresenterConfigurationAccess::msPresenterScreenRootName, mxCanvas, mxComponentContext, mxController, mxPresenterHelper, mxSlideShow, mxSlideShowController, mxTopPane, mxViewCanvas, mxViewId, mxViewWindow, mxWindow, sdext::presenter::PresenterConfigurationAccess::READ_ONLY, Resize(), and xFactory.
|
overridevirtual |
Definition at line 568 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, and cppu::OInterfaceContainerHelper::notifyEach().
|
overridevirtual |
Definition at line 542 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, and cppu::OInterfaceContainerHelper::notifyEach().
|
overridevirtual |
Definition at line 554 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, and cppu::OInterfaceContainerHelper::notifyEach().
|
overridevirtual |
Definition at line 580 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, and cppu::OInterfaceContainerHelper::notifyEach().
|
overridevirtual |
Definition at line 511 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, mbIsEndSlideVisible, mpPresenterController, and cppu::OInterfaceContainerHelper::notifyEach().
|
overridevirtual |
Definition at line 530 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, and cppu::OInterfaceContainerHelper::notifyEach().
|
delete |
|
private |
this is responsible of the " presentation exit " text inside the slide windows
Definition at line 708 of file PresenterSlideShowView.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), mpPresenterController, msClickToExitPresentationText, mxCanvas, mxViewId, mxViewWindow, and sdext::presenter::PresenterCanvasHelper::SetDeviceColor().
Referenced by windowPaint().
|
private |
The slide show relies on the back buffer of the canvas not being modified. With a shared canvas there are times when that can not be guaranteed.
Definition at line 764 of file PresenterSlideShowView.cxx.
References aEvent, cppu::OBroadcastHelperVar< class, class >::getContainer(), impl_addAndConfigureView(), maBroadcaster, mbIsForcedPaintPending, mbIsViewAdded, mxCanvas, mxSlideShow, and cppu::OInterfaceContainerHelper::notifyEach().
Referenced by windowPaint().
|
private |
Definition at line 648 of file PresenterSlideShowView.cxx.
References sdext::presenter::PresenterGeometryHelper::CreatePolygon(), mpBackground, mxBackgroundPolygon1, mxBackgroundPolygon2, mxCanvas, and sdext::presenter::PresenterCanvasHelper::SetDeviceColor().
Referenced by windowPaint().
|
overridevirtual |
Called before the view is disposed.
This gives the view the opportunity to trigger actions that may lead to (synchronous) callbacks that do not result in DisposedExceptions.
Reimplemented from sdext::presenter::CachablePresenterView.
Definition at line 298 of file PresenterSlideShowView.cxx.
References mbIsViewAdded, and mxSlideShow.
|
overridevirtual |
Definition at line 420 of file PresenterSlideShowView.cxx.
References maBroadcaster, cppu::OBroadcastHelperVar< class, class >::removeListener(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 438 of file PresenterSlideShowView.cxx.
References maBroadcaster, cppu::OBroadcastHelperVar< class, class >::removeListener(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 402 of file PresenterSlideShowView.cxx.
References maBroadcaster, cppu::OBroadcastHelperVar< class, class >::removeListener(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 384 of file PresenterSlideShowView.cxx.
References maBroadcaster, cppu::OBroadcastHelperVar< class, class >::removeListener(), and ThrowIfDisposed().
|
private |
Definition at line 839 of file PresenterSlideShowView.cxx.
References aEvent, CreateBackgroundPolygons(), cppu::OBroadcastHelperVar< class, class >::getContainer(), maBroadcaster, mbIsForcedPaintPending, mbIsPaintPending, mnPageAspectRatio, mxViewWindow, mxWindow, and cppu::OInterfaceContainerHelper::notifyEach().
Referenced by LateInit(), windowResized(), and windowShown().
|
overridevirtual |
Definition at line 249 of file PresenterSlideShowView.cxx.
References mbIsEndSlideVisible, mpPresenterController, msClickToExitPresentationTitle, msTitleTemplate, mxCurrentSlide, mxSlideShowController, mxViewId, and mxViewWindow.
|
overridevirtual |
Definition at line 447 of file PresenterSlideShowView.cxx.
References mxComponentContext, mxPointer, mxViewWindow, and ThrowIfDisposed().
|
private |
css::lang::DisposedException | when the object has already been disposed. |
Definition at line 942 of file PresenterSlideShowView.cxx.
Referenced by addMouseListener(), addMouseMotionListener(), addPaintListener(), addTransformationChangedListener(), clear(), getCanvas(), getTransformation(), getTranslationOffset(), removeMouseListener(), removeMouseMotionListener(), removePaintListener(), removeTransformationChangedListener(), setMouseCursor(), and windowResized().
|
overridevirtual |
Definition at line 613 of file PresenterSlideShowView.cxx.
|
overridevirtual |
Definition at line 602 of file PresenterSlideShowView.cxx.
References mbIsForcedPaintPending, and mbIsPaintPending.
|
overridevirtual |
Definition at line 491 of file PresenterSlideShowView.cxx.
References mbIsEndSlideVisible, sdext::presenter::CachablePresenterView::mbIsPresenterViewActive, mxViewWindow, mxWindow, PaintEndSlide(), PaintInnerWindow(), and PaintOuterWindow().
|
overridevirtual |
Definition at line 594 of file PresenterSlideShowView.cxx.
References Resize(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 608 of file PresenterSlideShowView.cxx.
References Resize().
|
private |
This broadcast helper is used to notify listeners registered to a SlideShowView object.
Definition at line 200 of file PresenterSlideShowView.hxx.
Referenced by addMouseListener(), addMouseMotionListener(), addPaintListener(), addTransformationChangedListener(), disposing(), mouseDragged(), mouseEntered(), mouseExited(), mouseMoved(), mousePressed(), mouseReleased(), PaintInnerWindow(), removeMouseListener(), removeMouseMotionListener(), removePaintListener(), removeTransformationChangedListener(), and Resize().
|
private |
Definition at line 209 of file PresenterSlideShowView.hxx.
Referenced by mousePressed(), setCurrentPage(), and windowPaint().
|
private |
Definition at line 204 of file PresenterSlideShowView.hxx.
Referenced by clear(), PaintInnerWindow(), Resize(), and windowMoved().
|
private |
Definition at line 205 of file PresenterSlideShowView.hxx.
Referenced by clear(), Resize(), and windowMoved().
|
private |
Definition at line 191 of file PresenterSlideShowView.hxx.
Referenced by ActivatePresenterView(), DeactivatePresenterView(), LateInit(), PaintInnerWindow(), and ReleaseView().
|
private |
Aspect ratio of the current slide.
Definition at line 195 of file PresenterSlideShowView.hxx.
Referenced by PresenterSlideShowView(), and Resize().
|
private |
Definition at line 202 of file PresenterSlideShowView.hxx.
Referenced by disposing(), PaintOuterWindow(), and PresenterSlideShowView().
|
private |
Definition at line 177 of file PresenterSlideShowView.hxx.
Referenced by disposing(), mousePressed(), PaintEndSlide(), PresenterSlideShowView(), and setCurrentPage().
|
private |
Definition at line 206 of file PresenterSlideShowView.hxx.
Referenced by disposing(), LateInit(), and PaintEndSlide().
|
private |
Definition at line 207 of file PresenterSlideShowView.hxx.
Referenced by disposing(), LateInit(), and setCurrentPage().
|
private |
Definition at line 208 of file PresenterSlideShowView.hxx.
Referenced by disposing(), and setCurrentPage().
|
private |
Definition at line 189 of file PresenterSlideShowView.hxx.
Referenced by CreateBackgroundPolygons(), disposing(), and PaintOuterWindow().
|
private |
Definition at line 190 of file PresenterSlideShowView.hxx.
Referenced by CreateBackgroundPolygons(), disposing(), and PaintOuterWindow().
|
private |
Definition at line 182 of file PresenterSlideShowView.hxx.
Referenced by CreateBackgroundPolygons(), disposing(), LateInit(), PaintEndSlide(), PaintInnerWindow(), and PaintOuterWindow().
|
private |
Definition at line 176 of file PresenterSlideShowView.hxx.
Referenced by CreateViewWindow(), disposing(), LateInit(), and setMouseCursor().
|
private |
Definition at line 179 of file PresenterSlideShowView.hxx.
Referenced by disposing(), and LateInit().
|
private |
Definition at line 210 of file PresenterSlideShowView.hxx.
Referenced by disposing(), getCurrentPage(), and setCurrentPage().
|
private |
Definition at line 184 of file PresenterSlideShowView.hxx.
Referenced by disposing(), and setMouseCursor().
|
private |
Definition at line 188 of file PresenterSlideShowView.hxx.
Referenced by CreateViewCanvas(), getCanvasArea(), and LateInit().
|
private |
Definition at line 181 of file PresenterSlideShowView.hxx.
Referenced by ActivatePresenterView(), DeactivatePresenterView(), disposing(), impl_addAndConfigureView(), LateInit(), PaintInnerWindow(), and ReleaseView().
|
private |
Definition at line 180 of file PresenterSlideShowView.hxx.
Referenced by disposing(), LateInit(), and setCurrentPage().
|
private |
Definition at line 187 of file PresenterSlideShowView.hxx.
Referenced by CreateViewCanvas(), getCanvasArea(), and LateInit().
|
private |
Definition at line 183 of file PresenterSlideShowView.hxx.
Referenced by clear(), disposing(), getCanvas(), and LateInit().
|
private |
Definition at line 178 of file PresenterSlideShowView.hxx.
Referenced by disposing(), getResourceId(), LateInit(), PaintEndSlide(), PresenterSlideShowView(), and setCurrentPage().
|
private |
Definition at line 186 of file PresenterSlideShowView.hxx.
Referenced by clear(), CreateBackgroundPolygons(), disposing(), getCanvasArea(), getTransformation(), LateInit(), PaintEndSlide(), Resize(), setCurrentPage(), setMouseCursor(), and windowPaint().
|
private |
Definition at line 185 of file PresenterSlideShowView.hxx.
Referenced by CreateBackgroundPolygons(), disposing(), LateInit(), Resize(), and windowPaint().