LibreOffice Module sd (master) 1
|
class to administrate the available smart tags for a single view. More...
#include <smarttag.hxx>
Public Member Functions | |
SmartTagSet (::sd::View &rView) | |
~SmartTagSet () | |
void | select (const SmartTagReference &xTag) |
selects the given smart tag and updates all handles More... | |
void | deselect () |
deselects the current selected smart tag and updates all handles More... | |
const SmartTagReference & | getSelected () const |
returns the currently selected tag or an empty reference. More... | |
bool | MouseButtonDown (const MouseEvent &) |
returns true if a SmartTag consumes this event. More... | |
bool | KeyInput (const KeyEvent &rKEvt) |
returns true if a SmartTag consumes this event. More... | |
bool | Command (const CommandEvent &rCEvt) |
returns true if a SmartTag consumes this event. More... | |
void | Dispose () |
disposes all smart tags and clears the set More... | |
void | addCustomHandles (SdrHdlList &rHandlerList) |
adds the handles from all smart tags to the given list More... | |
bool | getContext (SdrViewContext &rContext) const |
returns true if the currently selected smart tag has a special context, returned in rContext. More... | |
bool | HasMarkablePoints () const |
sal_uLong | GetMarkablePointCount () const |
bool | HasMarkedPoints () const |
sal_uLong | GetMarkedPointCount () const |
bool | MarkPoint (SdrHdl &rHdl, bool bUnmark) |
bool | MarkPoints (const ::tools::Rectangle *pRect, bool bUnmark) |
void | CheckPossibilities () |
Private Member Functions | |
SmartTagSet (const SmartTagSet &)=delete | |
SmartTagSet & | operator= (const SmartTagSet &)=delete |
void | add (const SmartTagReference &xTag) |
adds a new smart tag to this set More... | |
void | remove (const SmartTagReference &xTag) |
removes the given smart tag from this set More... | |
Private Attributes | |
std::set< SmartTagReference > | maSet |
::sd::View & | mrView |
SmartTagReference | mxSelectedTag |
SmartTagReference | mxMouseOverTag |
Friends | |
class | SmartTag |
class to administrate the available smart tags for a single view.
Definition at line 90 of file smarttag.hxx.
|
explicit |
sd::SmartTagSet::~SmartTagSet | ( | ) |
Definition at line 114 of file smarttag.cxx.
|
privatedelete |
|
private |
adds a new smart tag to this set
Definition at line 118 of file smarttag.cxx.
References SdrPaintView::InvalidateAllWin(), maSet, mrView, mxMouseOverTag, and mxSelectedTag.
Referenced by sd::SmartTag::SmartTag().
void sd::SmartTagSet::addCustomHandles | ( | SdrHdlList & | rHandlerList | ) |
adds the handles from all smart tags to the given list
Definition at line 255 of file smarttag.cxx.
References maSet.
Referenced by sd::View::AddCustomHdl().
void sd::SmartTagSet::CheckPossibilities | ( | ) |
Definition at line 313 of file smarttag.cxx.
References mxSelectedTag.
Referenced by sd::View::CheckPossibilities().
bool sd::SmartTagSet::Command | ( | const CommandEvent & | rCEvt | ) |
returns true if a SmartTag consumes this event.
returns true if the SmartTag consumes this event.
Definition at line 227 of file smarttag.cxx.
References sd::ViewShell::GetActiveWindow(), CommandEvent::GetMousePosPixel(), sd::SmartHdl::getTag(), sd::View::GetViewShell(), CommandEvent::IsMouseEvent(), mrView, mxSelectedTag, SdrMarkView::PickHandle(), and vcl::Window::PixelToLogic().
Referenced by sd::ViewShell::Command().
void sd::SmartTagSet::deselect | ( | ) |
deselects the current selected smart tag and updates all handles
Definition at line 172 of file smarttag.cxx.
References mrView, mxSelectedTag, sd::View::SetPossibilitiesDirty(), and sd::View::updateHandles().
Referenced by sd::MotionPathTag::KeyInput(), sd::AnnotationTag::KeyInput(), sd::View::MarkListHasChanged(), and MouseButtonDown().
void sd::SmartTagSet::Dispose | ( | ) |
disposes all smart tags and clears the set
Definition at line 144 of file smarttag.cxx.
References SdrPaintView::InvalidateAllWin(), maSet, mrView, mxMouseOverTag, and mxSelectedTag.
Referenced by sd::View::~View().
bool sd::SmartTagSet::getContext | ( | SdrViewContext & | rContext | ) | const |
returns true if the currently selected smart tag has a special context, returned in rContext.
Definition at line 263 of file smarttag.cxx.
References mxSelectedTag.
Referenced by sd::View::GetContext().
sal_uLong sd::SmartTagSet::GetMarkablePointCount | ( | ) | const |
Definition at line 278 of file smarttag.cxx.
References mxSelectedTag.
Referenced by sd::View::GetMarkablePointCount(), and HasMarkablePoints().
sal_uLong sd::SmartTagSet::GetMarkedPointCount | ( | ) | const |
Definition at line 290 of file smarttag.cxx.
References mxSelectedTag.
Referenced by HasMarkedPoints().
|
inline |
returns the currently selected tag or an empty reference.
Definition at line 105 of file smarttag.hxx.
References mxSelectedTag.
Referenced by sd::BezierObjectBar::Execute(), and sd::BezierObjectBar::GetAttrState().
bool sd::SmartTagSet::HasMarkablePoints | ( | ) | const |
Definition at line 273 of file smarttag.cxx.
References GetMarkablePointCount().
Referenced by sd::View::HasMarkablePoints().
bool sd::SmartTagSet::HasMarkedPoints | ( | ) | const |
Definition at line 285 of file smarttag.cxx.
References GetMarkedPointCount().
Referenced by sd::View::HasMarkedPoints().
bool sd::SmartTagSet::KeyInput | ( | const KeyEvent & | rKEvt | ) |
returns true if a SmartTag consumes this event.
Definition at line 207 of file smarttag.cxx.
References vcl::KeyCode::GetCode(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), sd::SmartHdl::getTag(), KEY_SPACE, mrView, mxSelectedTag, and select().
Referenced by sd::ViewShell::KeyInput().
bool sd::SmartTagSet::MarkPoint | ( | SdrHdl & | rHdl, |
bool | bUnmark | ||
) |
Definition at line 298 of file smarttag.cxx.
References mxSelectedTag.
Referenced by sd::View::MarkPoint().
bool sd::SmartTagSet::MarkPoints | ( | const ::tools::Rectangle * | pRect, |
bool | bUnmark | ||
) |
Definition at line 306 of file smarttag.cxx.
References mxSelectedTag.
Referenced by sd::View::MarkPoints().
bool sd::SmartTagSet::MouseButtonDown | ( | const MouseEvent & | rMEvt | ) |
returns true if a SmartTag consumes this event.
Definition at line 183 of file smarttag.cxx.
References deselect(), sd::ViewShell::GetActiveWindow(), MouseEvent::GetPosPixel(), sd::SmartHdl::getTag(), sd::View::GetViewShell(), mrView, mxSelectedTag, SdrMarkView::PickHandle(), and vcl::Window::PixelToLogic().
Referenced by sd::ViewShell::MouseButtonDown().
|
privatedelete |
|
private |
removes the given smart tag from this set
Definition at line 130 of file smarttag.cxx.
References SdrPaintView::InvalidateAllWin(), maSet, mrView, mxMouseOverTag, and mxSelectedTag.
Referenced by sd::SmartTag::disposing().
void sd::SmartTagSet::select | ( | const SmartTagReference & | xTag | ) |
selects the given smart tag and updates all handles
Definition at line 155 of file smarttag.cxx.
References SdrMarkView::GetMarkedObjectCount(), mrView, mxSelectedTag, sd::View::SetPossibilitiesDirty(), SdrMarkView::UnmarkAllObj(), and sd::View::updateHandles().
Referenced by KeyInput(), sd::MotionPathTag::MouseButtonDown(), and sd::AnnotationTag::MouseButtonDown().
|
friend |
Definition at line 92 of file smarttag.hxx.
|
private |
Definition at line 146 of file smarttag.hxx.
Referenced by add(), addCustomHandles(), Dispose(), and remove().
|
private |
Definition at line 148 of file smarttag.hxx.
Referenced by add(), Command(), deselect(), Dispose(), KeyInput(), MouseButtonDown(), remove(), and select().
|
private |
Definition at line 150 of file smarttag.hxx.
|
private |
Definition at line 149 of file smarttag.hxx.
Referenced by add(), CheckPossibilities(), Command(), deselect(), Dispose(), getContext(), GetMarkablePointCount(), GetMarkedPointCount(), getSelected(), KeyInput(), MarkPoint(), MarkPoints(), MouseButtonDown(), remove(), and select().