LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScAccessibleCell Class Reference

@descr This base class provides an implementation of the AccessibleCell service. More...

#include <AccessibleCell.hxx>

Inheritance diagram for ScAccessibleCell:
[legend]
Collaboration diagram for ScAccessibleCell:
[legend]

Public Member Functions

virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &rPoint) override
 ===== XInterface ===================================================== More...
 
virtual void SAL_CALL grabFocus () override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 ===== XAccessibleContext ============================================== More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 Return the specified child or NULL if index is invalid. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 Return the set of current states. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Return NULL to indicate that an empty relation set. More...
 
virtual OUString SAL_CALL getImplementationName () override
 ===== XServiceInfo ==================================================== More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 Returns a list of all supported services. More...
 
virtual css::uno::Any SAL_CALL getExtendedAttributes () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
- Public Member Functions inherited from ScAccessibleCellBase
 ScAccessibleCellBase (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScDocument *pDoc, const ScAddress &rCellAddress, sal_Int64 nIndex)
 
virtual bool isVisible () override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 ===== XInterface ===================================================== More...
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual sal_Int32 SAL_CALL getForeground () override
 ===== XAccessibleComponent ============================================ More...
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 ===== XAccessibleContext ============================================== More...
 
virtual css::uno::Any SAL_CALL getCurrentValue () override
 ===== XAccessibleValue ================================================ More...
 
virtual sal_Bool SAL_CALL setCurrentValue (const css::uno::Any &aNumber) override
 
virtual css::uno::Any SAL_CALL getMaximumValue () override
 
virtual css::uno::Any SAL_CALL getMinimumValue () override
 
virtual css::uno::Any SAL_CALL getMinimumIncrement () override
 
virtual OUString SAL_CALL getImplementationName () override
 ===== XServiceInfo ==================================================== More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 ===== XTypeProvider =================================================== More...
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 Returns an implementation id. More...
 
const ScAddressGetCellAddress () const
 
- Public Member Functions inherited from ScAccessibleContextBase
 ScAccessibleContextBase (css::uno::Reference< css::accessibility::XAccessible > xParent, const sal_Int16 aRole)
 
virtual void Init ()
 
virtual void SAL_CALL disposing () override
 
bool isShowing ()
 
virtual bool isVisible ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 ===== SfxListener ===================================================== More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 ===== XAccessible ===================================================== More...
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &rPoint) override
 ===== XAccessibleComponent ============================================ More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &rPoint) override
 
virtual css::awt::Rectangle SAL_CALL getBounds () override
 
virtual css::awt::Point SAL_CALL getLocation () override
 
virtual css::awt::Point SAL_CALL getLocationOnScreen () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual void SAL_CALL grabFocus () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 ===== XAccessibleContext ============================================== More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 Return the specified child or NULL if index is invalid. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 Return a reference to the parent. More...
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 Return this objects index among the parents children. More...
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 Return this object's role. More...
 
virtual OUString SAL_CALL getAccessibleDescription () override
 Return this object's description. More...
 
virtual OUString SAL_CALL getAccessibleName () override
 Return the object's current name. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Return NULL to indicate that an empty relation set. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 Return the set of current states. More...
 
virtual css::lang::Locale SAL_CALL getLocale () override
 Return the parents locale or throw exception if this object has no parent yet/anymore. More...
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 ===== XAccessibleEventBroadcaster ===================================== More...
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 ===== XAccessibleEventListener ======================================== More...
 
virtual void SAL_CALL notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override
 
virtual OUString SAL_CALL getImplementationName () override
 ===== XServiceInfo ==================================================== More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 Return whether the specified service is supported by this class. More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 Returns a list of all supported services. More...
 
void CommitChange (const css::accessibility::AccessibleEventObject &rEvent) const
 Calls all Listener to tell they the change. More...
 
void SetName (const OUString &rName)
 Use this method to set initial Name without notification. More...
 
void SetDescription (const OUString &rDesc)
 Use this method to set initial Description without notification. More...
 
