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

#include <AccessiblePreviewCell.hxx>

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

Public Member Functions

 ScAccessiblePreviewCell (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const ScAddress &rCellAddress, sal_Int32 nIndex)
 
virtual void SAL_CALL disposing () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 ===== SfxListener ===================================================== More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
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 i) 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 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< sal_Int8 > SAL_CALL getImplementationId () override
 ===== XTypeProvider =================================================== More...
 
- 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...
 
const ScAddressGetCellAddress () const
 
- Public Member Functions inherited from ScAccessibleContextBase
 ScAccessibleContextBase (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, const sal_Int16 aRole)
 
virtual void Init ()
 
bool isShowing ()
 
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::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Return NULL to indicate that an empty relation set. 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)
 

Protected Member Functions

virtual ~ScAccessiblePreviewCell () 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 ()
 

Private Member Functions

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
 
void CreateTextHelper ()
 

Private Attributes

ScPreviewShellmpViewShell
 
std::unique_ptr< accessibility::AccessibleTextHelpermpTextHelper
 

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

Definition at line 32 of file AccessiblePreviewCell.hxx.

Constructor & Destructor Documentation

ScAccessiblePreviewCell::ScAccessiblePreviewCell ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScPreviewShell pViewShell,
const ScAddress rCellAddress,
sal_Int32  nIndex 
)
ScAccessiblePreviewCell::~ScAccessiblePreviewCell ( )
overrideprotectedvirtual

Member Function Documentation

void ScAccessiblePreviewCell::CreateTextHelper ( )
private
void SAL_CALL ScAccessiblePreviewCell::disposing ( )
overridevirtual
uno::Reference< XAccessible > SAL_CALL ScAccessiblePreviewCell::getAccessibleAtPoint ( const css::awt::Point &  aPoint)
overridevirtual
uno::Reference< XAccessible > SAL_CALL ScAccessiblePreviewCell::getAccessibleChild ( sal_Int32  nIndex)
overridevirtual

Return the specified child or NULL if index is invalid.

Reimplemented from ScAccessibleContextBase.

Definition at line 132 of file AccessiblePreviewCell.cxx.

References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mpTextHelper.

sal_Int32 SAL_CALL ScAccessiblePreviewCell::getAccessibleChildCount ( )
overridevirtual

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

Return the number of currently visible children.

Reimplemented from ScAccessibleContextBase.

Definition at line 123 of file AccessiblePreviewCell.cxx.

References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mpTextHelper.

uno::Reference< XAccessibleStateSet > SAL_CALL ScAccessiblePreviewCell::getAccessibleStateSet ( )
overridevirtual
tools::Rectangle ScAccessiblePreviewCell::GetBoundingBox ( ) const
overrideprotectedvirtual
tools::Rectangle ScAccessiblePreviewCell::GetBoundingBoxOnScreen ( ) const
overrideprotectedvirtual
uno::Sequence< sal_Int8 > SAL_CALL ScAccessiblePreviewCell::getImplementationId ( )
overridevirtual

===== XTypeProvider ===================================================

Returns an implementation id.

Reimplemented from ScAccessibleCellBase.

Definition at line 192 of file AccessiblePreviewCell.cxx.

OUString SAL_CALL ScAccessiblePreviewCell::getImplementationName ( )
overridevirtual

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

Returns an identifier for the implementation of this object.

Reimplemented from ScAccessibleCellBase.

Definition at line 173 of file AccessiblePreviewCell.cxx.

uno::Sequence< OUString > SAL_CALL ScAccessiblePreviewCell::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 178 of file AccessiblePreviewCell.cxx.

References ScAccessibleContextBase::getSupportedServiceNames().

void SAL_CALL ScAccessiblePreviewCell::grabFocus ( )
overridevirtual
bool ScAccessiblePreviewCell::IsDefunc ( const css::uno::Reference< css::accessibility::XAccessibleStateSet > &  rxParentStates)
private
bool ScAccessiblePreviewCell::IsEditable ( const css::uno::Reference< css::accessibility::XAccessibleStateSet > &  rxParentStates)
overrideprivatevirtual

Reimplemented from ScAccessibleCellBase.

Definition at line 245 of file AccessiblePreviewCell.cxx.

bool ScAccessiblePreviewCell::IsOpaque ( ) const
private
void ScAccessiblePreviewCell::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

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

Reimplemented from ScAccessibleContextBase.

Definition at line 79 of file AccessiblePreviewCell.cxx.

References SfxHint::GetId(), mpTextHelper, and ScAccessibleContextBase::Notify().

Member Data Documentation

std::unique_ptr<accessibility::AccessibleTextHelper> ScAccessiblePreviewCell::mpTextHelper
private
ScPreviewShell* ScAccessiblePreviewCell::mpViewShell
private

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