LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
accessibility::AccessibleImageBullet Class Referencefinal

This class implements the image bullets for the EditEngine/Outliner UAA. More...

#include <AccessibleImageBullet.hxx>

Inheritance diagram for accessibility::AccessibleImageBullet:
[legend]
Collaboration diagram for accessibility::AccessibleImageBullet:
[legend]

Public Member Functions

 AccessibleImageBullet (css::uno::Reference< css::accessibility::XAccessible > xParent)
 Create accessible object for given parent. More...
 
virtual ~AccessibleImageBullet () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) 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 OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
void SetIndexInParent (sal_Int32 nIndex)
 Set the current index in the accessibility parent. More...
 
void SetEEOffset (const Point &rOffset)
 Set the edit engine offset. More...
 
void SetEditSource (SvxEditSource *pEditSource)
 Set the EditEngine offset. More...
 
void Dispose ()
 Dispose this object. More...
 
void SetParagraphIndex (sal_Int32 nIndex)
 Set the current paragraph number. More...
 
sal_Int32 GetParagraphIndex () const
 Query the current paragraph number (0 - nParas-1) More...
 
void FireEvent (const sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue=css::uno::Any()) const
 Calls all Listener objects to tell them the change. Don't hold locks when calling this! More...
 

Private Member Functions

 AccessibleImageBullet (const AccessibleImageBullet &)=delete
 
AccessibleImageBulletoperator= (const AccessibleImageBullet &)=delete
 
void SetState (const sal_Int64 nStateId)
 
void UnSetState (const sal_Int64 nStateId)
 
SvxEditSourceGetEditSource () const
 
int getNotifierClientId () const
 
SvxTextForwarderGetTextForwarder () const
 Query the SvxTextForwarder for EditEngine access. More...
 
SvxViewForwarderGetViewForwarder () const
 Query the SvxViewForwarder for EditEngine access. More...
 
css::awt::Rectangle implGetBounds ()
 

Private Attributes

sal_Int32 mnParagraphIndex
 
sal_Int32 mnIndexInParent
 
SvxEditSourcempEditSource
 
Point maEEOffset
 
sal_Int64 mnStateSet = 0
 
css::uno::Reference< css::accessibility::XAccessible > mxParent
 The shape we're the accessible for (unguarded) More...
 
int mnNotifierClientId
 Our listeners (guarded by maMutex) More...
 

Detailed Description

This class implements the image bullets for the EditEngine/Outliner UAA.

Definition at line 47 of file AccessibleImageBullet.hxx.

Constructor & Destructor Documentation

◆ AccessibleImageBullet() [1/2]

accessibility::AccessibleImageBullet::AccessibleImageBullet ( css::uno::Reference< css::accessibility::XAccessible >  xParent)

Create accessible object for given parent.

◆ ~AccessibleImageBullet()

accessibility::AccessibleImageBullet::~AccessibleImageBullet ( )
overridevirtual

◆ AccessibleImageBullet() [2/2]

accessibility::AccessibleImageBullet::AccessibleImageBullet ( const AccessibleImageBullet )
privatedelete

Member Function Documentation

◆ addAccessibleEventListener()

void SAL_CALL accessibility::AccessibleImageBullet::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

◆ containsPoint()

sal_Bool SAL_CALL accessibility::AccessibleImageBullet::containsPoint ( const css::awt::Point &  aPoint)
overridevirtual

Definition at line 196 of file AccessibleImageBullet.cxx.

References tools::Rectangle::Contains(), and DBG_ASSERT.

◆ Dispose()

void accessibility::AccessibleImageBullet::Dispose ( )

Dispose this object.

Notifies and deregisters the listeners, drops all references.

Definition at line 364 of file AccessibleImageBullet.cxx.

References mxParent, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().

◆ FireEvent()

void accessibility::AccessibleImageBullet::FireEvent ( const sal_Int16  nEventId,
const css::uno::Any &  rNewValue,
const css::uno::Any &  rOldValue = css::uno::Any() 
) const

Calls all Listener objects to tell them the change. Don't hold locks when calling this!

Definition at line 405 of file AccessibleImageBullet.cxx.

References comphelper::AccessibleEventNotifier::addEvent(), and aEvent.

◆ getAccessibleAtPoint()

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

Definition at line 211 of file AccessibleImageBullet.cxx.

◆ getAccessibleChild()

uno::Reference< XAccessible > SAL_CALL accessibility::AccessibleImageBullet::getAccessibleChild ( sal_Int64  i)
overridevirtual