void SetParent (const css::uno::Reference< css::accessibility::XAccessible > &rParent)
 
- 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
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from accessibility::AccessibleStaticTextBase
 AccessibleStaticTextBase (::std::unique_ptr< SvxEditSource > &&pEditSource)
 
virtual ~AccessibleStaticTextBase ()
 
void SetEditSource (::std::unique_ptr< SvxEditSource > &&pEditSource)
 
void SetEventSource (const css::uno::Reference< css::accessibility::XAccessible > &rInterface)
 
void SetOffset (const Point &rPoint)
 
void Dispose ()
 
virtual sal_Int32 SAL_CALL getCaretPosition () override
 
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex) override
 
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex) override
 
virtual sal_Int32 SAL_CALL getCharacterCount () override
 
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point &aPoint) override
 
virtual OUString SAL_CALL getSelectedText () override
 
virtual sal_Int32 SAL_CALL getSelectionStart () override
 
virtual sal_Int32 SAL_CALL getSelectionEnd () override
 
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual OUString SAL_CALL getText () override
 
virtual OUString SAL_CALL getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual sal_Bool SAL_CALL copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual sal_Bool SAL_CALL scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes (const css::uno::Sequence< OUString > &RequestedAttributes) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes (sal_Int32 Index, const css::uno::Sequence< OUString > &RequestedAttributes) override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount ()
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i)
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint)
 

Static Public Member Functions

static rtl::Reference< ScAccessibleCellcreate (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScTabViewShell *pViewShell, const ScAddress &rCellAddress, sal_Int64 nIndex, ScSplitPos eSplitPos, ScAccessibleDocument *pAccDoc)
 

Protected Member Functions

virtual ~ScAccessibleCell () override
 
virtual tools::Rectangle GetBoundingBoxOnScreen () const override
 Return the object's current bounding box relative to the desktop. More...
 
virtual tools::Rectangle GetBoundingBox () const override
 Return the object's current bounding box relative to the parent object. More...
 
- Protected Member Functions inherited from ScAccessibleCellBase
virtual ~ScAccessibleCellBase () override
 
virtual OUString createAccessibleDescription () override
 Return this object's description. More...
 
virtual OUString createAccessibleName () override
 Return the object's current name. More...
 
OUString GetNote () const
 
OUString GetAllDisplayNote () const
 
OUString getShadowAttrs () const
 
OUString getBorderAttrs ()
 
- Protected Member Functions inherited from ScAccessibleContextBase
virtual ~ScAccessibleContextBase () override
 
virtual OUString createAccessibleDescription ()
 Return this object's description. More...
 
virtual OUString createAccessibleName ()
 Return the object's current name. More...
 
virtual tools::Rectangle GetBoundingBoxOnScreen () const
 Return the object's current bounding box relative to the desktop. More...
 
virtual tools::Rectangle GetBoundingBox () const
 Return the object's current bounding box relative to the parent object. More...
 
void CommitFocusGained () const
 Calls all FocusListener to tell they that the focus is gained. More...
 
void CommitFocusLost () const
 Calls all FocusListener to tell they that the focus is lost. More...
 
bool IsDefunc () const
 
void IsObjectValid () const
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from accessibility::AccessibleStaticTextBase
tools::Rectangle GetParagraphBoundingBox () const
 

Private Member Functions

 ScAccessibleCell (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScTabViewShell *pViewShell, const ScAddress &rCellAddress, sal_Int64 nIndex, ScSplitPos eSplitPos, ScAccessibleDocument *pAccDoc)
 
virtual void Init () override
 
virtual void SAL_CALL disposing () override
 
bool IsDefunc (sal_Int64 nParentStates)
 
virtual bool IsEditable (sal_Int64 nParentStates) override
 
bool IsOpaque () const
 
bool IsFocused () const
 
bool IsSelected ()
 
::std::unique_ptr< SvxEditSourceCreateEditSource (ScTabViewShell *pViewShell, ScAddress aCell, ScSplitPos eSplitPos)
 
