LibreOffice Module slideshow (master) 1
|
Public Member Functions | |
PaintOverlayHandler (const RGBColor &rStrokeColor, double nStrokeWidth, ScreenUpdater &rScreenUpdater, const UnoViewContainer &rViews, Slide &rSlide, PolyPolygonVector &&rPolygons, bool bActive) | |
void | dispose () |
virtual void | viewAdded (const UnoViewSharedPtr &rView) override |
Notify new view. More... | |
virtual void | viewRemoved (const UnoViewSharedPtr &rView) override |
Notify removed view. More... | |
virtual void | viewChanged (const UnoViewSharedPtr &) override |
Notify changed view. More... | |
virtual void | viewsChanged () override |
Notify that all views changed. More... | |
bool | colorChanged (RGBColor const &rUserColor) override |
bool | widthChanged (double nUserStrokeWidth) override |
void | repaintWithoutPolygons () |
bool | eraseAllInkChanged (bool bEraseAllInk) override |
bool | eraseInkWidthChanged (sal_Int32 rEraseInkSize) override |
bool | switchPenMode () override |
bool | switchEraserMode () override |
bool | disable () override |
void | drawPolygons () |
const PolyPolygonVector & | getPolygons () const |
virtual bool | handleMousePressed (const awt::MouseEvent &e) override |
virtual bool | handleMouseReleased (const awt::MouseEvent &e) override |
virtual bool | handleMouseDragged (const awt::MouseEvent &e) override |
virtual bool | handleMouseMoved (const awt::MouseEvent &) override |
Public Member Functions inherited from slideshow::internal::MouseEventHandler | |
virtual | ~MouseEventHandler () |
virtual bool | handleMousePressed (const css::awt::MouseEvent &e)=0 |
Handle a mouse button pressed event. More... | |
virtual bool | handleMouseReleased (const css::awt::MouseEvent &e)=0 |
Handle a mouse button released event. More... | |
virtual bool | handleMouseDragged (const css::awt::MouseEvent &e)=0 |
Handle a mouse was moved with a pressed button event. More... | |
virtual bool | handleMouseMoved (const css::awt::MouseEvent &e)=0 |
Handle a mouse was moved event. More... | |
virtual void | viewAdded (const UnoViewSharedPtr &rView)=0 |
Notify new view. More... | |
virtual void | viewRemoved (const UnoViewSharedPtr &rView)=0 |
Notify removed view. More... | |
virtual void | viewChanged (const UnoViewSharedPtr &rView)=0 |
Notify changed view. More... | |
virtual void | viewsChanged ()=0 |
Notify that all views changed. More... | |
Public Member Functions inherited from slideshow::internal::SharedPtrAble | |
virtual | ~SharedPtrAble () |
Public Member Functions inherited from slideshow::internal::UserPaintEventHandler | |
virtual | ~UserPaintEventHandler () |
virtual bool | colorChanged (RGBColor const &rUserColor)=0 |
virtual bool | widthChanged (double nUserStrokeWidth)=0 |
virtual bool | eraseAllInkChanged (bool bEraseAllInk)=0 |
virtual bool | eraseInkWidthChanged (sal_Int32 rEraseInkSize)=0 |
virtual bool | switchEraserMode ()=0 |
virtual bool | switchPenMode ()=0 |
virtual bool | disable ()=0 |
Private Attributes | |
ScreenUpdater & | mrScreenUpdater |
UnoViewVector | maViews |
PolyPolygonVector | maPolygons |
RGBColor | maStrokeColor |
double | mnStrokeWidth |
basegfx::B2DPoint | maLastPoint |
basegfx::B2DPoint | maLastMouseDownPos |
bool | mbIsLastPointValid |
bool | mbIsLastMouseDownPosValid |
bool | mbIsEraseAllModeActivated |
bool | mbIsEraseModeActivated |
Slide & | mrSlide |
sal_Int32 | mnSize |
bool | mbActive |
Definition at line 44 of file userpaintoverlay.cxx.
|
inline |
Definition at line 49 of file userpaintoverlay.cxx.
References drawPolygons(), and viewAdded().
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 109 of file userpaintoverlay.cxx.
References maStrokeColor, mbActive, mbIsEraseModeActivated, and mbIsLastPointValid.
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 199 of file userpaintoverlay.cxx.
References mbActive, mbIsLastMouseDownPosValid, and mbIsLastPointValid.
|
inline |
Definition at line 79 of file userpaintoverlay.cxx.
References maViews.
|
inline |
Definition at line 208 of file userpaintoverlay.cxx.
References maPolygons, mrScreenUpdater, and slideshow::internal::ScreenUpdater::notifyUpdate().
Referenced by PaintOverlayHandler().
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 158 of file userpaintoverlay.cxx.
References maPolygons, mbIsEraseAllModeActivated, mbIsEraseModeActivated, and repaintWithoutPolygons().
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 174 of file userpaintoverlay.cxx.
References mbIsEraseModeActivated, and mnSize.
|
inline |
Definition at line 219 of file userpaintoverlay.cxx.
References maPolygons.
|
inlineoverridevirtual |
Definition at line 285 of file userpaintoverlay.cxx.
References basegfx::B2DPolygon::append(), cppcanvas::BaseGfxFactory::createPolyPolygon(), slideshow::internal::Slide::getCurrentSlideBitmap(), slideshow::internal::RGBColor::getIntegerColor(), maLastPoint, maPolygons, maStrokeColor, maViews, mbActive, mbIsEraseModeActivated, mbIsLastPointValid, mnSize, mnStrokeWidth, mrScreenUpdater, mrSlide, slideshow::internal::ScreenUpdater::notifyUpdate(), basegfx::Tuple2D< typename TYPE >::setX(), basegfx::Tuple2D< typename TYPE >::setY(), basegfx::B2DPolyPolygon::transform(), and basegfx::B2DHomMatrix::translate().
|
inlineoverridevirtual |
Definition at line 400 of file userpaintoverlay.cxx.
|
inlineoverridevirtual |
Definition at line 225 of file userpaintoverlay.cxx.
References maLastMouseDownPos, mbActive, mbIsLastMouseDownPosValid, mbIsLastPointValid, basegfx::Tuple2D< typename TYPE >::setX(), and basegfx::Tuple2D< typename TYPE >::setY().
|
inlineoverridevirtual |
Definition at line 248 of file userpaintoverlay.cxx.
References maLastMouseDownPos, mbActive, mbIsLastMouseDownPosValid, and mbIsLastPointValid.
|
inline |
Definition at line 125 of file userpaintoverlay.cxx.
References slideshow::internal::Slide::getCurrentSlideBitmap(), maViews, mrScreenUpdater, mrSlide, and slideshow::internal::ScreenUpdater::notifyUpdate().
Referenced by eraseAllInkChanged().
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 191 of file userpaintoverlay.cxx.
References mbActive, mbIsEraseModeActivated, and mbIsLastPointValid.
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 183 of file userpaintoverlay.cxx.
References mbActive, mbIsEraseModeActivated, and mbIsLastPointValid.
|
inlineoverridevirtual |
Notify new view.
rView | The newly added view |
Implements slideshow::internal::ViewEventHandler.
Definition at line 85 of file userpaintoverlay.cxx.
References maViews.
Referenced by PaintOverlayHandler().
|
inlineoverridevirtual |
Notify changed view.
Reasons for a viewChanged notification can be different view size, transformation, or other device properties (color resolution or profile, etc.)
rView | The changed view |
Implements slideshow::internal::ViewEventHandler.
Definition at line 97 of file userpaintoverlay.cxx.
|
inlineoverridevirtual |
Notify removed view.
rView | The removed view |
Implements slideshow::internal::ViewEventHandler.
Definition at line 90 of file userpaintoverlay.cxx.
References maViews.
|
inlineoverridevirtual |
Notify that all views changed.
Reasons for a viewChanged notification can be different view size, transformation, or other device properties (color resolution or profile, etc.)
Note that this method avoids hidden inefficiencies (O(n^2) behaviour when viewChanged() needs to perform linear searches)
Implements slideshow::internal::ViewEventHandler.
Definition at line 103 of file userpaintoverlay.cxx.
|
inlineoverridevirtual |
Implements slideshow::internal::UserPaintEventHandler.
Definition at line 118 of file userpaintoverlay.cxx.
References mbIsEraseModeActivated, and mnStrokeWidth.
|
private |
Definition at line 413 of file userpaintoverlay.cxx.
Referenced by handleMousePressed(), and handleMouseReleased().
|
private |
Definition at line 412 of file userpaintoverlay.cxx.
Referenced by handleMouseDragged().
|
private |
Definition at line 409 of file userpaintoverlay.cxx.
Referenced by drawPolygons(), eraseAllInkChanged(), getPolygons(), and handleMouseDragged().
|
private |
Definition at line 410 of file userpaintoverlay.cxx.
Referenced by colorChanged(), and handleMouseDragged().
|
private |
Definition at line 408 of file userpaintoverlay.cxx.
Referenced by dispose(), handleMouseDragged(), repaintWithoutPolygons(), viewAdded(), and viewRemoved().
|
private |
Definition at line 421 of file userpaintoverlay.cxx.
Referenced by colorChanged(), disable(), handleMouseDragged(), handleMousePressed(), handleMouseReleased(), switchEraserMode(), and switchPenMode().
|
private |
Definition at line 417 of file userpaintoverlay.cxx.
Referenced by eraseAllInkChanged().
|
private |
Definition at line 418 of file userpaintoverlay.cxx.
Referenced by colorChanged(), eraseAllInkChanged(), eraseInkWidthChanged(), handleMouseDragged(), switchEraserMode(), switchPenMode(), and widthChanged().
|
private |
Definition at line 415 of file userpaintoverlay.cxx.
Referenced by disable(), handleMousePressed(), and handleMouseReleased().
|
private |
Definition at line 414 of file userpaintoverlay.cxx.
Referenced by colorChanged(), disable(), handleMouseDragged(), handleMousePressed(), handleMouseReleased(), switchEraserMode(), and switchPenMode().
|
private |
Definition at line 420 of file userpaintoverlay.cxx.
Referenced by eraseInkWidthChanged(), and handleMouseDragged().
|
private |
Definition at line 411 of file userpaintoverlay.cxx.
Referenced by handleMouseDragged(), and widthChanged().
|
private |
Definition at line 407 of file userpaintoverlay.cxx.
Referenced by drawPolygons(), handleMouseDragged(), and repaintWithoutPolygons().
|
private |
Definition at line 419 of file userpaintoverlay.cxx.
Referenced by handleMouseDragged(), and repaintWithoutPolygons().