Definition at line 106 of file AccessibleImageBullet.cxx.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL accessibility::AccessibleImageBullet::getAccessibleChildCount ( )
overridevirtual

Definition at line 100 of file AccessibleImageBullet.cxx.

◆ getAccessibleContext()

uno::Reference< XAccessibleContext > SAL_CALL accessibility::AccessibleImageBullet::getAccessibleContext ( )
overridevirtual

Definition at line 93 of file AccessibleImageBullet.cxx.

◆ getAccessibleDescription()

OUString SAL_CALL accessibility::AccessibleImageBullet::getAccessibleDescription ( )
overridevirtual

Definition at line 130 of file AccessibleImageBullet.cxx.

References EditResId().

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL accessibility::AccessibleImageBullet::getAccessibleIndexInParent ( )
overridevirtual

Definition at line 118 of file AccessibleImageBullet.cxx.

◆ getAccessibleName()

OUString SAL_CALL accessibility::AccessibleImageBullet::getAccessibleName ( )
overridevirtual

Definition at line 136 of file AccessibleImageBullet.cxx.

References EditResId().

◆ getAccessibleParent()

uno::Reference< XAccessible > SAL_CALL accessibility::AccessibleImageBullet::getAccessibleParent ( )
overridevirtual

Definition at line 112 of file AccessibleImageBullet.cxx.

References mxParent.

◆ getAccessibleRelationSet()

uno::Reference< XAccessibleRelationSet > SAL_CALL accessibility::AccessibleImageBullet::getAccessibleRelationSet ( )
overridevirtual

Definition at line 142 of file AccessibleImageBullet.cxx.

◆ getAccessibleRole()

sal_Int16 SAL_CALL accessibility::AccessibleImageBullet::getAccessibleRole ( )
overridevirtual

Definition at line 124 of file AccessibleImageBullet.cxx.

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL accessibility::AccessibleImageBullet::getAccessibleStateSet ( )
overridevirtual

Definition at line 149 of file AccessibleImageBullet.cxx.

◆ getBackground()

sal_Int32 SAL_CALL accessibility::AccessibleImageBullet::getBackground ( )
overridevirtual

Definition at line 323 of file AccessibleImageBullet.cxx.

References Application::GetSettings(), and Color::SetAlpha().

◆ getBounds()

awt::Rectangle SAL_CALL accessibility::AccessibleImageBullet::getBounds ( )
overridevirtual

Definition at line 218 of file AccessibleImageBullet.cxx.

◆ GetEditSource()

SvxEditSource & accessibility::AccessibleImageBullet::GetEditSource ( ) const
private

Definition at line 466 of file AccessibleImageBullet.cxx.

◆ getForeground()

sal_Int32 SAL_CALL accessibility::AccessibleImageBullet::getForeground ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL accessibility::AccessibleImageBullet::getImplementationName ( )
overridevirtual

Definition at line 335 of file AccessibleImageBullet.cxx.

◆ getLocale()

lang::Locale SAL_CALL accessibility::AccessibleImageBullet::getLocale ( )
overridevirtual

Definition at line 158 of file AccessibleImageBullet.cxx.

References DBG_ASSERT, GetLanguage(), and LanguageTag::getLocale().

◆ getLocation()

awt::Point SAL_CALL accessibility::AccessibleImageBullet::getLocation ( )
overridevirtual

Definition at line 260 of file AccessibleImageBullet.cxx.

◆ getLocationOnScreen()

awt::Point SAL_CALL accessibility::AccessibleImageBullet::getLocationOnScreen ( )
overridevirtual

Definition at line 270 of file AccessibleImageBullet.cxx.

◆ getNotifierClientId()

int accessibility::AccessibleImageBullet::getNotifierClientId ( ) const
inlineprivate

Definition at line 155 of file AccessibleImageBullet.hxx.

References mnNotifierClientId.

◆ GetParagraphIndex()

sal_Int32 accessibility::AccessibleImageBullet::GetParagraphIndex ( ) const
inline

Query the current paragraph number (0 - nParas-1)

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 140 of file AccessibleImageBullet.hxx.

References mnParagraphIndex.

◆ getSize()

awt::Size SAL_CALL accessibility::AccessibleImageBullet::getSize ( )
overridevirtual

Definition at line 296 of file AccessibleImageBullet.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL accessibility::AccessibleImageBullet::getSupportedServiceNames ( )
overridevirtual