void FillDependents (utl::AccessibleRelationSetHelper *pRelationSet)
 
void FillPrecedents (utl::AccessibleRelationSetHelper *pRelationSet)
 
void AddRelation (const ScAddress &rCell, const sal_uInt16 aRelationType, ::utl::AccessibleRelationSetHelper *pRelationSet)
 
void AddRelation (const ScRange &rRange, const sal_uInt16 aRelationType, ::utl::AccessibleRelationSetHelper *pRelationSet)
 
bool IsFormulaMode ()
 
bool IsDropdown () const
 

Static Private Member Functions

static ScDocumentGetDocument (ScTabViewShell *mpViewShell)
 

Private Attributes

ScTabViewShellmpViewShell
 
ScAccessibleDocumentmpAccDoc
 
ScSplitPos meSplitPos
 

Additional Inherited Members

- Protected Attributes inherited from ScAccessibleCellBase
ScAddress maCellAddress
 
ScDocumentmpDoc
 
sal_Int64 mnIndex
 
- Protected Attributes inherited from ScAccessibleContextBase
css::uno::Reference< css::accessibility::XAccessible > mxParent
 Reference to the parent object. More...
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

@descr This base class provides an implementation of the AccessibleCell service.

Definition at line 43 of file AccessibleCell.hxx.

Constructor & Destructor Documentation

◆ ScAccessibleCell()

ScAccessibleCell::ScAccessibleCell ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScTabViewShell pViewShell,
const ScAddress rCellAddress,
sal_Int64  nIndex,
ScSplitPos  eSplitPos,
ScAccessibleDocument pAccDoc 
)
private

Definition at line 66 of file AccessibleCell.cxx.

References ScTabViewShell::AddAccessibilityObject(), and nIndex.

Referenced by create().

◆ ~ScAccessibleCell()

ScAccessibleCell::~ScAccessibleCell ( )
overrideprotectedvirtual

Definition at line 84 of file AccessibleCell.cxx.

References dispose(), ScAccessibleContextBase::IsDefunc(), and m_refCount.

Member Function Documentation

◆ AddRelation() [1/2]

void ScAccessibleCell::AddRelation ( const ScAddress rCell,
const sal_uInt16  aRelationType,
::utl::AccessibleRelationSetHelper pRelationSet 
)
private

Referenced by FillDependents(), and FillPrecedents().

◆ AddRelation() [2/2]

void ScAccessibleCell::AddRelation ( const ScRange rRange,
const sal_uInt16  aRelationType,
::utl::AccessibleRelationSetHelper pRelationSet 
)
private

◆ create()

rtl::Reference< ScAccessibleCell > ScAccessibleCell::create ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScTabViewShell pViewShell,
const ScAddress rCellAddress,
sal_Int64  nIndex,
ScSplitPos  eSplitPos,
ScAccessibleDocument pAccDoc 
)
static

Definition at line 52 of file AccessibleCell.cxx.

References nIndex, ScAccessibleCell(), and x.

Referenced by ScAccessibleSpreadsheet::GetAccessibleCellAt().

◆ CreateEditSource()

std::unique_ptr< SvxEditSource > ScAccessibleCell::CreateEditSource ( ScTabViewShell pViewShell,
ScAddress  aCell,
ScSplitPos  eSplitPos 
)
private

Definition at line 385 of file AccessibleCell.cxx.

References IsFormulaMode().

◆ disposing()

void SAL_CALL ScAccessibleCell::disposing ( )
overrideprivatevirtual

◆ FillDependents()

void ScAccessibleCell::FillDependents ( utl::AccessibleRelationSetHelper pRelationSet)
private

◆ FillPrecedents()

void ScAccessibleCell::FillPrecedents ( utl::AccessibleRelationSetHelper pRelationSet)
private

◆ getAccessibleAtPoint()

uno::Reference< XAccessible > SAL_CALL ScAccessibleCell::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual

===== XInterface =====================================================

===== XTypeProvider =================================================== ===== XAccessibleComponent ============================================

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 136 of file AccessibleCell.cxx.

