LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScChildrenShapes Class Reference
Inheritance diagram for ScChildrenShapes:
[legend]
Collaboration diagram for ScChildrenShapes:
[legend]

Public Member Functions

 ScChildrenShapes (ScAccessibleDocument *pAccessibleDocument, ScTabViewShell *pViewShell, ScSplitPos eSplitPos)
 
virtual ~ScChildrenShapes () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 ===== SfxListener ===================================================== More...
 
virtual bool ReplaceChild (::accessibility::AccessibleShape *pCurrentChild, const css::uno::Reference< css::drawing::XShape > &_rxShape, const tools::Long _nIndex, const ::accessibility::AccessibleShapeTreeInfo &_rShapeTreeInfo) override
 ===== IAccessibleParent =============================================== More...
 
virtual ::accessibility::AccessibleControlShapeGetAccControlShapeFromModel (css::beans::XPropertySet *pSet) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessibleCaption (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
void SetDrawBroadcaster ()
 ===== Internal ======================================================== More...
 
sal_Int32 GetCount () const
 
uno::Reference< XAccessible > Get (const ScAccessibleShapeData *pData) const
 
uno::Reference< XAccessible > Get (sal_Int32 nIndex) const
 
uno::Reference< XAccessible > GetAt (const awt::Point &rPoint) const
 
bool IsSelected (sal_Int32 nIndex, css::uno::Reference< css::drawing::XShape > &rShape) const
 
bool SelectionChanged ()
 
void Select (sal_Int32 nIndex)
 
void DeselectAll ()
 
void SelectAll ()
 
sal_Int32 GetSelectedCount () const
 
uno::Reference< XAccessible > GetSelected (sal_Int32 nSelectedChildIndex, bool bTabSelected) const
 
void Deselect (sal_Int32 nChildIndex)
 
SdrPageGetDrawPage () const
 
rtl::Reference< utl::AccessibleRelationSetHelperGetRelationSet (const ScAddress *pAddress) const
 
void VisAreaChanged () 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
 
- Public Member Functions inherited from accessibility::IAccessibleParent
virtual ~IAccessibleParent ()
 
virtual bool ReplaceChild (AccessibleShape *pCurrentChild, const css::uno::Reference< css::drawing::XShape > &_rxShape, const tools::Long _nIndex, const AccessibleShapeTreeInfo &_rShapeTreeInfo)=0
 
virtual AccessibleControlShapeGetAccControlShapeFromModel (css::beans::XPropertySet *)
 
virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessibleCaption (const css::uno::Reference< css::drawing::XShape > &)
 
virtual bool IsDocumentSelAll ()
 

Private Types

typedef std::vector< ScAccessibleShapeData * > SortedShapes
 
typedef std::unordered_map< css::uno::Reference< css::drawing::XShape >, ScAccessibleShapeData * > ShapesMap
 

Private Member Functions

void FillShapes (std::vector< uno::Reference< drawing::XShape > > &rShapes) const
 
bool FindSelectedShapesChanges (const css::uno::Reference< css::drawing::XShapes > &xShapes) const
 
std::optional< ScAddressGetAnchor (const uno::Reference< drawing::XShape > &xShape) const
 
uno::Reference< XAccessibleRelationSet > GetRelationSet (const ScAccessibleShapeData *pData) const
 
void SetAnchor (const uno::Reference< drawing::XShape > &xShape, ScAccessibleShapeData *pData) const
 
void AddShape (const uno::Reference< drawing::XShape > &xShape, bool bCommitChange) const
 
void RemoveShape (const uno::Reference< drawing::XShape > &xShape) const
 
bool FindShape (const uno::Reference< drawing::XShape > &xShape, SortedShapes::iterator &rItr) const
 

Static Private Member Functions

static sal_Int8 Compare (const ScAccessibleShapeData *pData1, const ScAccessibleShapeData *pData2)
 

Private Attributes

SortedShapes maZOrderedShapes
 
ShapesMap maShapesMap
 
bool mbShapesNeedSorting
 
mutable::accessibility::AccessibleShapeTreeInfo maShapeTreeInfo
 
css::uno::Reference< css::view::XSelectionSupplier > xSelectionSupplier
 
sal_uInt32 mnShapesSelected
 
ScTabViewShellmpViewShell
 
ScAccessibleDocumentmpAccessibleDocument
 
ScSplitPos meSplitPos
 

Detailed Description

Definition at line 200 of file AccessibleDocument.cxx.

Member Typedef Documentation

◆ ShapesMap

typedef std::unordered_map<css::uno::Reference< css::drawing::XShape >, ScAccessibleShapeData*> ScChildrenShapes::ShapesMap
private

Definition at line 253 of file AccessibleDocument.cxx.

◆ SortedShapes

typedef std::vector<ScAccessibleShapeData*> ScChildrenShapes::SortedShapes
private

Definition at line 252 of file AccessibleDocument.cxx.

Constructor & Destructor Documentation

◆ ScChildrenShapes()

ScChildrenShapes::ScChildrenShapes ( ScAccessibleDocument pAccessibleDocument,
ScTabViewShell pViewShell,
ScSplitPos  eSplitPos 
)

◆ ~ScChildrenShapes()

ScChildrenShapes::~ScChildrenShapes ( )
overridevirtual

Member Function Documentation

◆ AddShape()

void ScChildrenShapes::AddShape ( const uno::Reference< drawing::XShape > &  xShape,
bool  bCommitChange 
) const
private

◆ Compare()

sal_Int8 ScChildrenShapes::Compare ( const ScAccessibleShapeData *  pData1,
const ScAccessibleShapeData *  pData2 
)
staticprivate

Definition at line 1295 of file AccessibleDocument.cxx.

Referenced by FindSelectedShapesChanges().

◆ Deselect()

void ScChildrenShapes::Deselect ( sal_Int32  nChildIndex)

◆ DeselectAll()

void ScChildrenShapes::DeselectAll ( )

Definition at line 709 of file AccessibleDocument.cxx.

References maZOrderedShapes, and xSelectionSupplier.

◆ FillShapes()

void ScChildrenShapes::FillShapes ( std::vector< uno::Reference< drawing::XShape > > &  rShapes) const
private

Definition at line 771 of file AccessibleDocument.cxx.

References ScTabViewShell::getSelectedXShapes(), i, mpViewShell, and nCount.

Referenced by GetSelected(), and GetSelectedCount().

◆ FindSelectedShapesChanges()

bool ScChildrenShapes::FindSelectedShapesChanges ( const css::uno::Reference< css::drawing::XShapes > &  xShapes) const
private

◆ FindShape()

bool ScChildrenShapes::FindShape ( const uno::Reference< drawing::XShape > &  xShape,
SortedShapes::iterator &  rItr 
) const
private

Definition at line 1273 of file AccessibleDocument.cxx.

References maZOrderedShapes, and mbShapesNeedSorting.

Referenced by GetSelected(), and RemoveShape().

◆ Get() [1/2]

uno::Reference< XAccessible > ScChildrenShapes::Get ( const ScAccessibleShapeData *  pData) const

◆ Get() [2/2]

uno::Reference< XAccessible > ScChildrenShapes::Get ( sal_Int32  nIndex) const

◆ GetAccControlShapeFromModel()

accessibility::AccessibleControlShape * ScChildrenShapes::GetAccControlShapeFromModel ( css::beans::XPropertySet pSet)
overridevirtual

◆ GetAccessibleCaption()

css::uno::Reference< css::accessibility::XAccessible > ScChildrenShapes::GetAccessibleCaption ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

Reimplemented from accessibility::IAccessibleParent.

Definition at line 482 of file AccessibleDocument.cxx.

References GetCount(), and maShapesMap.

Referenced by FindSelectedShapesChanges().

◆ GetAnchor()

std::optional< ScAddress > ScChildrenShapes::GetAnchor ( const uno::Reference< drawing::XShape > &  xShape) const
private

◆ GetAt()

uno::Reference< XAccessible > ScChildrenShapes::GetAt ( const awt::Point &  rPoint) const

◆ GetCount()

sal_Int32 ScChildrenShapes::GetCount ( ) const

◆ GetDrawPage()

SdrPage * ScChildrenShapes::GetDrawPage ( ) const

◆ GetRelationSet() [1/2]

uno::Reference< XAccessibleRelationSet > ScChildrenShapes::GetRelationSet ( const ScAccessibleShapeData *  pData) const
private

◆ GetRelationSet() [2/2]

rtl::Reference< utl::AccessibleRelationSetHelper > ScChildrenShapes::GetRelationSet ( const ScAddress pAddress) const

Definition at line 886 of file AccessibleDocument.cxx.

References Get(), and maZOrderedShapes.

Referenced by Get(), and SetAnchor().

◆ GetSelected()

uno::Reference< XAccessible > ScChildrenShapes::GetSelected ( sal_Int32  nSelectedChildIndex,
bool  bTabSelected 
) const

◆ GetSelectedCount()

sal_Int32 ScChildrenShapes::GetSelectedCount ( ) const

Definition at line 787 of file AccessibleDocument.cxx.

References FillShapes(), and xSelectionSupplier.

◆ IsSelected()

bool ScChildrenShapes::IsSelected ( sal_Int32  nIndex,
css::uno::Reference< css::drawing::XShape > &  rShape 
) const

◆ Notify()

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

◆ RemoveShape()

void ScChildrenShapes::RemoveShape ( const uno::Reference< drawing::XShape > &  xShape) const
private

◆ ReplaceChild()

bool ScChildrenShapes::ReplaceChild ( ::accessibility::AccessibleShape pCurrentChild,
const css::uno::Reference< css::drawing::XShape > &  _rxShape,
const tools::Long  _nIndex,
const ::accessibility::AccessibleShapeTreeInfo _rShapeTreeInfo 
)
overridevirtual

===== IAccessibleParent ===============================================

Definition at line 413 of file AccessibleDocument.cxx.

References aEvent, ScAccessibleContextBase::CommitChange(), accessibility::AccessibleShape::GetXShape(), accessibility::ShapeTypeHandler::Instance(), maShapesMap, and mpAccessibleDocument.

◆ Select()

void ScChildrenShapes::Select ( sal_Int32  nIndex)

◆ SelectAll()

void ScChildrenShapes::SelectAll ( )

◆ SelectionChanged()

bool ScChildrenShapes::SelectionChanged ( )

◆ SetAnchor()

void ScChildrenShapes::SetAnchor ( const uno::Reference< drawing::XShape > &  xShape,
ScAccessibleShapeData *  pData 
) const
private

Definition at line 1160 of file AccessibleDocument.cxx.

References GetAnchor(), GetRelationSet(), and pData.

Referenced by AddShape(), and Notify().

◆ SetDrawBroadcaster()

void ScChildrenShapes::SetDrawBroadcaster ( )

◆ VisAreaChanged()

void ScChildrenShapes::VisAreaChanged ( ) const

Definition at line 1312 of file AccessibleDocument.cxx.

References maZOrderedShapes.

Member Data Documentation

◆ maShapesMap

ShapesMap ScChildrenShapes::maShapesMap
mutableprivate

◆ maShapeTreeInfo

mutable::accessibility::AccessibleShapeTreeInfo ScChildrenShapes::maShapeTreeInfo
private

Definition at line 259 of file AccessibleDocument.cxx.

Referenced by Get(), ScChildrenShapes(), and SetDrawBroadcaster().

◆ maZOrderedShapes

SortedShapes ScChildrenShapes::maZOrderedShapes
mutableprivate

◆ mbShapesNeedSorting

bool ScChildrenShapes::mbShapesNeedSorting
mutableprivate

◆ meSplitPos

ScSplitPos ScChildrenShapes::meSplitPos
private

◆ mnShapesSelected

sal_uInt32 ScChildrenShapes::mnShapesSelected
mutableprivate

Definition at line 261 of file AccessibleDocument.cxx.

Referenced by FindSelectedShapesChanges(), and ScChildrenShapes().

◆ mpAccessibleDocument

ScAccessibleDocument* ScChildrenShapes::mpAccessibleDocument
private

◆ mpViewShell

ScTabViewShell* ScChildrenShapes::mpViewShell
private

◆ xSelectionSupplier

css::uno::Reference<css::view::XSelectionSupplier> ScChildrenShapes::xSelectionSupplier
mutableprivate

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