Definition at line 347 of file AccessibleImageBullet.cxx.

◆ GetTextForwarder()

SvxTextForwarder & accessibility::AccessibleImageBullet::GetTextForwarder ( ) const
private

Query the SvxTextForwarder for EditEngine access.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 476 of file AccessibleImageBullet.cxx.

References SvxEditSource::GetTextForwarder(), and SvxTextForwarder::IsValid().

◆ GetViewForwarder()

SvxViewForwarder & accessibility::AccessibleImageBullet::GetViewForwarder ( ) const
private

Query the SvxViewForwarder for EditEngine access.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 494 of file AccessibleImageBullet.cxx.

References SvxEditSource::GetViewForwarder(), and SvxViewForwarder::IsValid().

◆ grabFocus()

void SAL_CALL accessibility::AccessibleImageBullet::grabFocus ( )
overridevirtual

Definition at line 306 of file AccessibleImageBullet.cxx.

◆ implGetBounds()

awt::Rectangle accessibility::AccessibleImageBullet::implGetBounds ( )
private

◆ operator=()

AccessibleImageBullet & accessibility::AccessibleImageBullet::operator= ( const AccessibleImageBullet )
privatedelete

◆ removeAccessibleEventListener()

void SAL_CALL accessibility::AccessibleImageBullet::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

◆ SetEditSource()

void accessibility::AccessibleImageBullet::SetEditSource ( SvxEditSource pEditSource)

Set the EditEngine offset.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 388 of file AccessibleImageBullet.cxx.

References Dispose().

◆ SetEEOffset()

void accessibility::AccessibleImageBullet::SetEEOffset ( const Point rOffset)

Set the edit engine offset.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 358 of file AccessibleImageBullet.cxx.

◆ SetIndexInParent()

void accessibility::AccessibleImageBullet::SetIndexInParent ( sal_Int32  nIndex)

Set the current index in the accessibility parent.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 352 of file AccessibleImageBullet.cxx.

References nIndex.

◆ SetParagraphIndex()

void accessibility::AccessibleImageBullet::SetParagraphIndex ( sal_Int32  nIndex)

Set the current paragraph number.

Attention: \n This method does not lock the SolarMutex,
leaving that to the calling code. This is because only there potential deadlock situations can be resolved. Thus, make sure SolarMutex is locked when calling this.

Definition at line 436 of file AccessibleImageBullet.cxx.

References mnParagraphIndex, and nIndex.

◆ SetState()

void accessibility::AccessibleImageBullet::SetState ( const sal_Int64  nStateId)
private

Definition at line 417 of file AccessibleImageBullet.cxx.

◆ supportsService()

sal_Bool SAL_CALL accessibility::AccessibleImageBullet::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 341 of file AccessibleImageBullet.cxx.

References sServiceName, and cppu::supportsService().

◆ UnSetState()

void accessibility::AccessibleImageBullet::UnSetState ( const sal_Int64  nStateId)
private

Definition at line 426 of file AccessibleImageBullet.cxx.

Member Data Documentation

◆ maEEOffset

Point accessibility::AccessibleImageBullet::maEEOffset
private

Definition at line 187 of file AccessibleImageBullet.hxx.

◆ mnIndexInParent

sal_Int32 accessibility::AccessibleImageBullet::mnIndexInParent
private

Definition at line 181 of file AccessibleImageBullet.hxx.

◆ mnNotifierClientId

int accessibility::AccessibleImageBullet::mnNotifierClientId
private

Our listeners (guarded by maMutex)

Definition at line 196 of file AccessibleImageBullet.hxx.

Referenced by getNotifierClientId().

◆ mnParagraphIndex

sal_Int32 accessibility::AccessibleImageBullet::mnParagraphIndex
private

Definition at line 178 of file AccessibleImageBullet.hxx.

Referenced by GetParagraphIndex().

◆ mnStateSet

sal_Int64 accessibility::AccessibleImageBullet::mnStateSet = 0
private

Definition at line 190 of file AccessibleImageBullet.hxx.

◆ mpEditSource

SvxEditSource* accessibility::AccessibleImageBullet::mpEditSource
private

Definition at line 184 of file AccessibleImageBullet.hxx.

◆ mxParent

css::uno::Reference< css::accessibility::XAccessible > accessibility::AccessibleImageBullet::mxParent
private

The shape we're the accessible for (unguarded)

Definition at line 193 of file AccessibleImageBullet.hxx.


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