LibreOffice Module sd (master) 1
|
#include <slideshowviewimpl.hxx>
Public Member Functions | |
SlideShowView (ShowWindow &rOutputWindow, SdDrawDocument *pDoc, AnimationMode eAnimationMode, SlideshowImpl *pSlideShow, bool bFullScreen) | |
void | ignoreNextMouseReleased () |
virtual void | disposing (std::unique_lock< std::mutex > &) override |
Dispose all internal references. More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &) override |
Disposing our broadcaster. More... | |
void | paint (const css::awt::PaintEvent &e) |
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 | windowResized (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &e) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &e) override |
virtual void SAL_CALL | mousePressed (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseReleased (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseEntered (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseExited (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseDragged (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseMoved (const css::awt::MouseEvent &e) 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 () |
Protected Member Functions | |
virtual | ~SlideShowView () override |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Private Member Functions | |
void | updateimpl (std::unique_lock< std::mutex > &rGuard, SlideshowImpl *pSlideShow) |
void | disposingImpl (std::unique_lock< std::mutex > &) |
Private Attributes | |
::cppcanvas::SpriteCanvasSharedPtr | mpCanvas |
css::uno::Reference< css::awt::XWindow > | mxWindow |
css::uno::Reference< css::awt::XWindowPeer > | mxWindowPeer |
css::uno::Reference< css::awt::XPointer > | mxPointer |
SlideshowImpl * | mpSlideShow |
ShowWindow & | mrOutputWindow |
std::vector< css::uno::WeakReference< css::util::XModifyListener > > | maViewListeners |
SlideShowViewPaintListeners | maPaintListeners |
SlideShowViewMouseListeners | maMouseListeners |
SlideShowViewMouseMotionListeners | maMouseMotionListeners |
SdDrawDocument * | mpDoc |
bool | mbIsMouseMotionListener |
AnimationMode | meAnimationMode |
bool | mbFirstPaint |
bool | mbMousePressedEaten |
css::geometry::IntegerSize2D | mTranslationOffset |
Additional Inherited Members | |
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 |
Definition at line 101 of file slideshowviewimpl.hxx.
sd::SlideShowView::SlideShowView | ( | ShowWindow & | rOutputWindow, |
SdDrawDocument * | pDoc, | ||
AnimationMode | eAnimationMode, | ||
SlideshowImpl * | pSlideShow, | ||
bool | bFullScreen | ||
) |
Definition at line 98 of file slideshowviewimpl.cxx.
References getCanvas(), getTransformation(), mTranslationOffset, mxPointer, and mxWindow.
|
inlineoverrideprotectedvirtual |
Definition at line 154 of file slideshowviewimpl.hxx.
|
overridevirtual |
Definition at line 364 of file slideshowviewimpl.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, and maMouseListeners.
|
overridevirtual |
Definition at line 380 of file slideshowviewimpl.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseMotionListeners, mbIsMouseMotionListener, and mxWindow.
|
overridevirtual |
Definition at line 348 of file slideshowviewimpl.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, and maPaintListeners.
|
overridevirtual |
Definition at line 325 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, and maViewListeners.
|
overridevirtual |
Definition at line 238 of file slideshowviewimpl.cxx.
References cppcanvas::BaseGfxFactory::createPolyPolygon(), vcl::Window::GetSizePixel(), Size::Height(), comphelper::UnoImplBase::m_aMutex, mpCanvas, mrOutputWindow, and Size::Width().
|
overridevirtual |
Disposing our broadcaster.
|
overridevirtual |
Dispose all internal references.
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 143 of file slideshowviewimpl.cxx.
References disposingImpl(), mbIsMouseMotionListener, mpCanvas, mpSlideShow, and mxWindow.
|
private |
Definition at line 173 of file slideshowviewimpl.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), maMouseListeners, maMouseMotionListeners, maPaintListeners, and maViewListeners.
Referenced by disposing().
|
overridevirtual |
Definition at line 231 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, and mpCanvas.
Referenced by SlideShowView().
|
overridevirtual |
Definition at line 421 of file slideshowviewimpl.cxx.
References mxWindow.
|
overridevirtual |
Definition at line 267 of file slideshowviewimpl.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), sd::ANIMATIONMODE_SHOW, basegfx::utils::createScaleTranslateB2DHomMatrix(), SdDrawDocument::GetSdPage(), SdrPage::GetSize(), vcl::Window::GetSizePixel(), Size::Height(), Size::IsEmpty(), comphelper::UnoImplBase::m_aMutex, meAnimationMode, mpDoc, mrOutputWindow, mTranslationOffset, Size::setHeight(), Size::setWidth(), Standard, Size::Width(), Point::X(), and Point::Y().
Referenced by SlideShowView().
|
overridevirtual |
Definition at line 262 of file slideshowviewimpl.cxx.
References mTranslationOffset.
|
inline |
Definition at line 110 of file slideshowviewimpl.hxx.
References mbMousePressedEaten.
|
overridevirtual |
Definition at line 590 of file slideshowviewimpl.cxx.
References aEvent, sd::WrappedMouseMotionEvent::DRAGGED, comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseMotionListeners, mpSlideShow, sd::SlideShowViewMouseMotionListeners::notify(), and updateimpl().
|
overridevirtual |
Definition at line 555 of file slideshowviewimpl.cxx.
References aEvent, sd::WrappedMouseEvent::ENTERED, comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseListeners, mpSlideShow, sd::SlideShowViewMouseListeners::notify(), and updateimpl().
|
overridevirtual |
Definition at line 572 of file slideshowviewimpl.cxx.
References aEvent, sd::WrappedMouseEvent::EXITED, comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseListeners, mpSlideShow, sd::SlideShowViewMouseListeners::notify(), and updateimpl().
|
overridevirtual |
Definition at line 607 of file slideshowviewimpl.cxx.
References aEvent, comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseMotionListeners, sd::WrappedMouseMotionEvent::MOVED, mpSlideShow, sd::SlideShowViewMouseMotionListeners::notify(), and updateimpl().
|
overridevirtual |
Definition at line 504 of file slideshowviewimpl.cxx.
References aEvent, sd::SlideshowImpl::isInputFreezed(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseListeners, mbMousePressedEaten, mpSlideShow, sd::SlideShowViewMouseListeners::notify(), sd::WrappedMouseEvent::PRESSED, and updateimpl().
|
overridevirtual |
Definition at line 530 of file slideshowviewimpl.cxx.
References aEvent, sd::SlideshowImpl::isInputFreezed(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseListeners, mbMousePressedEaten, mpSlideShow, sd::SlideShowViewMouseListeners::notify(), sd::WrappedMouseEvent::RELEASED, and updateimpl().
void sd::SlideShowView::paint | ( | const css::awt::PaintEvent & | e | ) |
css::uno::RuntimeException |
Definition at line 207 of file slideshowviewimpl.cxx.
References aEvent, comphelper::UnoImplBase::m_aMutex, maPaintListeners, mbFirstPaint, mpSlideShow, comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach(), sd::SlideshowImpl::onFirstPaint(), and updateimpl().
|
overridevirtual |
Definition at line 372 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 398 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maMouseMotionListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 356 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maPaintListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 336 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, and maViewListeners.
|
overridevirtual |
Definition at line 409 of file slideshowviewimpl.cxx.
References comphelper::UnoImplBase::m_aMutex, mxPointer, and mxWindowPeer.
|
private |
Definition at line 433 of file slideshowviewimpl.cxx.
References mbFirstPaint, mpSlideShow, sd::SlideshowImpl::onFirstPaint(), and sd::SlideshowImpl::startUpdateTimer().
Referenced by mouseDragged(), mouseEntered(), mouseExited(), mouseMoved(), mousePressed(), mouseReleased(), paint(), and windowResized().
|
overridevirtual |
Definition at line 498 of file slideshowviewimpl.cxx.
|
overridevirtual |
Definition at line 488 of file slideshowviewimpl.cxx.
|
overridevirtual |
Definition at line 454 of file slideshowviewimpl.cxx.
References aEvent, comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maViewListeners, mpSlideShow, and updateimpl().
|
overridevirtual |
Definition at line 493 of file slideshowviewimpl.cxx.
|
private |
Definition at line 170 of file slideshowviewimpl.hxx.
Referenced by addMouseListener(), disposingImpl(), mouseEntered(), mouseExited(), mousePressed(), mouseReleased(), and removeMouseListener().
|
private |
Definition at line 171 of file slideshowviewimpl.hxx.
Referenced by addMouseMotionListener(), disposingImpl(), mouseDragged(), mouseMoved(), and removeMouseMotionListener().
|
private |
Definition at line 169 of file slideshowviewimpl.hxx.
Referenced by addPaintListener(), disposingImpl(), paint(), and removePaintListener().
|
private |
Definition at line 168 of file slideshowviewimpl.hxx.
Referenced by addTransformationChangedListener(), disposingImpl(), removeTransformationChangedListener(), and windowResized().
|
private |
Definition at line 175 of file slideshowviewimpl.hxx.
Referenced by paint(), and updateimpl().
|
private |
Definition at line 173 of file slideshowviewimpl.hxx.
Referenced by addMouseMotionListener(), and disposing().
|
private |
Definition at line 176 of file slideshowviewimpl.hxx.
Referenced by ignoreNextMouseReleased(), mousePressed(), and mouseReleased().
|
private |
Definition at line 174 of file slideshowviewimpl.hxx.
Referenced by getTransformation().
|
private |
Definition at line 161 of file slideshowviewimpl.hxx.
Referenced by clear(), disposing(), and getCanvas().
|
private |
Definition at line 172 of file slideshowviewimpl.hxx.
Referenced by getTransformation().
|
private |
Definition at line 165 of file slideshowviewimpl.hxx.
Referenced by disposing(), mouseDragged(), mouseEntered(), mouseExited(), mouseMoved(), mousePressed(), mouseReleased(), paint(), updateimpl(), and windowResized().
|
private |
Definition at line 166 of file slideshowviewimpl.hxx.
Referenced by clear(), and getTransformation().
|
private |
Definition at line 177 of file slideshowviewimpl.hxx.
Referenced by getTransformation(), getTranslationOffset(), and SlideShowView().
|
private |
Definition at line 164 of file slideshowviewimpl.hxx.
Referenced by setMouseCursor(), and SlideShowView().
|
private |
Definition at line 162 of file slideshowviewimpl.hxx.
Referenced by addMouseMotionListener(), disposing(), getCanvasArea(), and SlideShowView().
|
private |
Definition at line 163 of file slideshowviewimpl.hxx.
Referenced by setMouseCursor().