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

#include <AccessiblePreviewTable.hxx>

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

Public Member Functions

 ScAccessiblePreviewTable (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, sal_Int32 nIndex)
 
virtual void SAL_CALL disposing () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 ===== SfxListener ===================================================== More...
 
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 getAccessibleRowCount () override
 
virtual sal_Int32 SAL_CALL getAccessibleColumnCount () override
 
virtual OUString SAL_CALL getAccessibleRowDescription (sal_Int32 nRow) override
 
virtual OUString SAL_CALL getAccessibleColumnDescription (sal_Int32 nColumn) override
 
virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
 
virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
 
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleRowHeaders () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleColumnHeaders () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleRows () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleColumns () override
 
virtual sal_Bool SAL_CALL isAccessibleRowSelected (sal_Int32 nRow) override
 
virtual sal_Bool SAL_CALL isAccessibleColumnSelected (sal_Int32 nColumn) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCellAt (sal_Int32 nRow, sal_Int32 nColumn) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCaption () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleSummary () override
 
virtual sal_Bool SAL_CALL isAccessibleSelected (sal_Int32 nRow, sal_Int32 nColumn) override
 
virtual sal_Int64 SAL_CALL getAccessibleIndex (sal_Int32 nRow, sal_Int32 nColumn) override
 
virtual sal_Int32 SAL_CALL getAccessibleRow (sal_Int64 nChildIndex) override
 
virtual sal_Int32 SAL_CALL getAccessibleColumn (sal_Int64 nChildIndex) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
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 i) override
 Return the specified child or NULL if index is invalid. More...
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 Return this objects index among the parents children. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 Return the set of current states. 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::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 ===== XAccessibleEventListener ======================================== More...
 
- 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
 

Protected Member Functions

virtual ~ScAccessiblePreviewTable () override
 
virtual OUString createAccessibleDescription () override
 Return this object's description. More...
 
virtual OUString createAccessibleName () override
 Return the object's current name. More...
 
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...
 
bool IsDefunc () const
 
- 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
 

Private Member Functions

bool IsDefunc (sal_Int64 nParentStates)
 
void FillTableInfo () const
 

Private Attributes

ScPreviewShellmpViewShell
 
sal_Int32 mnIndex
 
std::unique_ptr< ScPreviewTableInfompTableInfo
 

Additional Inherited Members

- 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

Definition at line 32 of file AccessiblePreviewTable.hxx.

Constructor & Destructor Documentation

◆ ScAccessiblePreviewTable()

ScAccessiblePreviewTable::ScAccessiblePreviewTable ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScPreviewShell pViewShell,
sal_Int32  nIndex 
)

◆ ~ScAccessiblePreviewTable()

ScAccessiblePreviewTable::~ScAccessiblePreviewTable ( )
overrideprotectedvirtual

Member Function Documentation

◆ acquire()

void SAL_CALL ScAccessiblePreviewTable::acquire ( )
overridevirtualnoexcept

Definition at line 111 of file AccessiblePreviewTable.cxx.

◆ createAccessibleDescription()

OUString ScAccessiblePreviewTable::createAccessibleDescription ( )
overrideprotectedvirtual

Return this object's description.

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 557 of file AccessiblePreviewTable.cxx.

References STR_ACC_TABLE_DESCR.

◆ createAccessibleName()

OUString ScAccessiblePreviewTable::createAccessibleName ( )
overrideprotectedvirtual

Return the object's current name.

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 562 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), ScPreviewShell::GetDocument(), ScDocument::GetName(), mpTableInfo, mpViewShell, ScResId(), and sName.

◆ disposing() [1/3]

void SAL_CALL ScAccessibleContextBase::disposing ( )
overridevirtual

Reimplemented from ScAccessibleContextBase.

Definition at line 63 of file AccessibleContextBase.cxx.

◆ disposing() [2/3]

void SAL_CALL ScAccessiblePreviewTable::disposing ( )
overridevirtual

◆ disposing() [3/3]

virtual void SAL_CALL ScAccessibleContextBase::disposing ( const css::lang::EventObject &  Source)
overridevirtual

