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 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
 
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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
- Public Member Functions inherited from accessibility::IAccessibleParent
virtual ~IAccessibleParent ()
 
virtual bool ReplaceChild (AccessibleShape *pCurrentChild, const css::uno::Reference< css::drawing::XShape > &_rxShape, const long _nIndex, const AccessibleShapeTreeInfo &_rShapeTreeInfo)=0
 
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
 
size_t mnSdrObjCount
 
sal_uInt32 mnShapesSelected
 
ScTabViewShellmpViewShell
 
ScAccessibleDocumentmpAccessibleDocument
 
ScSplitPos meSplitPos
 

Detailed Description

Definition at line 202 of file AccessibleDocument.cxx.

Member Typedef Documentation

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

Definition at line 255 of file AccessibleDocument.cxx.

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

Definition at line 254 of file AccessibleDocument.cxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void ScChildrenShapes::AddShape ( const uno::Reference< drawing::XShape > &  xShape,
bool  bCommitChange 
) const
private
sal_Int8 ScChildrenShapes::Compare ( const ScAccessibleShapeData *  pData1,
const ScAccessibleShapeData *  pData2 
)
staticprivate

Definition at line 1301 of file AccessibleDocument.cxx.

Referenced by FindSelectedShapesChanges().

void ScChildrenShapes::Deselect ( sal_Int32  nChildIndex)
void ScChildrenShapes::DeselectAll ( )

Definition at line 710 of file AccessibleDocument.cxx.

References maZOrderedShapes, and xSelectionSupplier.

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

Definition at line 772 of file AccessibleDocument.cxx.

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

Referenced by GetSelected(), and GetSelectedCount().

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

Definition at line 1279 of file AccessibleDocument.cxx.

References maZOrderedShapes, and mbShapesNeedSorting.

Referenced by GetSelected(), and RemoveShape().

uno::Reference< XAccessible > ScChildrenShapes::Get ( const ScAccessibleShapeData *  pData) const
uno::Reference< XAccessible > ScChildrenShapes::Get ( sal_Int32  nIndex) const
accessibility::AccessibleControlShape * ScChildrenShapes::GetAccControlShapeFromModel ( css::beans::XPropertySet pSet)
overridevirtual
css::uno::Reference< css::accessibility::XAccessible > ScChildrenShapes::GetAccessibleCaption ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

Reimplemented from accessibility::IAccessibleParent.

Definition at line 483 of file AccessibleDocument.cxx.

References GetCount(), and maShapesMap.

Referenced by FindSelectedShapesChanges().

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

Definition at line 1120 of file AccessibleDocument.cxx.

References ScDrawLayer::GetObjData(), SvxShape::GetSdrObject(), and mpViewShell.

Referenced by SetAnchor().

uno::Reference< XAccessible > ScChildrenShapes::GetAt ( const awt::Point &  rPoint) const
sal_Int32 ScChildrenShapes::GetCount ( ) const
SdrPage * ScChildrenShapes::GetDrawPage ( ) const
utl::AccessibleRelationSetHelper * ScChildrenShapes::GetRelationSet ( const ScAddress pAddress) const

Definition at line 888 of file AccessibleDocument.cxx.

References utl::AccessibleRelationSetHelper::AddRelation(), Get(), and maZOrderedShapes.

Referenced by Get(), and SetAnchor().

uno::Reference< XAccessibleRelationSet > ScChildrenShapes::GetRelationSet ( const ScAccessibleShapeData *  pData) const
private
uno::Reference< XAccessible > ScChildrenShapes::GetSelected ( sal_Int32  nSelectedChildIndex,
bool  bTabSelected 
) const
sal_Int32 ScChildrenShapes::GetSelectedCount ( ) const

Definition at line 788 of file AccessibleDocument.cxx.

References FillShapes(), and xSelectionSupplier.

bool ScChildrenShapes::IsSelected ( sal_Int32  nIndex,
css::uno::Reference< css::drawing::XShape > &  rShape 
) const
void ScChildrenShapes::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual
void ScChildrenShapes::RemoveShape ( const uno::Reference< drawing::XShape > &  xShape) const
private
bool ScChildrenShapes::ReplaceChild ( ::accessibility::AccessibleShape pCurrentChild,
const css::uno::Reference< css::drawing::XShape > &  _rxShape,
const long  _nIndex,
const ::accessibility::AccessibleShapeTreeInfo _rShapeTreeInfo 
)
overridevirtual

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

Definition at line 419 of file AccessibleDocument.cxx.

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

void ScChildrenShapes::Select ( sal_Int32  nIndex)
void ScChildrenShapes::SelectAll ( )
bool ScChildrenShapes::SelectionChanged ( )
void ScChildrenShapes::SetAnchor ( const uno::Reference< drawing::XShape > &  xShape,
ScAccessibleShapeData *  pData 
) const
private

Definition at line 1168 of file AccessibleDocument.cxx.

References GetAnchor(), and GetRelationSet().

Referenced by AddShape(), and Notify().

void ScChildrenShapes::SetDrawBroadcaster ( )
void ScChildrenShapes::VisAreaChanged ( ) const

Definition at line 1318 of file AccessibleDocument.cxx.

References maZOrderedShapes.

Member Data Documentation

ShapesMap ScChildrenShapes::maShapesMap
mutableprivate
mutable ::accessibility::AccessibleShapeTreeInfo ScChildrenShapes::maShapeTreeInfo
private

Definition at line 261 of file AccessibleDocument.cxx.

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

SortedShapes ScChildrenShapes::maZOrderedShapes
mutableprivate
bool ScChildrenShapes::mbShapesNeedSorting
mutableprivate
ScSplitPos ScChildrenShapes::meSplitPos
private
size_t ScChildrenShapes::mnSdrObjCount
mutableprivate

Definition at line 263 of file AccessibleDocument.cxx.

Referenced by GetCount().

sal_uInt32 ScChildrenShapes::mnShapesSelected
mutableprivate

Definition at line 264 of file AccessibleDocument.cxx.

Referenced by FindSelectedShapesChanges(), and ScChildrenShapes().

ScAccessibleDocument* ScChildrenShapes::mpAccessibleDocument
private
ScTabViewShell* ScChildrenShapes::mpViewShell
private
css::uno::Reference<css::view::XSelectionSupplier> ScChildrenShapes::xSelectionSupplier
mutableprivate

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