20#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSCROLLBAR_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERSCROLLBAR_HXX
24#include <com/sun/star/awt/XWindow.hpp>
25#include <com/sun/star/drawing/XPresenterHelper.hpp>
26#include <com/sun/star/rendering/XCanvas.hpp>
27#include <com/sun/star/uno/XComponentContext.hpp>
36class PresenterCanvasHelper;
37class PresenterPaintManager;
39typedef ::cppu::WeakComponentImplHelper <
40 css::awt::XWindowListener,
41 css::awt::XPaintListener,
42 css::awt::XMouseListener,
43 css::awt::XMouseMotionListener
57 virtual void SAL_CALL
disposing()
override;
59 css::uno::Reference<css::uno::XComponentContext>
const&
66 void SetPosSize (
const css::geometry::RealRectangle2D& rBox);
75 const bool bAsynchronousRepaint);
95 void SetCanvas (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas);
108 const css::awt::Rectangle& rUpdateBox);
114 virtual void SAL_CALL
windowResized (
const css::awt::WindowEvent& rEvent)
override;
116 virtual void SAL_CALL
windowMoved (
const css::awt::WindowEvent& rEvent)
override;
118 virtual void SAL_CALL
windowShown (
const css::lang::EventObject& rEvent)
override;
120 virtual void SAL_CALL
windowHidden (
const css::lang::EventObject& rEvent)
override;
124 virtual void SAL_CALL
windowPaint (
const css::awt::PaintEvent& rEvent)
override;
128 virtual void SAL_CALL
mousePressed (
const css::awt::MouseEvent& rEvent)
override;
130 virtual void SAL_CALL
mouseReleased (
const css::awt::MouseEvent& rEvent)
override;
132 virtual void SAL_CALL
mouseEntered (
const css::awt::MouseEvent& rEvent)
override;
134 virtual void SAL_CALL
mouseExited (
const css::awt::MouseEvent& rEvent)
override;
138 virtual void SAL_CALL
mouseMoved (
const css::awt::MouseEvent& rEvent)
override;
140 virtual void SAL_CALL
mouseDragged (
const css::awt::MouseEvent& rEvent)
override;
143 virtual void SAL_CALL
disposing (
const css::lang::EventObject& rEvent)
override;
151 css::uno::Reference<css::rendering::XCanvas>
mxCanvas;
176 css::geometry::RealRectangle2D
const &
GetRectangle (
const Area eArea)
const;
179 virtual double GetMinor (
const double nX,
const double nY)
const = 0;
183 const css::awt::Rectangle& rRepaintBox,
190 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
191 const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
192 std::shared_ptr<PresenterPaintManager> xPaintManager,
193 ::std::function<
void (
double)> aThumbMotionListener);
196 const css::geometry::RealRectangle2D& rBox,
197 const bool bAsynchronous);
199 const css::awt::Rectangle& rRepaintBox);
201 const css::awt::Rectangle& rRepaintBox,
206 css::uno::Reference<css::rendering::XBitmap>
GetBitmap (
210 const Area eArea)
const;
220 Area GetArea (
const double nX,
const double nY)
const;
229 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
230 const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
231 const std::shared_ptr<PresenterPaintManager>& rpPaintManager,
232 const ::std::function<
void (
double)>& rThumbMotionListener);
234 virtual sal_Int32
GetSize()
const override;
237 virtual double GetDragDistance (
const sal_Int32 nX,
const sal_Int32 nY)
const override;
239 virtual double GetMinor (
const double nX,
const double nY)
const override;
243 const css::awt::Rectangle& rRepaintBox,
::cppu::WeakComponentImplHelper< css::awt::XWindowListener, css::awt::XPaintListener, css::awt::XMouseListener, css::awt::XMouseMotionListener > PresenterScrollBarInterfaceBase
std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > SharedBitmapDescriptor