===== XAccessibleEventListener ========================================

Reimplemented from ScAccessibleContextBase.

◆ FillTableInfo()

void ScAccessiblePreviewTable::FillTableInfo ( ) const
private

◆ getAccessibleAtPoint()

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

◆ getAccessibleCaption()

uno::Reference< XAccessible > SAL_CALL ScAccessiblePreviewTable::getAccessibleCaption ( )
overridevirtual

missing

Definition at line 321 of file AccessiblePreviewTable.cxx.

◆ getAccessibleCellAt()

uno::Reference< XAccessible > SAL_CALL ScAccessiblePreviewTable::getAccessibleCellAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

◆ getAccessibleChild()

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

Return the specified child or NULL if index is invalid.

Reimplemented from ScAccessibleContextBase.

Definition at line 468 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), getAccessibleCellAt(), ScAccessibleContextBase::IsObjectValid(), mpTableInfo, and nIndex.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessiblePreviewTable::getAccessibleChildCount ( )
overridevirtual

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

Return the number of currently visible children.

Reimplemented from ScAccessibleContextBase.

Definition at line 455 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), ScAccessibleContextBase::IsObjectValid(), and mpTableInfo.

◆ getAccessibleColumn()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleColumn ( sal_Int64  nChildIndex)
overridevirtual

◆ getAccessibleColumnCount()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleColumnCount ( )
overridevirtual

◆ getAccessibleColumnDescription()

OUString SAL_CALL ScAccessiblePreviewTable::getAccessibleColumnDescription ( sal_Int32  nColumn)
overridevirtual

Definition at line 161 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), and mpTableInfo.

◆ getAccessibleColumnExtentAt()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleColumnExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

◆ getAccessibleColumnHeaders()

uno::Reference< XAccessibleTable > SAL_CALL ScAccessiblePreviewTable::getAccessibleColumnHeaders ( )
overridevirtual

missing

Definition at line 239 of file AccessiblePreviewTable.cxx.

◆ getAccessibleIndex()

sal_Int64 SAL_CALL ScAccessiblePreviewTable::getAccessibleIndex ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL ScAccessiblePreviewTable::getAccessibleIndexInParent ( )
overridevirtual

Return this objects index among the parents children.

Reimplemented from ScAccessibleContextBase.

Definition at line 495 of file AccessiblePreviewTable.cxx.

References mnIndex.

◆ getAccessibleRow()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleRow ( sal_Int64  nChildIndex)
overridevirtual

◆ getAccessibleRowCount()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleRowCount ( )
overridevirtual

◆ getAccessibleRowDescription()

OUString SAL_CALL ScAccessiblePreviewTable::getAccessibleRowDescription ( sal_Int32  nRow)
overridevirtual

Definition at line 151 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), and mpTableInfo.

◆ getAccessibleRowExtentAt()

sal_Int32 SAL_CALL ScAccessiblePreviewTable::getAccessibleRowExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

◆ getAccessibleRowHeaders()

uno::Reference< XAccessibleTable > SAL_CALL ScAccessiblePreviewTable::getAccessibleRowHeaders ( )
overridevirtual

missing

Definition at line 233 of file AccessiblePreviewTable.cxx.

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessiblePreviewTable::getAccessibleStateSet ( )
overridevirtual

◆ getAccessibleSummary()

uno::Reference< XAccessible > SAL_CALL ScAccessiblePreviewTable::getAccessibleSummary ( )
overridevirtual

missing

Definition at line 327 of file AccessiblePreviewTable.cxx.

◆ GetBoundingBox()

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

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

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 596 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), and mpTableInfo.

Referenced by getAccessibleAtPoint(), and GetBoundingBoxOnScreen().

◆ GetBoundingBoxOnScreen()

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

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

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 581 of file AccessiblePreviewTable.cxx.

References GetBoundingBox(), SfxViewShell::GetWindow(), vcl::Window::GetWindowExtentsAbsolute(), tools::Rectangle::Left(), tools::Rectangle::Move(), mpViewShell, and tools::Rectangle::Top().

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL ScAccessiblePreviewTable::getImplementationId ( )
overridevirtual

