LibreOffice Module sc (master) 1
|
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::AccessibleControlShape * | GetAccControlShapeFromModel (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) |
SdrPage * | GetDrawPage () const |
rtl::Reference< utl::AccessibleRelationSetHelper > | GetRelationSet (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 |
SfxBroadcaster * | GetBroadcasterJOE (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 AccessibleControlShape * | GetAccControlShapeFromModel (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< ScAddress > | GetAnchor (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 |
ScTabViewShell * | mpViewShell |
ScAccessibleDocument * | mpAccessibleDocument |
ScSplitPos | meSplitPos |
Definition at line 200 of file AccessibleDocument.cxx.
|
private |
Definition at line 253 of file AccessibleDocument.cxx.
|
private |
Definition at line 252 of file AccessibleDocument.cxx.
ScChildrenShapes::ScChildrenShapes | ( | ScAccessibleDocument * | pAccessibleDocument, |
ScTabViewShell * | pViewShell, | ||
ScSplitPos | eSplitPos | ||
) |
Definition at line 281 of file AccessibleDocument.cxx.
References FindSelectedShapesChanges(), SfxFrame::GetController(), GetCount(), ScViewData::GetDocument(), ScDocument::GetDrawBroadcaster(), ScDocument::GetDrawLayer(), SfxViewFrame::GetFrame(), ScViewData::GetScDrawView(), ScTabViewShell::getSelectedXShapes(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), ScTabView::GetWindowByPos(), maShapeTreeInfo, maZOrderedShapes, meSplitPos, mnShapesSelected, mpAccessibleDocument, mpViewShell, SfxListener::StartListening(), and xSelectionSupplier.
|
overridevirtual |
Definition at line 333 of file AccessibleDocument.cxx.
References SfxListener::EndListening(), ScViewData::GetDocument(), ScDocument::GetDrawBroadcaster(), ScTabView::GetViewData(), maZOrderedShapes, mpAccessibleDocument, mpViewShell, and xSelectionSupplier.
|
private |
Definition at line 1175 of file AccessibleDocument.cxx.
References aEvent, ScAccessibleContextBase::CommitChange(), Get(), ScTabViewShell::getSelectedXShapes(), maShapesMap, maZOrderedShapes, mbShapesNeedSorting, mpAccessibleDocument, mpViewShell, SC_LAYER_HIDDEN(), SC_LAYER_INTERN(), SetAnchor(), and xSelectionSupplier.
Referenced by GetCount(), and Notify().
|
staticprivate |
Definition at line 1295 of file AccessibleDocument.cxx.
Referenced by FindSelectedShapesChanges().
void ScChildrenShapes::Deselect | ( | sal_Int32 | nChildIndex | ) |
Definition at line 843 of file AccessibleDocument.cxx.
References ScTabViewShell::getSelectedXShapes(), IsSelected(), maZOrderedShapes, mpViewShell, and xSelectionSupplier.
void ScChildrenShapes::DeselectAll | ( | ) |
Definition at line 709 of file AccessibleDocument.cxx.
References maZOrderedShapes, and xSelectionSupplier.
|
private |
Definition at line 771 of file AccessibleDocument.cxx.
References ScTabViewShell::getSelectedXShapes(), i, mpViewShell, and nCount.
Referenced by GetSelected(), and GetSelectedCount().
|
private |
Definition at line 908 of file AccessibleDocument.cxx.
References aEvent, ScAccessibleContextBase::CommitChange(), Compare(), GetAccessibleCaption(), accessibility::AccessibleShape::getAccessibleChild(), accessibility::AccessibleShape::getAccessibleChildCount(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::getParentSdrObjectFromSdrObject(), ScViewData::GetScDrawView(), SdrObject::getSdrObjectFromXShape(), SdrObject::getUnoShape(), ScTabView::GetViewData(), ScTabView::GetWindowByPos(), accessibility::AccessibleShape::GetXShape(), vcl::Window::HasFocus(), i, maZOrderedShapes, meSplitPos, mnShapesSelected, mpAccessibleDocument, mpViewShell, nCount, accessibility::AccessibleShape::ResetState(), and accessibility::AccessibleShape::SetState().
Referenced by ScChildrenShapes(), and SelectionChanged().
|
private |
Definition at line 1273 of file AccessibleDocument.cxx.
References maZOrderedShapes, and mbShapesNeedSorting.
Referenced by GetSelected(), and RemoveShape().
uno::Reference< XAccessible > ScChildrenShapes::Get | ( | const ScAccessibleShapeData * | pData | ) | const |
Definition at line 515 of file AccessibleDocument.cxx.
References accessibility::ShapeTypeHandler::CreateAccessibleObject(), GetRelationSet(), accessibility::ShapeTypeHandler::Instance(), maShapeTreeInfo, mpAccessibleDocument, and pData.
Referenced by AddShape(), Get(), GetAt(), GetRelationSet(), GetSelected(), and RemoveShape().
uno::Reference< XAccessible > ScChildrenShapes::Get | ( | sal_Int32 | nIndex | ) | const |
Definition at line 539 of file AccessibleDocument.cxx.
References Get(), GetCount(), o3tl::make_unsigned(), maZOrderedShapes, mbShapesNeedSorting, and nIndex.
|
overridevirtual |
Reimplemented from accessibility::IAccessibleParent.
Definition at line 462 of file AccessibleDocument.cxx.
References accessibility::AccessibleControlShape::GetControlModel(), GetCount(), accessibility::ShapeTypeHandler::GetTypeId(), accessibility::ShapeTypeHandler::Instance(), and maZOrderedShapes.
|
overridevirtual |
Reimplemented from accessibility::IAccessibleParent.
Definition at line 482 of file AccessibleDocument.cxx.
References GetCount(), and maShapesMap.
Referenced by FindSelectedShapesChanges().
|
private |
Definition at line 1116 of file AccessibleDocument.cxx.
References ScDrawLayer::GetObjData(), SdrObject::getSdrObjectFromXShape(), and mpViewShell.
Referenced by SetAnchor().
uno::Reference< XAccessible > ScChildrenShapes::GetAt | ( | const awt::Point & | rPoint | ) | const |
Definition at line 556 of file AccessibleDocument.cxx.
References AWTPoint(), Get(), i, maZOrderedShapes, mbShapesNeedSorting, mpViewShell, tools::Rectangle::TopLeft(), VCLPoint(), and VCLRectangle().
sal_Int32 ScChildrenShapes::GetCount | ( | ) | const |
Definition at line 495 of file AccessibleDocument.cxx.
References AddShape(), GetDrawPage(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrObject::getUnoShape(), i, and maZOrderedShapes.
Referenced by Get(), GetAccControlShapeFromModel(), GetAccessibleCaption(), GetSelected(), IsSelected(), ScChildrenShapes(), Select(), and SelectAll().
SdrPage * ScChildrenShapes::GetDrawPage | ( | ) | const |
Definition at line 870 of file AccessibleDocument.cxx.
References ScViewData::GetDocument(), ScDocument::GetDrawLayer(), ScTabView::GetViewData(), ScAccessibleDocument::getVisibleTable(), mpAccessibleDocument, and mpViewShell.
Referenced by GetCount(), and Notify().
|
private |
Definition at line 1132 of file AccessibleDocument.cxx.
References ScAccessibleDocument::GetAccessibleSpreadsheet(), mpAccessibleDocument, and pData.
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().
uno::Reference< XAccessible > ScChildrenShapes::GetSelected | ( | sal_Int32 | nSelectedChildIndex, |
bool | bTabSelected | ||
) | const |
Definition at line 798 of file AccessibleDocument.cxx.
References FillShapes(), FindShape(), Get(), GetCount(), o3tl::make_unsigned(), maZOrderedShapes, and mbShapesNeedSorting.
sal_Int32 ScChildrenShapes::GetSelectedCount | ( | ) | const |
Definition at line 787 of file AccessibleDocument.cxx.
References FillShapes(), and xSelectionSupplier.
bool ScChildrenShapes::IsSelected | ( | sal_Int32 | nIndex, |
css::uno::Reference< css::drawing::XShape > & | rShape | ||
) | const |
Definition at line 601 of file AccessibleDocument.cxx.
References GetCount(), ScTabViewShell::getSelectedXShapes(), i, maZOrderedShapes, mbShapesNeedSorting, mpViewShell, nCount, nIndex, and xSelectionSupplier.
Referenced by Deselect(), and Select().
|
overridevirtual |
===== SfxListener =====================================================
Reimplemented from SfxListener.
Definition at line 366 of file AccessibleDocument.cxx.
References AddShape(), GetDrawPage(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), SdrObject::getParentSdrObjListFromSdrObject(), SdrObject::getSdrPageFromSdrObject(), SdrObject::getUnoShape(), maShapesMap, mbShapesNeedSorting, RemoveShape(), and SetAnchor().
|
private |
Definition at line 1234 of file AccessibleDocument.cxx.
References aEvent, ScAccessibleContextBase::CommitChange(), FindShape(), Get(), maShapesMap, maZOrderedShapes, mbShapesNeedSorting, and mpAccessibleDocument.
Referenced by Notify().
|
overridevirtual |
===== IAccessibleParent ===============================================
Definition at line 413 of file AccessibleDocument.cxx.
References aEvent, ScAccessibleContextBase::CommitChange(), accessibility::AccessibleShape::GetXShape(), accessibility::ShapeTypeHandler::Instance(), maShapesMap, and mpAccessibleDocument.
void ScChildrenShapes::Select | ( | sal_Int32 | nIndex | ) |
Definition at line 668 of file AccessibleDocument.cxx.
References GetCount(), comphelper::getProcessComponentContext(), ScTabViewShell::getSelectedXShapes(), IsSelected(), maZOrderedShapes, mbShapesNeedSorting, mpViewShell, nIndex, and xSelectionSupplier.
void ScChildrenShapes::SelectAll | ( | ) |
Definition at line 736 of file AccessibleDocument.cxx.
References GetCount(), comphelper::getProcessComponentContext(), maZOrderedShapes, SelectionChanged(), and xSelectionSupplier.
bool ScChildrenShapes::SelectionChanged | ( | ) |
Definition at line 655 of file AccessibleDocument.cxx.
References FindSelectedShapesChanges(), ScTabViewShell::getSelectedXShapes(), mpViewShell, and xSelectionSupplier.
Referenced by SelectAll().
|
private |
Definition at line 1160 of file AccessibleDocument.cxx.
References GetAnchor(), GetRelationSet(), and pData.
Referenced by AddShape(), and Notify().
void ScChildrenShapes::SetDrawBroadcaster | ( | ) |
===== Internal ========================================================
Definition at line 347 of file AccessibleDocument.cxx.
References ScViewData::GetDocument(), ScDocument::GetDrawBroadcaster(), ScDocument::GetDrawLayer(), ScViewData::GetScDrawView(), ScTabView::GetViewData(), ScTabView::GetWindowByPos(), maShapeTreeInfo, meSplitPos, mpAccessibleDocument, mpViewShell, and SfxListener::StartListening().
void ScChildrenShapes::VisAreaChanged | ( | ) | const |
Definition at line 1312 of file AccessibleDocument.cxx.
References maZOrderedShapes.
|
mutableprivate |
Definition at line 256 of file AccessibleDocument.cxx.
Referenced by AddShape(), GetAccessibleCaption(), Notify(), RemoveShape(), and ReplaceChild().
|
private |
Definition at line 259 of file AccessibleDocument.cxx.
Referenced by Get(), ScChildrenShapes(), and SetDrawBroadcaster().
|
mutableprivate |
Definition at line 255 of file AccessibleDocument.cxx.
Referenced by AddShape(), Deselect(), DeselectAll(), FindSelectedShapesChanges(), FindShape(), Get(), GetAccControlShapeFromModel(), GetAt(), GetCount(), GetRelationSet(), GetSelected(), IsSelected(), RemoveShape(), ScChildrenShapes(), Select(), SelectAll(), VisAreaChanged(), and ~ScChildrenShapes().
|
mutableprivate |
Definition at line 257 of file AccessibleDocument.cxx.
Referenced by AddShape(), FindShape(), Get(), GetAt(), GetSelected(), IsSelected(), Notify(), RemoveShape(), and Select().
|
private |
Definition at line 264 of file AccessibleDocument.cxx.
Referenced by FindSelectedShapesChanges(), ScChildrenShapes(), and SetDrawBroadcaster().
|
mutableprivate |
Definition at line 261 of file AccessibleDocument.cxx.
Referenced by FindSelectedShapesChanges(), and ScChildrenShapes().
|
private |
Definition at line 263 of file AccessibleDocument.cxx.
Referenced by AddShape(), FindSelectedShapesChanges(), Get(), GetDrawPage(), GetRelationSet(), RemoveShape(), ReplaceChild(), ScChildrenShapes(), SetDrawBroadcaster(), and ~ScChildrenShapes().
|
private |
Definition at line 262 of file AccessibleDocument.cxx.
Referenced by AddShape(), Deselect(), FillShapes(), FindSelectedShapesChanges(), GetAnchor(), GetAt(), GetDrawPage(), IsSelected(), ScChildrenShapes(), Select(), SelectionChanged(), SetDrawBroadcaster(), and ~ScChildrenShapes().
|
mutableprivate |
Definition at line 260 of file AccessibleDocument.cxx.
Referenced by AddShape(), Deselect(), DeselectAll(), GetSelectedCount(), IsSelected(), ScChildrenShapes(), Select(), SelectAll(), SelectionChanged(), and ~ScChildrenShapes().