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

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_Int32 SAL_CALL getAccessibleChildCount () override
 ===== XAccessibleContext ============================================== More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 nIndex) override
 Return the specified child or NULL if index is invalid. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > 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_Int32 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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual sal_Int32 SAL_CALL getForeground () override
 ===== XAccessibleComponent ============================================ More...
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Int32 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::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 (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, const sal_Int16 aRole)
 
bool isShowing ()
 
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::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 css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 Return a reference to the parent. 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::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 sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 Return whether the specified service is supported by this class. 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 cppu::WeakAggComponentImplHelper5< class, class, class, class, class >
 WeakAggComponentImplHelper5 (::osl::Mutex &rMutex)
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
- 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::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::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
 

Static Public Member Functions

static rtl::Reference< ScAccessibleCellcreate (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScTabViewShell *pViewShell, const ScAddress &rCellAddress, sal_Int32 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
 
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 >
 ~ImplHelper1 ()
 
- 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_Int32 nIndex, ScSplitPos eSplitPos, ScAccessibleDocument *pAccDoc)
 
virtual void Init () override
 
virtual void SAL_CALL disposing () override
 
bool IsDefunc (const css::uno::Reference< css::accessibility::XAccessibleStateSet > &rxParentStates)
 
virtual bool IsEditable (const css::uno::Reference< css::accessibility::XAccessibleStateSet > &rxParentStates) override
 
bool IsOpaque () 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_Int32 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

This base class provides an implementation of the AccessibleCell service.

Definition at line 44 of file AccessibleCell.hxx.

Constructor & Destructor Documentation

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

Definition at line 65 of file AccessibleCell.cxx.

References ScTabViewShell::AddAccessibilityObject().

Referenced by create().

ScAccessibleCell::~ScAccessibleCell ( )
overrideprotectedvirtual

Definition at line 83 of file AccessibleCell.cxx.

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

Member Function Documentation

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

Referenced by FillDependents(), and FillPrecedents().

void ScAccessibleCell::AddRelation ( const ScRange rRange,
const sal_uInt16  aRelationType,
::utl::AccessibleRelationSetHelper pRelationSet 
)
private
rtl::Reference< ScAccessibleCell > ScAccessibleCell::create ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScTabViewShell pViewShell,
const ScAddress rCellAddress,
sal_Int32  nIndex,
ScSplitPos  eSplitPos,
ScAccessibleDocument pAccDoc 
)
static

Definition at line 51 of file AccessibleCell.cxx.

References ScAccessibleCell(), and x.

Referenced by ScAccessibleSpreadsheet::GetAccessibleCellAt().

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

Definition at line 373 of file AccessibleCell.cxx.

References IsFormulaMode().

void SAL_CALL ScAccessibleCell::disposing ( )
overrideprivatevirtual
void ScAccessibleCell::FillDependents ( utl::AccessibleRelationSetHelper pRelationSet)
private
void ScAccessibleCell::FillPrecedents ( utl::AccessibleRelationSetHelper pRelationSet)
private
uno::Reference< XAccessible > SAL_CALL ScAccessibleCell::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual

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

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

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 127 of file AccessibleCell.cxx.

uno::Reference< XAccessible > SAL_CALL ScAccessibleCell::getAccessibleChild ( sal_Int32  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 213 of file AccessibleCell.cxx.

sal_Int32 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 207 of file AccessibleCell.cxx.

uno::Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCell::getAccessibleRelationSet ( )
overridevirtual
uno::Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCell::getAccessibleStateSet ( )
overridevirtual
tools::Rectangle ScAccessibleCell::GetBoundingBox ( ) const
overrideprotectedvirtual
tools::Rectangle ScAccessibleCell::GetBoundingBoxOnScreen ( ) const
overrideprotectedvirtual
uno::Sequence< beans::PropertyValue > SAL_CALL ScAccessibleCell::getCharacterAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual
ScDocument * ScAccessibleCell::GetDocument ( ScTabViewShell mpViewShell)
staticprivate

Definition at line 365 of file AccessibleCell.cxx.

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

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

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

Returns an identifier for the implementation of this object.

Reimplemented from ScAccessibleCellBase.

Definition at line 290 of file AccessibleCell.cxx.

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

Returns a list of all supported services.

Reimplemented from ScAccessibleContextBase.

Definition at line 296 of file AccessibleCell.cxx.

References ScAccessibleContextBase::getSupportedServiceNames().

void SAL_CALL ScAccessibleCell::grabFocus ( )
overridevirtual
void ScAccessibleCell::Init ( void  )
overrideprivatevirtual
bool ScAccessibleCell::IsDefunc ( const css::uno::Reference< css::accessibility::XAccessibleStateSet > &  rxParentStates)
private
bool ScAccessibleCell::IsDropdown ( ) const
private
bool ScAccessibleCell::IsEditable ( const css::uno::Reference< css::accessibility::XAccessibleStateSet > &  rxParentStates)
overrideprivatevirtual
bool ScAccessibleCell::IsFormulaMode ( )
private
bool ScAccessibleCell::IsOpaque ( ) const
private
bool ScAccessibleCell::IsSelected ( )
private

Member Data Documentation

ScSplitPos ScAccessibleCell::meSplitPos
private

Definition at line 142 of file AccessibleCell.hxx.

Referenced by GetBoundingBox(), and GetBoundingBoxOnScreen().

ScAccessibleDocument* ScAccessibleCell::mpAccDoc
private

Definition at line 140 of file AccessibleCell.hxx.

Referenced by disposing(), and getAccessibleRelationSet().

ScTabViewShell* ScAccessibleCell::mpViewShell
private

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