Reimplemented from cppu::ImplHelper1< class Ifc1 >.

Definition at line 550 of file AccessiblePreviewTable.cxx.

◆ getImplementationName()

OUString SAL_CALL ScAccessiblePreviewTable::getImplementationName ( )
overridevirtual

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

Returns an identifier for the implementation of this object.

Reimplemented from ScAccessibleContextBase.

Definition at line 527 of file AccessiblePreviewTable.cxx.

◆ getSelectedAccessibleColumns()

uno::Sequence< sal_Int32 > SAL_CALL ScAccessiblePreviewTable::getSelectedAccessibleColumns ( )
overridevirtual

Definition at line 251 of file AccessiblePreviewTable.cxx.

◆ getSelectedAccessibleRows()

uno::Sequence< sal_Int32 > SAL_CALL ScAccessiblePreviewTable::getSelectedAccessibleRows ( )
overridevirtual

Definition at line 245 of file AccessiblePreviewTable.cxx.

◆ getSupportedServiceNames()

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

Returns a list of all supported services.

In this case that is just the AccessibleContext and Accessible service.

Reimplemented from ScAccessibleContextBase.

Definition at line 532 of file AccessiblePreviewTable.cxx.

References ScAccessibleContextBase::getSupportedServiceNames().

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL ScAccessiblePreviewTable::getTypes ( )
overridevirtual

◆ grabFocus()

void SAL_CALL ScAccessiblePreviewTable::grabFocus ( )
overridevirtual

◆ isAccessibleColumnSelected()

sal_Bool SAL_CALL ScAccessiblePreviewTable::isAccessibleColumnSelected ( sal_Int32  nColumn)
overridevirtual

Definition at line 269 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), and mpTableInfo.

◆ isAccessibleRowSelected()

sal_Bool SAL_CALL ScAccessiblePreviewTable::isAccessibleRowSelected ( sal_Int32  nRow)
overridevirtual

Definition at line 257 of file AccessiblePreviewTable.cxx.

References FillTableInfo(), and mpTableInfo.

◆ isAccessibleSelected()

sal_Bool SAL_CALL ScAccessiblePreviewTable::isAccessibleSelected ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

◆ IsDefunc() [1/2]

bool ScAccessibleContextBase::IsDefunc ( ) const
inlineprotected

Definition at line 233 of file AccessibleContextBase.hxx.

Referenced by getAccessibleStateSet().

◆ IsDefunc() [2/2]

bool ScAccessiblePreviewTable::IsDefunc ( sal_Int64  nParentStates)
private

◆ Notify()

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

===== SfxListener =====================================================

Reimplemented from ScAccessibleContextBase.

Definition at line 83 of file AccessiblePreviewTable.cxx.

References aEvent, ScAccessibleContextBase::CommitChange(), SfxHint::GetId(), mpTableInfo, nId, and ScAccessibleContextBase::Notify().

◆ queryInterface()

uno::Any SAL_CALL ScAccessiblePreviewTable::queryInterface ( css::uno::Type const &  rType)
overridevirtual

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

Reimplemented from cppu::ImplHelper1< class Ifc1 >.

Definition at line 105 of file AccessiblePreviewTable.cxx.

References uno::Any::hasValue(), and cppu::ImplHelper1< class Ifc1 >::queryInterface().

◆ release()

void SAL_CALL ScAccessiblePreviewTable::release ( )
overridevirtualnoexcept

Definition at line 117 of file AccessiblePreviewTable.cxx.

Member Data Documentation

◆ mnIndex

sal_Int32 ScAccessiblePreviewTable::mnIndex
private

Definition at line 124 of file AccessiblePreviewTable.hxx.

Referenced by getAccessibleIndexInParent().

◆ mpTableInfo

std::unique_ptr<ScPreviewTableInfo> ScAccessiblePreviewTable::mpTableInfo
mutableprivate

◆ mpViewShell

ScPreviewShell* ScAccessiblePreviewTable::mpViewShell
private

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