LibreOffice Module sd (master) 1
|
Base class for all functions. More...
#include <motionpathtag.hxx>
Public Member Functions | |
MotionPathTag (CustomAnimationPane &rPane, ::sd::View &rView, const CustomAnimationEffectPtr &pEffect) | |
virtual | ~MotionPathTag () override |
SdrPathObj * | getPathObj () const |
virtual bool | MouseButtonDown (const MouseEvent &, SmartHdl &) override |
returns true if the MotionPathTag handled the event. More... | |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
returns true if the SmartTag consumes this event. More... | |
virtual sal_Int32 | GetMarkablePointCount () const override |
virtual sal_Int32 | GetMarkedPointCount () const override |
virtual bool | MarkPoint (SdrHdl &rHdl, bool bUnmark) override |
virtual void | CheckPossibilities () override |
virtual bool | MarkPoints (const ::tools::Rectangle *pRect, bool bUnmark) override |
const CustomAnimationEffectPtr & | getEffect () const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual void | DeleteMarkedPoints () override |
virtual bool | IsDeleteMarkedPointsPossible () const override |
virtual void | RipUpAtMarkedPoints () override |
virtual bool | IsRipUpAtMarkedPointsPossible () const override |
virtual bool | IsSetMarkedSegmentsKindPossible () const override |
virtual SdrPathSegmentKind | GetMarkedSegmentsKind () const override |
virtual void | SetMarkedSegmentsKind (SdrPathSegmentKind eKind) override |
virtual bool | IsSetMarkedPointsSmoothPossible () const override |
virtual SdrPathSmoothKind | GetMarkedPointsSmooth () const override |
virtual void | SetMarkedPointsSmooth (SdrPathSmoothKind eKind) override |
virtual bool | IsOpenCloseMarkedObjectsPossible () const override |
virtual SdrObjClosedKind | GetMarkedObjectsClosedState () const override |
void | MovePath (int nDX, int nDY) |
bool | OnDelete () |
bool | OnTabHandles (const KeyEvent &rKEvt) |
bool | OnMarkHandle (const KeyEvent &rKEvt) |
bool | OnMove (const KeyEvent &rKEvt) |
virtual void SAL_CALL | changesOccurred (const css::util::ChangesEvent &Event) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
Public Member Functions inherited from sd::SmartTag | |
SmartTag (::sd::View &rView) | |
virtual | ~SmartTag () override |
virtual bool | MouseButtonDown (const MouseEvent &, SmartHdl &) |
returns true if the SmartTag consumes this event. More... | |
virtual bool | KeyInput (const KeyEvent &rKEvt) |
returns true if the SmartTag consumes this event. More... | |
virtual bool | Command (const CommandEvent &rCEvt) |
returns true if the SmartTag consumes this event. More... | |
bool | isSelected () const |
returns true if this smart tag is currently selected More... | |
::sd::View & | getView () const |
Public Member Functions inherited from sd::SimpleReferenceComponent | |
SimpleReferenceComponent () | |
void | acquire () |
@ATTENTION The results are undefined if, for any individual instance of SimpleReferenceComponent, the total number of calls to acquire() exceeds the total number of calls to release() by a platform dependent amount (which, hopefully, is quite large). More... | |
void | release () |
void | Dispose () |
bool | isDisposed () const |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
virtual void | addCustomHandles (SdrHdlList &rHandlerList) override |
virtual bool | getContext (SdrViewContext &rContext) override |
virtual void | disposing () override |
virtual void | deselect () override |
void | updatePathAttributes () |
void | selectionChanged () |
Private Attributes | |
CustomAnimationPane & | mrPane |
CustomAnimationEffectPtr | mpEffect |
::basegfx::B2DPolyPolygon | mxPolyPoly |
css::uno::Reference< css::drawing::XShape > | mxOrigin |
rtl::Reference< SdrPathObj > | mpPathObj |
css::awt::Point | maOriginPos |
std::unique_ptr< SdrMark > | mpMark |
OUString | msLastPath |
bool | mbInUpdatePath |
Additional Inherited Members | |
Protected Member Functions inherited from sd::SmartTag | |
virtual sal_Int32 | GetMarkablePointCount () const |
virtual sal_Int32 | GetMarkedPointCount () const |
virtual bool | MarkPoint (SdrHdl &rHdl, bool bUnmark) |
virtual void | CheckPossibilities () |
virtual bool | MarkPoints (const ::tools::Rectangle *pRect, bool bUnmark) |
virtual void | addCustomHandles (SdrHdlList &rHandlerList) |
virtual void | select () |
virtual void | deselect () |
virtual bool | getContext (SdrViewContext &rContext) |
virtual void | disposing () override |
Protected Member Functions inherited from sd::SimpleReferenceComponent | |
virtual void | disposing () |
virtual | ~SimpleReferenceComponent () |
Protected Attributes inherited from sd::SmartTag | |
::sd::View & | mrView |
bool | mbSelected |
Base class for all functions.
Definition at line 36 of file motionpathtag.hxx.
sd::MotionPathTag::MotionPathTag | ( | CustomAnimationPane & | rPane, |
::sd::View & | rView, | ||
const CustomAnimationEffectPtr & | pEffect | ||
) |
Definition at line 323 of file motionpathtag.cxx.
References basegfx::B2DPolygon::append(), COL_GRAY(), SdrPaintView::getSdrModelFromSdrView(), SdrPaintView::GetSdrPageView(), maOriginPos, mpEffect, mpMark, mpPathObj, sd::SmartTag::mrView, mxOrigin, mxPolyPoly, basegfx::B2DPolygon::setClosed(), and updatePathAttributes().
|
overridevirtual |
Definition at line 367 of file motionpathtag.cxx.
References DBG_ASSERT, sd::SimpleReferenceComponent::Dispose(), and mpPathObj.
|
overridevirtualnoexcept |
Definition at line 1185 of file motionpathtag.cxx.
References sd::SimpleReferenceComponent::acquire().
|
overrideprivatevirtual |
Reimplemented from sd::SmartTag.
Definition at line 872 of file motionpathtag.cxx.
References SdrHdlList::AddHdl(), tools::Rectangle::Bottom(), tools::Rectangle::BottomCenter(), tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), basegfx::utils::createTranslateB2DHomMatrix(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SdrHdlList::GetHdl(), SdrHdlList::GetHdlCount(), SdrHdl::GetKind(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrHdl::GetPos(), SdrPaintView::GetSdrPageView(), SdrHdl::GetSourceHdlNum(), SdrHdlList::GetView(), tools::Rectangle::IsEmpty(), SdrMarkView::IsFrameDragSingles(), SdrMarkView::IsPlusHandlesAlwaysVisible(), SdrHdl::IsPlusHdl(), sd::SmartTag::isSelected(), tools::Rectangle::Left(), tools::Rectangle::LeftCenter(), maOriginPos, SdrHdlList::MoveTo(), mpMark, mpPathObj, sd::SmartTag::mrView, mxOrigin, mxPolyPoly, nCount, nHandle, tools::Rectangle::Right(), tools::Rectangle::RightCenter(), SdrPageView::SetHasMarkedObj(), SdrHdl::SetObj(), SdrHdl::SetObjHdlNum(), SdrHdl::SetPageView(), SdrHdl::SetPlusHdl(), SdrHdl::SetPointNum(), SdrHdl::SetPolyNum(), SdrHdl::SetSelected(), SdrHdl::SetSourceHdlNum(), sd::SMART_TAG_HDL_NUM, tools::Rectangle::Top(), tools::Rectangle::TopCenter(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), and basegfx::B2DPolyPolygon::transform().
|
overridevirtual |
Definition at line 1154 of file motionpathtag.cxx.
References mbInUpdatePath, mpEffect, mpPathObj, sd::SmartTag::mrView, msLastPath, sd::View::updateHandles(), and updatePathAttributes().
|
overridevirtual |
Reimplemented from sd::SmartTag.
Definition at line 848 of file motionpathtag.cxx.
References SdrPolyEditView::CheckPolyPossibilitiesHelper(), SdrMarkView::IsFrameDragSingles(), sd::SmartTag::isSelected(), mpMark, mpPathObj, sd::SmartTag::mrView, basegfx::NONE, sd::View::SetMoveAllowed(), sd::View::SetMoveProtected(), sd::View::SetResizeFreeAllowed(), sd::View::SetResizePropAllowed(), and sd::View::SetResizeProtected().
|
overridevirtual |
Definition at line 1022 of file motionpathtag.cxx.
References SdrCreateView::BrkAction(), basegfx::B2DPolyPolygon::count(), sdr::PolyPolygonEditor::DeletePoints(), sdr::PolyPolygonEditor::GetPolyPolygon(), IsDeleteMarkedPointsPossible(), sd::View::MarkListHasChanged(), mpMark, mpPathObj, sd::SmartTag::mrView, SdrMarkView::UnmarkAllPoints(), and sd::View::updateHandles().
|
overrideprivatevirtual |
Reimplemented from sd::SmartTag.
Definition at line 998 of file motionpathtag.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), sd::SmartTag::deselect(), mpMark, and selectionChanged().
|
overrideprivatevirtual |
Reimplemented from sd::SmartTag.
Definition at line 979 of file motionpathtag.cxx.
References sd::SmartTag::disposing(), mpEffect, mpMark, mpPathObj, sd::SmartTag::mrView, and sd::View::updateHandles().
|
overridevirtual |
|
overrideprivatevirtual |
Reimplemented from sd::SmartTag.
Definition at line 835 of file motionpathtag.cxx.
References SdrMarkView::IsFrameDragSingles(), sd::SmartTag::isSelected(), mpPathObj, and sd::SmartTag::mrView.
|
inline |
Definition at line 57 of file motionpathtag.hxx.
References mpEffect.
|
overridevirtual |
Reimplemented from sd::SmartTag.
Definition at line 760 of file motionpathtag.cxx.
References sd::SmartTag::isSelected(), and mpPathObj.
|
overridevirtual |
Definition at line 1147 of file motionpathtag.cxx.
|
overridevirtual |
Reimplemented from sd::SmartTag.
Definition at line 772 of file motionpathtag.cxx.
References mpMark, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by IsDeleteMarkedPointsPossible(), SetMarkedPointsSmooth(), and SetMarkedSegmentsKind().
|
overridevirtual |
Definition at line 1099 of file motionpathtag.cxx.
References SdrPolyEditView::GetMarkedPointsSmooth(), mpPathObj, and sd::SmartTag::mrView.
|
overridevirtual |
Definition at line 1068 of file motionpathtag.cxx.
References SdrPolyEditView::GetMarkedSegmentsKind(), mpPathObj, and sd::SmartTag::mrView.
|
inline |
Definition at line 42 of file motionpathtag.hxx.
References mpPathObj.
|
overridevirtual |
Definition at line 1044 of file motionpathtag.cxx.
References GetMarkedPointCount(), sd::SmartTag::isSelected(), and mpPathObj.
Referenced by DeleteMarkedPoints().
|
overridevirtual |
Definition at line 1141 of file motionpathtag.cxx.
|
overridevirtual |
Definition at line 1054 of file motionpathtag.cxx.
|
overridevirtual |
Definition at line 1091 of file motionpathtag.cxx.
References SdrPolyEditView::IsSetMarkedPointsSmoothPossible(), mpPathObj, and sd::SmartTag::mrView.
|
overridevirtual |
Definition at line 1060 of file motionpathtag.cxx.
References SdrPolyEditView::IsSetMarkedSegmentsKindPossible(), mpPathObj, and sd::SmartTag::mrView.
|
overridevirtual |
returns true if the SmartTag consumes this event.
Reimplemented from sd::SmartTag.
Definition at line 553 of file motionpathtag.cxx.
References sd::SmartTagSet::deselect(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), sd::View::getSmartTags(), KEY_DELETE, KEY_DOWN, KEY_ESCAPE, KEY_LEFT, KEY_RIGHT, KEY_SPACE, KEY_TAB, KEY_UP, mpPathObj, sd::SmartTag::mrView, OnDelete(), OnMarkHandle(), OnMove(), and OnTabHandles().
|
overridevirtual |
Reimplemented from sd::SmartTag.
Definition at line 785 of file motionpathtag.cxx.
References SdrHdl::GetKind(), sd::SmartHdl::getTag(), SdrMarkView::IsPointMarkable(), sd::View::MarkListHasChanged(), SdrMarkView::MarkPointHelper(), mpMark, mpPathObj, and sd::SmartTag::mrView.
|
overridevirtual |
Reimplemented from sd::SmartTag.
Definition at line 803 of file motionpathtag.cxx.
References SdrMarkView::GetHdl(), SdrHdlList::GetHdlCount(), SdrMarkView::GetHdlList(), SdrHdl::GetPos(), sd::SmartHdl::getTag(), SdrMarkView::IsPointMarkable(), SdrHdl::IsSelected(), sd::SmartTag::isSelected(), sd::View::MarkListHasChanged(), SdrMarkView::MarkPointHelper(), mpMark, mpPathObj, and sd::SmartTag::mrView.
|
overridevirtual |
returns true if the MotionPathTag handled the event.
Reimplemented from sd::SmartTag.
Definition at line 426 of file motionpathtag.cxx.
References E3dView::BegDragObj(), SdrCreateView::BrkAction(), sd::DRGPIX, SfxDispatcher::Execute(), sd::ViewShell::GetActiveWindow(), MouseEvent::GetClicks(), SfxViewFrame::GetDispatcher(), SdrPaintView::GetDragStat(), SdrMarkView::GetHdl(), SdrHdl::GetKind(), SdrHdl::GetObjHdlNum(), vcl::Window::GetOutDev(), MouseEvent::GetPosPixel(), SdrPaintView::GetSdrPageView(), sd::View::getSmartTags(), SdrSnapView::GetSnapPos(), sd::ViewShell::GetViewFrame(), sd::View::GetViewShell(), SdrMarkView::IsFrameDragSingles(), SdrDragView::IsInsObjPointMode(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), SdrMarkView::IsPointMarked(), MouseEvent::IsRight(), sd::SmartTag::isSelected(), MouseEvent::IsShift(), sd::View::MarkPoint(), SdrDragView::MovDragObj(), mpPathObj, sd::SmartTag::mrView, SdrMarkView::PickHandle(), pOut, sd::SmartTagSet::select(), selectionChanged(), SdrHdl::SetPos(), sd::SMART_TAG_HDL_NUM, SdrMarkView::UnmarkAllPoints(), SdrMarkView::UnmarkPoint(), sd::View::updateHandles(), and Width.
Definition at line 416 of file motionpathtag.cxx.
References mpPathObj, sd::SmartTag::mrView, and sd::View::updateHandles().
Referenced by OnMove().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 399 of file motionpathtag.cxx.
References SfxHint::GetId(), mbInUpdatePath, mpEffect, mpPathObj, mrPane, msLastPath, mxPolyPoly, updatePathAttributes(), and sd::CustomAnimationPane::updatePathFromMotionPathTag().
bool sd::MotionPathTag::OnDelete | ( | ) |
Definition at line 589 of file motionpathtag.cxx.
References mpEffect, mrPane, and sd::CustomAnimationPane::remove().
Referenced by KeyInput().
bool sd::MotionPathTag::OnMarkHandle | ( | const KeyEvent & | rKEvt | ) |
Definition at line 624 of file motionpathtag.cxx.
References a, SdrHdlList::GetFocusHdl(), SdrHdlList::GetHdl(), SdrHdlList::GetHdlCount(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), SdrHdl::GetKind(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrMarkView::IsPointMarked(), vcl::KeyCode::IsShift(), sd::View::MarkPoint(), sd::SmartTag::mrView, SdrMarkView::UnmarkAllPoints(), and SdrMarkView::UnmarkPoint().
Referenced by KeyInput().
bool sd::MotionPathTag::OnMove | ( | const KeyEvent & | rKEvt | ) |
Definition at line 672 of file motionpathtag.cxx.
References E3dView::BegDragObj(), SdrDragView::EndDragObj(), sd::ViewShell::GetActiveWindow(), vcl::KeyCode::GetCode(), SdrPaintView::GetDragStat(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), SdrHdl::GetKind(), vcl::Window::GetOutDev(), SdrHdl::GetPos(), sd::View::GetViewShell(), Size::Height(), SdrDragView::IsDragObj(), vcl::KeyCode::IsMod2(), SdrDragStat::IsNoSnap(), SdrSnapView::IsSnapEnabled(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, E3dView::MovAction(), MovePath(), sd::SmartTag::mrView, pOut, SdrSnapView::SetSnapEnabled(), and Size::Width().
Referenced by KeyInput().
bool sd::MotionPathTag::OnTabHandles | ( | const KeyEvent & | rKEvt | ) |
Definition at line 595 of file motionpathtag.cxx.
References sd::ViewShell::GetActiveWindow(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), SdrHdl::GetPos(), sd::View::GetViewShell(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), SdrPaintView::MakeVisible(), and sd::SmartTag::mrView.
Referenced by KeyInput().
|
overridevirtual |
Definition at line 1173 of file motionpathtag.cxx.
References Any.
|
overridevirtualnoexcept |
Definition at line 1190 of file motionpathtag.cxx.
References sd::SimpleReferenceComponent::release().
|
overridevirtual |
Definition at line 1049 of file motionpathtag.cxx.
|
private |
Definition at line 1011 of file motionpathtag.cxx.
References SfxViewFrame::GetBindings(), sd::ViewShell::GetViewFrame(), sd::View::GetViewShell(), SfxBindings::InvalidateAll(), and sd::SmartTag::mrView.
Referenced by deselect(), and MouseButtonDown().
|
overridevirtual |
Definition at line 1107 of file motionpathtag.cxx.
References basegfx::C1, basegfx::C2, GetMarkedPointCount(), sdr::PolyPolygonEditor::GetPolyPolygon(), sd::SmartTag::isSelected(), sd::View::MarkListHasChanged(), mpMark, mpPathObj, sd::SmartTag::mrView, basegfx::NONE, sdr::PolyPolygonEditor::SetPointsSmooth(), and sd::View::updateHandles().
|
overridevirtual |
Definition at line 1076 of file motionpathtag.cxx.
References GetMarkedPointCount(), sdr::PolyPolygonEditor::GetPolyPolygon(), sd::SmartTag::isSelected(), sd::View::MarkListHasChanged(), mpMark, mpPathObj, sd::SmartTag::mrView, sdr::PolyPolygonEditor::SetSegmentsKind(), and sd::View::updateHandles().
|
private |
Definition at line 373 of file motionpathtag.cxx.
References basegfx::B2DPolygon::append(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), basegfx::B2DPolygon::isClosed(), mpPathObj, mxPolyPoly, and basegfx::B2DPolygon::setClosed().
Referenced by changesOccurred(), MotionPathTag(), and Notify().
|
private |
Definition at line 106 of file motionpathtag.hxx.
Referenced by addCustomHandles(), and MotionPathTag().
|
private |
Definition at line 109 of file motionpathtag.hxx.
Referenced by changesOccurred(), and Notify().
|
private |
Definition at line 102 of file motionpathtag.hxx.
Referenced by changesOccurred(), disposing(), getEffect(), MotionPathTag(), Notify(), and OnDelete().
|
private |
Definition at line 107 of file motionpathtag.hxx.
Referenced by addCustomHandles(), CheckPossibilities(), DeleteMarkedPoints(), deselect(), disposing(), GetMarkedPointCount(), MarkPoint(), MarkPoints(), MotionPathTag(), SetMarkedPointsSmooth(), and SetMarkedSegmentsKind().
|
private |
Definition at line 105 of file motionpathtag.hxx.
Referenced by addCustomHandles(), changesOccurred(), CheckPossibilities(), DeleteMarkedPoints(), disposing(), getContext(), GetMarkablePointCount(), GetMarkedPointsSmooth(), GetMarkedSegmentsKind(), getPathObj(), IsDeleteMarkedPointsPossible(), IsSetMarkedPointsSmoothPossible(), IsSetMarkedSegmentsKindPossible(), KeyInput(), MarkPoint(), MarkPoints(), MotionPathTag(), MouseButtonDown(), MovePath(), Notify(), SetMarkedPointsSmooth(), SetMarkedSegmentsKind(), updatePathAttributes(), and ~MotionPathTag().
|
private |
Definition at line 101 of file motionpathtag.hxx.
Referenced by Notify(), and OnDelete().
|
private |
Definition at line 108 of file motionpathtag.hxx.
Referenced by changesOccurred(), and Notify().
|
private |
Definition at line 104 of file motionpathtag.hxx.
Referenced by addCustomHandles(), and MotionPathTag().
|
private |
Definition at line 103 of file motionpathtag.hxx.
Referenced by addCustomHandles(), MotionPathTag(), Notify(), and updatePathAttributes().