LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
sd::SmartTagSet Class Reference

class to administrate the available smart tags for a single view. More...

#include <smarttag.hxx>

Collaboration diagram for sd::SmartTagSet:
[legend]

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 SmartTagReferencegetSelected () 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
 
SmartTagSetoperator= (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< SmartTagReferencemaSet
 
::sd::ViewmrView
 
SmartTagReference mxSelectedTag
 
SmartTagReference mxMouseOverTag
 

Friends

class SmartTag
 

Detailed Description

class to administrate the available smart tags for a single view.

Definition at line 90 of file smarttag.hxx.

Constructor & Destructor Documentation

◆ SmartTagSet() [1/2]

sd::SmartTagSet::SmartTagSet ( ::sd::View rView)
explicit

◆ ~SmartTagSet()

sd::SmartTagSet::~SmartTagSet ( )

Definition at line 114 of file smarttag.cxx.

◆ SmartTagSet() [2/2]

sd::SmartTagSet::SmartTagSet ( const SmartTagSet )
privatedelete

Member Function Documentation

◆ add()

void sd::SmartTagSet::add ( const SmartTagReference xTag)
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().

◆ addCustomHandles()

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().

◆ CheckPossibilities()

void sd::SmartTagSet::CheckPossibilities ( )

Definition at line 313 of file smarttag.cxx.

References mxSelectedTag.

Referenced by sd::View::CheckPossibilities().

◆ Command()

bool sd::SmartTagSet::Command ( const CommandEvent rCEvt)

◆ deselect()

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().

◆ Dispose()

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().

◆ getContext()

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().

◆ GetMarkablePointCount()

sal_uLong sd::SmartTagSet::GetMarkablePointCount ( ) const

Definition at line 278 of file smarttag.cxx.

References mxSelectedTag.

Referenced by sd::View::GetMarkablePointCount(), and HasMarkablePoints().

◆ GetMarkedPointCount()

sal_uLong sd::SmartTagSet::GetMarkedPointCount ( ) const

Definition at line 290 of file smarttag.cxx.

References mxSelectedTag.

Referenced by HasMarkedPoints().

◆ getSelected()

const SmartTagReference & sd::SmartTagSet::getSelected ( ) const
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().

◆ HasMarkablePoints()

bool sd::SmartTagSet::HasMarkablePoints ( ) const

Definition at line 273 of file smarttag.cxx.

References GetMarkablePointCount().

Referenced by sd::View::HasMarkablePoints().

◆ HasMarkedPoints()

bool sd::SmartTagSet::HasMarkedPoints ( ) const

Definition at line 285 of file smarttag.cxx.

References GetMarkedPointCount().

Referenced by sd::View::HasMarkedPoints().

◆ KeyInput()

bool sd::SmartTagSet::KeyInput ( const KeyEvent rKEvt)

◆ MarkPoint()

bool sd::SmartTagSet::MarkPoint ( SdrHdl rHdl,
bool  bUnmark 
)

Definition at line 298 of file smarttag.cxx.

References mxSelectedTag.

Referenced by sd::View::MarkPoint().

◆ MarkPoints()

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().

◆ MouseButtonDown()

bool sd::SmartTagSet::MouseButtonDown ( const MouseEvent rMEvt)

◆ operator=()

SmartTagSet & sd::SmartTagSet::operator= ( const SmartTagSet )
privatedelete

◆ remove()

void sd::SmartTagSet::remove ( const SmartTagReference xTag)
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().

◆ select()

void sd::SmartTagSet::select ( const SmartTagReference xTag)

Friends And Related Function Documentation

◆ SmartTag

friend class SmartTag
friend

Definition at line 92 of file smarttag.hxx.

Member Data Documentation

◆ maSet

std::set<SmartTagReference> sd::SmartTagSet::maSet
private

Definition at line 146 of file smarttag.hxx.

Referenced by add(), addCustomHandles(), Dispose(), and remove().

◆ mrView

::sd::View& sd::SmartTagSet::mrView
private

Definition at line 148 of file smarttag.hxx.

Referenced by add(), Command(), deselect(), Dispose(), KeyInput(), MouseButtonDown(), remove(), and select().

◆ mxMouseOverTag

SmartTagReference sd::SmartTagSet::mxMouseOverTag
private

Definition at line 150 of file smarttag.hxx.

Referenced by add(), Dispose(), and remove().

◆ mxSelectedTag

SmartTagReference sd::SmartTagSet::mxSelectedTag
private

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