LibreOffice Module sd (master) 1
|
a smart tag represents a visual user interface element on the documents edit view that is not part of the document. More...
#include <smarttag.hxx>
Public Member Functions | |
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 |
Protected Member Functions | |
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 | |
::sd::View & | mrView |
bool | mbSelected |
Private Member Functions | |
SmartTag (const SmartTag &)=delete | |
SmartTag & | operator= (const SmartTag &)=delete |
Friends | |
class | SmartTagSet |
a smart tag represents a visual user interface element on the documents edit view that is not part of the document.
It uses derivations from SmartHdl for its visuals. A SmartTag adds himself to the given view if created. It removes himself if it is disposed before the view is disposed.
Derive from this class to implement your own smart tag.
Definition at line 43 of file smarttag.hxx.
|
explicit |
Definition at line 31 of file smarttag.cxx.
References sd::SmartTagSet::add(), sd::View::getSmartTags(), and mrView.
|
overridevirtual |
Definition at line 39 of file smarttag.cxx.
|
privatedelete |
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 60 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 105 of file smarttag.cxx.
|
virtual |
returns true if the SmartTag consumes this event.
Reimplemented in sd::AnnotationTag.
Definition at line 55 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 69 of file smarttag.cxx.
References mbSelected.
Referenced by sd::MotionPathTag::deselect(), and sd::AnnotationTag::deselect().
|
overrideprotectedvirtual |
Reimplemented from sd::SimpleReferenceComponent.
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 74 of file smarttag.cxx.
References sd::View::getSmartTags(), mrView, and sd::SmartTagSet::remove().
Referenced by sd::MotionPathTag::disposing(), and sd::AnnotationTag::disposing().
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 80 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 85 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 90 of file smarttag.cxx.
|
inline |
Definition at line 63 of file smarttag.hxx.
References mrView.
Referenced by sd::AnnotationTag::OpenPopup().
|
inline |
returns true if this smart tag is currently selected
Definition at line 61 of file smarttag.hxx.
References mbSelected.
Referenced by sd::MotionPathTag::addCustomHandles(), sd::MotionPathTag::CheckPossibilities(), sd::MotionPathTag::getContext(), sd::MotionPathTag::GetMarkablePointCount(), sd::MotionPathTag::IsDeleteMarkedPointsPossible(), sd::MotionPathTag::MarkPoints(), sd::MotionPathTag::MouseButtonDown(), sd::AnnotationTag::MouseButtonDown(), sd::MotionPathTag::SetMarkedPointsSmooth(), and sd::MotionPathTag::SetMarkedSegmentsKind().
|
virtual |
returns true if the SmartTag consumes this event.
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 49 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 95 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 100 of file smarttag.cxx.
|
virtual |
returns true if the SmartTag consumes this event.
Reimplemented in sd::MotionPathTag, and sd::AnnotationTag.
Definition at line 43 of file smarttag.cxx.
|
protectedvirtual |
Reimplemented in sd::AnnotationTag.
Definition at line 64 of file smarttag.cxx.
References mbSelected.
Referenced by sd::AnnotationTag::select().
|
friend |
Definition at line 45 of file smarttag.hxx.
|
protected |
Definition at line 80 of file smarttag.hxx.
Referenced by deselect(), isSelected(), and select().
|
protected |
Definition at line 79 of file smarttag.hxx.
Referenced by sd::MotionPathTag::addCustomHandles(), sd::AnnotationTag::addCustomHandles(), sd::MotionPathTag::changesOccurred(), sd::MotionPathTag::CheckPossibilities(), sd::AnnotationTag::Command(), sd::MotionPathTag::DeleteMarkedPoints(), sd::MotionPathTag::disposing(), disposing(), sd::MotionPathTag::getContext(), sd::MotionPathTag::GetMarkedPointsSmooth(), sd::MotionPathTag::GetMarkedSegmentsKind(), getView(), sd::MotionPathTag::IsSetMarkedPointsSmoothPossible(), sd::MotionPathTag::IsSetMarkedSegmentsKindPossible(), sd::MotionPathTag::KeyInput(), sd::AnnotationTag::KeyInput(), sd::MotionPathTag::MarkPoint(), sd::MotionPathTag::MarkPoints(), sd::MotionPathTag::MotionPathTag(), sd::MotionPathTag::MouseButtonDown(), sd::AnnotationTag::MouseButtonDown(), sd::AnnotationTag::Move(), sd::MotionPathTag::MovePath(), sd::MotionPathTag::OnMarkHandle(), sd::MotionPathTag::OnMove(), sd::AnnotationTag::OnMove(), sd::MotionPathTag::OnTabHandles(), sd::AnnotationTag::OpenPopup(), sd::AnnotationTag::select(), sd::MotionPathTag::selectionChanged(), sd::MotionPathTag::SetMarkedPointsSmooth(), sd::MotionPathTag::SetMarkedSegmentsKind(), and SmartTag().