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

#include <AccessiblePageHeaderArea.hxx>

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

Public Member Functions

 ScAccessiblePageHeaderArea (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const EditTextObject *pEditObj, SvxAdjust eAdjust)
 
const EditTextObjectGetEditTextObject () const
 
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 &rPoint) override
 ===== XAccessibleComponent ============================================ More...
 
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 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...
 
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
 

Protected Member Functions

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

Private Member Functions

void CreateTextHelper ()
 

Private Attributes

std::unique_ptr< EditTextObjectmpEditObj
 
std::unique_ptr< accessibility::AccessibleTextHelpermpTextHelper
 
ScPreviewShellmpViewShell
 
SvxAdjust meAdjust
 

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 AccessiblePageHeaderArea.hxx.

Constructor & Destructor Documentation

◆ ScAccessiblePageHeaderArea()

ScAccessiblePageHeaderArea::ScAccessiblePageHeaderArea ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
ScPreviewShell pViewShell,
const EditTextObject pEditObj,
SvxAdjust  eAdjust 
)

◆ ~ScAccessiblePageHeaderArea()

ScAccessiblePageHeaderArea::~ScAccessiblePageHeaderArea ( )
overrideprotectedvirtual

Member Function Documentation

◆ createAccessibleDescription()

OUString ScAccessiblePageHeaderArea::createAccessibleDescription ( )
overrideprotectedvirtual

Return this object's description.

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 183 of file AccessiblePageHeaderArea.cxx.

References meAdjust, STR_ACC_CENTERAREA_DESCR, STR_ACC_LEFTAREA_DESCR, and STR_ACC_RIGHTAREA_DESCR.

◆ createAccessibleName()

OUString ScAccessiblePageHeaderArea::createAccessibleName ( )
overrideprotectedvirtual

Return the object's current name.

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 204 of file AccessiblePageHeaderArea.cxx.

References meAdjust, ScResId(), and sName.

◆ CreateTextHelper()

void ScAccessiblePageHeaderArea::CreateTextHelper ( )
private

◆ 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 ScAccessiblePageHeaderArea::disposing ( )
overridevirtual

◆ disposing() [3/3]

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

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

Reimplemented from ScAccessibleContextBase.

◆ getAccessibleAtPoint()

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

===== XAccessibleComponent ============================================

Reimplemented from ScAccessibleContextBase.

Definition at line 101 of file AccessiblePageHeaderArea.cxx.

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

◆ getAccessibleChild()

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

Return the specified child or NULL if index is invalid.

override to calculate this on demand

Reimplemented from ScAccessibleContextBase.

Definition at line 132 of file AccessiblePageHeaderArea.cxx.

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

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessiblePageHeaderArea::getAccessibleChildCount ( )
overridevirtual

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

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

Reimplemented from ScAccessibleContextBase.

Definition at line 122 of file AccessiblePageHeaderArea.cxx.

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

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessiblePageHeaderArea::getAccessibleStateSet ( )
overridevirtual

◆ GetBoundingBox()

tools::Rectangle ScAccessiblePageHeaderArea::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 241 of file AccessiblePageHeaderArea.cxx.

References tools::Rectangle::GetSize(), ScAccessibleContextBase::mxParent, and VCLRectangle().

◆ GetBoundingBoxOnScreen()

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

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

Exceptions
css::uno::RuntimeException

Reimplemented from ScAccessibleContextBase.

Definition at line 225 of file AccessiblePageHeaderArea.cxx.

References tools::Rectangle::GetSize(), ScAccessibleContextBase::mxParent, VCLPoint(), and VCLRectangle().

◆ GetEditTextObject()

const EditTextObject * ScAccessiblePageHeaderArea::GetEditTextObject ( ) const
inline

Definition at line 45 of file AccessiblePageHeaderArea.hxx.

References mpEditObj.

◆ getImplementationId()

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

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

Returns an implementation id.

Definition at line 177 of file AccessiblePageHeaderArea.cxx.

◆ getImplementationName()

OUString SAL_CALL ScAccessiblePageHeaderArea::getImplementationName ( )
overridevirtual

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

Returns an identifier for the implementation of this object.

Reimplemented from ScAccessibleContextBase.

Definition at line 162 of file AccessiblePageHeaderArea.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScAccessiblePageHeaderArea::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 168 of file AccessiblePageHeaderArea.cxx.

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

◆ Notify()

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

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

Reimplemented from ScAccessibleContextBase.

Definition at line 84 of file AccessiblePageHeaderArea.cxx.

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

Member Data Documentation

◆ meAdjust

SvxAdjust ScAccessiblePageHeaderArea::meAdjust
private

◆ mpEditObj

std::unique_ptr<EditTextObject> ScAccessiblePageHeaderArea::mpEditObj
private

Definition at line 104 of file AccessiblePageHeaderArea.hxx.

Referenced by CreateTextHelper(), disposing(), and GetEditTextObject().

◆ mpTextHelper

std::unique_ptr<accessibility::AccessibleTextHelper> ScAccessiblePageHeaderArea::mpTextHelper
private

◆ mpViewShell

ScPreviewShell* ScAccessiblePageHeaderArea::mpViewShell
private

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