20#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSLIDESORTER_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSLIDESORTER_HXX
29#include <com/sun/star/awt/XPaintListener.hpp>
30#include <com/sun/star/awt/XWindowListener.hpp>
31#include <com/sun/star/beans/XPropertyChangeListener.hpp>
32#include <com/sun/star/drawing/XDrawView.hpp>
33#include <com/sun/star/drawing/XSlidePreviewCache.hpp>
34#include <com/sun/star/drawing/framework/XView.hpp>
35#include <com/sun/star/drawing/framework/XResourceId.hpp>
36#include <com/sun/star/frame/XController.hpp>
37#include <com/sun/star/geometry/RealRectangle2D.hpp>
38#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
43class PresenterScrollBar;
45typedef cppu::WeakComponentImplHelper<
46 css::drawing::framework::XView,
47 css::awt::XWindowListener,
48 css::awt::XPaintListener,
49 css::beans::XPropertyChangeListener,
50 css::drawing::XSlidePreviewCacheListener,
51 css::awt::XMouseListener,
52 css::awt::XMouseMotionListener,
53 css::drawing::XDrawView
62 public CachablePresenterView
66 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
67 const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId,
69 const ::rtl::Reference<PresenterController>& rpPresenterController);
72 virtual void SAL_CALL
disposing()
override;
77 disposing (
const css::lang::EventObject& rEventObject)
override;
81 virtual void SAL_CALL
windowResized (
const css::awt::WindowEvent& rEvent)
override;
83 virtual void SAL_CALL
windowMoved (
const css::awt::WindowEvent& rEvent)
override;
85 virtual void SAL_CALL
windowShown (
const css::lang::EventObject& rEvent)
override;
87 virtual void SAL_CALL
windowHidden (
const css::lang::EventObject& rEvent)
override;
91 virtual void SAL_CALL
windowPaint (
const css::awt::PaintEvent& rEvent)
override;
95 virtual void SAL_CALL
mousePressed (
const css::awt::MouseEvent& rEvent)
override;
97 virtual void SAL_CALL
mouseReleased (
const css::awt::MouseEvent& rEvent)
override;
99 virtual void SAL_CALL
mouseEntered (
const css::awt::MouseEvent& rEvent)
override;
101 virtual void SAL_CALL
mouseExited (
const css::awt::MouseEvent& rEvent)
override;
105 virtual void SAL_CALL
mouseMoved (
const css::awt::MouseEvent& rEvent)
override;
107 virtual void SAL_CALL
mouseDragged (
const css::awt::MouseEvent& rEvent)
override;
111 virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL
getResourceId()
override;
118 const css::beans::PropertyChangeEvent& rEvent)
override;
123 sal_Int32 nSlideIndex)
override;
128 const css::uno::Reference<css::drawing::XDrawPage>& rxSlide)
override;
130 virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL
getCurrentPage()
override;
134 css::uno::Reference<css::drawing::framework::XResourceId>
mxViewId;
135 css::uno::Reference<css::drawing::framework::XPane>
mxPane;
136 css::uno::Reference<css::rendering::XCanvas>
mxCanvas;
159 const css::geometry::RealRectangle2D& rUpperBox);
162 const css::awt::Rectangle& rCenterBox,
163 const sal_Int32 nLeftFrameWidth);
165 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
166 const css::awt::Rectangle& rRedrawArea);
168 css::uno::Reference<css::rendering::XBitmap>
GetPreview (
const sal_Int32 nSlideIndex);
170 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
171 const css::awt::Rectangle& rUpdateBox,
172 const sal_Int32 nSlideIndex);
173 void Paint (
const css::awt::Rectangle& rUpdateBox);
176 void GotoSlide (
const sal_Int32 nSlideIndex);
std::shared_ptr< PaneDescriptor > SharedPaneDescriptor
A simple slide sorter for the presenter screen.
void PaintPreview(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rUpdateBox, const sal_Int32 nSlideIndex)
::rtl::Reference< PresenterController > mpPresenterController
std::shared_ptr< CurrentSlideFrameRenderer > mpCurrentSlideFrameRenderer
css::uno::Reference< css::rendering::XBitmap > GetPreview(const sal_Int32 nSlideIndex)
css::uno::Reference< css::rendering::XPolyPolygon2D > mxPreviewFrame
void Paint(const css::awt::Rectangle &rUpdateBox)
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
double GetSlideAspectRatio() const
virtual void SAL_CALL mouseReleased(const css::awt::MouseEvent &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 css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getCurrentPage() override
virtual void SAL_CALL mouseEntered(const css::awt::MouseEvent &rEvent) override
virtual void SAL_CALL windowShown(const css::lang::EventObject &rEvent) override
css::util::Color maSeparatorColor
sal_Int32 mnCurrentSlideIndex
std::unique_ptr< MouseOverManager > mpMouseOverManager
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent &rEvent) override
sal_Int32 mnSlideIndexMousePressed
css::uno::Reference< css::drawing::XSlidePreviewCache > mxPreviewCache
virtual void SAL_CALL mouseDragged(const css::awt::MouseEvent &rEvent) override
void PlaceCloseButton(const PresenterPaneContainer::SharedPaneDescriptor &rpPane, const css::awt::Rectangle &rCenterBox, const sal_Int32 nLeftFrameWidth)
css::uno::Reference< css::drawing::framework::XPane > mxPane
css::uno::Reference< css::awt::XWindow > mxWindow
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
void ClearBackground(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rRedrawArea)
css::uno::Reference< css::drawing::framework::XResourceId > mxViewId
css::uno::Reference< css::presentation::XSlideShowController > mxSlideShowController
void SetVerticalOffset(const double nYOffset)
virtual void SAL_CALL mouseMoved(const css::awt::MouseEvent &rEvent) override
css::geometry::RealRectangle2D PlaceScrollBars(const css::geometry::RealRectangle2D &rUpperBox)
virtual sal_Bool SAL_CALL isAnchorOnly() override
virtual void SAL_CALL notifyPreviewCreation(sal_Int32 nSlideIndex) override
css::uno::Reference< css::rendering::XCanvas > mxCanvas
::rtl::Reference< PresenterButton > mpCloseButton
void GotoSlide(const sal_Int32 nSlideIndex)
virtual ~PresenterSlideSorter() override
virtual void SAL_CALL mouseExited(const css::awt::MouseEvent &rEvent) override
virtual void SAL_CALL windowResized(const css::awt::WindowEvent &rEvent) override
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId() override
void SetHorizontalOffset(const double nXOffset)
virtual void SAL_CALL disposing() override
::rtl::Reference< PresenterScrollBar > mpVerticalScrollBar
std::shared_ptr< Layout > mpLayout
virtual void SAL_CALL setCurrentPage(const css::uno::Reference< css::drawing::XDrawPage > &rxSlide) override
css::awt::Rectangle maCurrentSlideFrameBoundingBox
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEvent) override
virtual void SAL_CALL windowHidden(const css::lang::EventObject &rEvent) override
PresenterSlideSorter(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const rtl::Reference<::sd::DrawController > &rxController, const ::rtl::Reference< PresenterController > &rpPresenterController)
cppu::WeakComponentImplHelper< css::drawing::framework::XView, css::awt::XWindowListener, css::awt::XPaintListener, css::beans::XPropertyChangeListener, css::drawing::XSlidePreviewCacheListener, css::awt::XMouseListener, css::awt::XMouseMotionListener, css::drawing::XDrawView > PresenterSlideSorterInterfaceBase