120 maSet.insert( xTag );
132 std::set< SmartTagReference >::iterator aIter(
maSet.find( xTag ) );
133 if( aIter !=
maSet.end() )
134 maSet.erase( aIter );
146 std::set< SmartTagReference > aSet;
148 for(
auto& rxItem : aSet )
198 if(pSmartHdl && pSmartHdl->
getTag().is() )
201 return xTag->MouseButtonDown( rMEvt, *pSmartHdl );
238 if(pSmartHdl && pSmartHdl->
getTag().is() )
241 return xTag->Command( rCEvt );
257 for(
auto& rxItem :
maSet )
258 rxItem->addCustomHandles( rHandlerList );
321, mxSmartTag(
std::move( xTag ))
328, mxSmartTag(
std::move( xTag ))
const Point & GetMousePosPixel() const
bool IsMouseEvent() const
const vcl::KeyCode & GetKeyCode() const
const Point & GetPosPixel() const
SdrHdl * GetFocusHdl() const
void SetObj(SdrObject *pNewObj)
SdrHdl * PickHandle(const Point &rPnt) const
const SdrHdlList & GetHdlList() const
size_t GetMarkedObjectCount() const
void UnmarkAllObj(SdrPageView const *pPV=nullptr)
a derivation from this handle is the visual representation for a smart tag.
SmartHdl(SmartTagReference xTag, SdrObject *pObject, const Point &rPnt, SdrHdlKind eNewKind)
const SmartTagReference & getTag() const
virtual void addCustomHandles(SdrHdlList &rHandlerList)
virtual bool KeyInput(const KeyEvent &rKEvt)
returns true if the SmartTag consumes this event.
virtual bool getContext(SdrViewContext &rContext)
virtual bool Command(const CommandEvent &rCEvt)
returns true if the SmartTag consumes this event.
virtual void disposing() override
virtual void CheckPossibilities()
SmartTag(::sd::View &rView)
virtual bool MouseButtonDown(const MouseEvent &, SmartHdl &)
returns true if the SmartTag consumes this event.
virtual bool MarkPoint(SdrHdl &rHdl, bool bUnmark)
virtual sal_Int32 GetMarkedPointCount() const
virtual bool MarkPoints(const ::tools::Rectangle *pRect, bool bUnmark)
virtual ~SmartTag() override
virtual sal_Int32 GetMarkablePointCount() const
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
void SetPossibilitiesDirty()
ViewShell * GetViewShell() const
SmartTagSet & getSmartTags()
sal_uInt16 GetCode() const
Point PixelToLogic(const Point &rDevicePt) const
EmbeddedObjectRef * pObject
constexpr sal_uInt16 KEY_SPACE