◆ getAccessibleChild()

uno::Reference< XAccessible > SAL_CALL ScAccessibleCell::getAccessibleChild ( sal_Int64  nIndex)
overridevirtual

Return the specified child or NULL if index is invalid.

override to calculate this on demand

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 221 of file AccessibleCell.cxx.

References nIndex.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCell::getAccessibleChildCount ( )
overridevirtual

===== XAccessibleContext ==============================================

Return the number of currently visible children. override to calculate this on demand

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 215 of file AccessibleCell.cxx.

◆ getAccessibleRelationSet()

uno::Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCell::getAccessibleRelationSet ( )
overridevirtual

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessibleCell::getAccessibleStateSet ( )
overridevirtual

◆ GetBoundingBox()

tools::Rectangle ScAccessibleCell::GetBoundingBox ( ) const
overrideprotectedvirtual

◆ GetBoundingBoxOnScreen()

tools::Rectangle ScAccessibleCell::GetBoundingBoxOnScreen ( ) const
overrideprotectedvirtual

Return the object's current bounding box relative to the desktop.

Reimplemented from ScAccessibleContextBase.

Definition at line 157 of file AccessibleCell.cxx.

References GetBoundingBox(), ScTabView::GetWindowByPos(), vcl::Window::GetWindowExtentsAbsolute(), tools::Rectangle::Left(), meSplitPos, tools::Rectangle::Move(), mpViewShell, and tools::Rectangle::Top().

◆ getCharacterAttributes()

uno::Sequence< beans::PropertyValue > SAL_CALL ScAccessibleCell::getCharacterAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual

◆ GetDocument()

ScDocument * ScAccessibleCell::GetDocument ( ScTabViewShell mpViewShell)
staticprivate

Definition at line 377 of file AccessibleCell.cxx.

References ScViewData::GetDocument(), and ScTabView::GetViewData().

◆ getExtendedAttributes()

uno::Any SAL_CALL ScAccessibleCell::getExtendedAttributes ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL ScAccessibleCell::getImplementationName ( )
overridevirtual

===== XServiceInfo ====================================================

Returns an identifier for the implementation of this object.

Reimplemented from ScAccessibleCellBase.

Definition at line 301 of file AccessibleCell.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScAccessibleCell::getSupportedServiceNames ( )
overridevirtual

Returns a list of all supported services.

Reimplemented from ScAccessibleContextBase.

Definition at line 307 of file AccessibleCell.cxx.

References comphelper::concatSequences(), and ScAccessibleContextBase::getSupportedServiceNames().

◆ grabFocus()

void SAL_CALL ScAccessibleCell::grabFocus ( )
overridevirtual

◆ Init()

void ScAccessibleCell::Init ( void  )
overrideprivatevirtual

◆ IsDefunc()

bool ScAccessibleCell::IsDefunc ( sal_Int64  nParentStates)
private

◆ IsDropdown()

bool ScAccessibleCell::IsDropdown ( ) const
private

◆ IsEditable()

bool ScAccessibleCell::IsEditable ( sal_Int64  nParentStates)
overrideprivatevirtual

◆ IsFocused()

bool ScAccessibleCell::IsFocused ( ) const
private

◆ IsFormulaMode()

bool ScAccessibleCell::IsFormulaMode ( )
private

◆ IsOpaque()

bool ScAccessibleCell::IsOpaque ( ) const
private

◆ IsSelected()

bool ScAccessibleCell::IsSelected ( )
private

Member Data Documentation

◆ meSplitPos

ScSplitPos ScAccessibleCell::meSplitPos
private

Definition at line 140 of file AccessibleCell.hxx.

Referenced by GetBoundingBox(), and GetBoundingBoxOnScreen().

◆ mpAccDoc

ScAccessibleDocument* ScAccessibleCell::mpAccDoc
private

Definition at line 138 of file AccessibleCell.hxx.

Referenced by disposing(), and getAccessibleRelationSet().

◆ mpViewShell

ScTabViewShell* ScAccessibleCell::mpViewShell
private

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