LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::MotionPathTag Class Referencefinal

Base class for all functions. More...

#include <motionpathtag.hxx>

Inheritance diagram for sd::MotionPathTag:
[legend]
Collaboration diagram for sd::MotionPathTag:
[legend]

Public Member Functions

 MotionPathTag (CustomAnimationPane &rPane, ::sd::View &rView, const CustomAnimationEffectPtr &pEffect)
 
virtual ~MotionPathTag () override
 
SdrPathObjgetPathObj () 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 CustomAnimationEffectPtrgetEffect () 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::ViewgetView () 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
 
SfxBroadcasterGetBroadcasterJOE (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

CustomAnimationPanemrPane
 
CustomAnimationEffectPtr mpEffect
 
::basegfx::B2DPolyPolygon mxPolyPoly
 
css::uno::Reference< css::drawing::XShape > mxOrigin
 
rtl::Reference< SdrPathObjmpPathObj
 
css::awt::Point maOriginPos
 
std::unique_ptr< SdrMarkmpMark
 
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::ViewmrView
 
bool mbSelected
 

Detailed Description

Base class for all functions.

Definition at line 36 of file motionpathtag.hxx.

Constructor & Destructor Documentation

◆ MotionPathTag()

sd::MotionPathTag::MotionPathTag ( CustomAnimationPane rPane,
::sd::View rView,
const CustomAnimationEffectPtr pEffect 
)

◆ ~MotionPathTag()

sd::MotionPathTag::~MotionPathTag ( )
overridevirtual

Definition at line 367 of file motionpathtag.cxx.

References DBG_ASSERT, sd::SimpleReferenceComponent::Dispose(), and mpPathObj.

Member Function Documentation

◆ acquire()

void SAL_CALL sd::MotionPathTag::acquire ( )
overridevirtualnoexcept

Definition at line 1185 of file motionpathtag.cxx.

References sd::SimpleReferenceComponent::acquire().

◆ addCustomHandles()

void sd::MotionPathTag::addCustomHandles ( SdrHdlList rHandlerList)
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().

◆ changesOccurred()

void SAL_CALL sd::MotionPathTag::changesOccurred ( const css::util::ChangesEvent &  Event)
overridevirtual

◆ CheckPossibilities()

void sd::MotionPathTag::CheckPossibilities ( )
overridevirtual

◆ DeleteMarkedPoints()

void sd::MotionPathTag::DeleteMarkedPoints ( )
overridevirtual

◆ deselect()

void sd::MotionPathTag::deselect ( )
overrideprivatevirtual

◆ disposing() [1/2]

void sd::MotionPathTag::disposing ( )
overrideprivatevirtual

◆ disposing() [2/2]

virtual void SAL_CALL sd::MotionPathTag::disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ getContext()

bool sd::MotionPathTag::getContext ( SdrViewContext rContext)
overrideprivatevirtual

◆ getEffect()

const CustomAnimationEffectPtr & sd::MotionPathTag::getEffect ( ) const
inline

Definition at line 57 of file motionpathtag.hxx.

References mpEffect.

◆ GetMarkablePointCount()

sal_Int32 sd::MotionPathTag::GetMarkablePointCount ( ) const
overridevirtual

Reimplemented from sd::SmartTag.

Definition at line 760 of file motionpathtag.cxx.

References sd::SmartTag::isSelected(), and mpPathObj.

◆ GetMarkedObjectsClosedState()

SdrObjClosedKind sd::MotionPathTag::GetMarkedObjectsClosedState ( ) const
overridevirtual

Definition at line 1147 of file motionpathtag.cxx.

◆ GetMarkedPointCount()

sal_Int32 sd::MotionPathTag::GetMarkedPointCount ( ) const
overridevirtual

◆ GetMarkedPointsSmooth()

SdrPathSmoothKind sd::MotionPathTag::GetMarkedPointsSmooth ( ) const
overridevirtual

◆ GetMarkedSegmentsKind()

SdrPathSegmentKind sd::MotionPathTag::GetMarkedSegmentsKind ( ) const
overridevirtual

◆ getPathObj()

SdrPathObj * sd::MotionPathTag::getPathObj ( ) const
inline

Definition at line 42 of file motionpathtag.hxx.

References mpPathObj.

◆ IsDeleteMarkedPointsPossible()

bool sd::MotionPathTag::IsDeleteMarkedPointsPossible ( ) const
overridevirtual

Definition at line 1044 of file motionpathtag.cxx.

References GetMarkedPointCount(), sd::SmartTag::isSelected(), and mpPathObj.

Referenced by DeleteMarkedPoints().

◆ IsOpenCloseMarkedObjectsPossible()

bool sd::MotionPathTag::IsOpenCloseMarkedObjectsPossible ( ) const
overridevirtual

Definition at line 1141 of file motionpathtag.cxx.

◆ IsRipUpAtMarkedPointsPossible()

bool sd::MotionPathTag::IsRipUpAtMarkedPointsPossible ( ) const
overridevirtual

Definition at line 1054 of file motionpathtag.cxx.

◆ IsSetMarkedPointsSmoothPossible()

bool sd::MotionPathTag::IsSetMarkedPointsSmoothPossible ( ) const
overridevirtual

◆ IsSetMarkedSegmentsKindPossible()

bool sd::MotionPathTag::IsSetMarkedSegmentsKindPossible ( ) const
overridevirtual

◆ KeyInput()

bool sd::MotionPathTag::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ MarkPoint()

bool sd::MotionPathTag::MarkPoint ( SdrHdl rHdl,
bool  bUnmark 
)
overridevirtual

◆ MarkPoints()

bool sd::MotionPathTag::MarkPoints ( const ::tools::Rectangle pRect,
bool  bUnmark 
)
overridevirtual

◆ MouseButtonDown()

bool sd::MotionPathTag::MouseButtonDown ( const MouseEvent rMEvt,
SmartHdl rHdl 
)
overridevirtual

◆ MovePath()

void sd::MotionPathTag::MovePath ( int  nDX,
int  nDY 
)

Definition at line 416 of file motionpathtag.cxx.

References mpPathObj, sd::SmartTag::mrView, and sd::View::updateHandles().

Referenced by OnMove().

◆ Notify()

void sd::MotionPathTag::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

◆ OnDelete()

bool sd::MotionPathTag::OnDelete ( )

Definition at line 589 of file motionpathtag.cxx.

References mpEffect, mrPane, and sd::CustomAnimationPane::remove().

Referenced by KeyInput().

◆ OnMarkHandle()

bool sd::MotionPathTag::OnMarkHandle ( const KeyEvent rKEvt)

◆ OnMove()

bool sd::MotionPathTag::OnMove ( const KeyEvent rKEvt)

◆ OnTabHandles()

bool sd::MotionPathTag::OnTabHandles ( const KeyEvent rKEvt)

◆ queryInterface()

Any SAL_CALL sd::MotionPathTag::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 1173 of file motionpathtag.cxx.

References Any.

◆ release()

void SAL_CALL sd::MotionPathTag::release ( )
overridevirtualnoexcept

Definition at line 1190 of file motionpathtag.cxx.

References sd::SimpleReferenceComponent::release().

◆ RipUpAtMarkedPoints()

void sd::MotionPathTag::RipUpAtMarkedPoints ( )
overridevirtual

Definition at line 1049 of file motionpathtag.cxx.

◆ selectionChanged()

void sd::MotionPathTag::selectionChanged ( )
private

◆ SetMarkedPointsSmooth()

void sd::MotionPathTag::SetMarkedPointsSmooth ( SdrPathSmoothKind  eKind)
overridevirtual

◆ SetMarkedSegmentsKind()

void sd::MotionPathTag::SetMarkedSegmentsKind ( SdrPathSegmentKind  eKind)
overridevirtual

◆ updatePathAttributes()

void sd::MotionPathTag::updatePathAttributes ( )
private

Member Data Documentation

◆ maOriginPos

css::awt::Point sd::MotionPathTag::maOriginPos
private

Definition at line 106 of file motionpathtag.hxx.

Referenced by addCustomHandles(), and MotionPathTag().

◆ mbInUpdatePath

bool sd::MotionPathTag::mbInUpdatePath
private

Definition at line 109 of file motionpathtag.hxx.

Referenced by changesOccurred(), and Notify().

◆ mpEffect

CustomAnimationEffectPtr sd::MotionPathTag::mpEffect
private

◆ mpMark

std::unique_ptr<SdrMark> sd::MotionPathTag::mpMark
private

◆ mpPathObj

rtl::Reference<SdrPathObj> sd::MotionPathTag::mpPathObj
private

◆ mrPane

CustomAnimationPane& sd::MotionPathTag::mrPane
private

Definition at line 101 of file motionpathtag.hxx.

Referenced by Notify(), and OnDelete().

◆ msLastPath

OUString sd::MotionPathTag::msLastPath
private

Definition at line 108 of file motionpathtag.hxx.

Referenced by changesOccurred(), and Notify().

◆ mxOrigin

css::uno::Reference< css::drawing::XShape > sd::MotionPathTag::mxOrigin
private

Definition at line 104 of file motionpathtag.hxx.

Referenced by addCustomHandles(), and MotionPathTag().

◆ mxPolyPoly

::basegfx::B2DPolyPolygon sd::MotionPathTag::mxPolyPoly
private

Definition at line 103 of file motionpathtag.hxx.

Referenced by addCustomHandles(), MotionPathTag(), Notify(), and updatePathAttributes().


The documentation for this class was generated from the following files: