LibreOffice Module svtools (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ValueSetAcc Class Referencefinal

#include <valueimp.hxx>

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

Public Member Functions

 ValueSetAcc (ValueSet *pParent)
 
virtual ~ValueSetAcc () override
 
void FireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue)
 
bool HasAccessibleListeners () const
 
void GetFocus ()
 Called by the corresponding ValueSet when it gets the focus. More...
 
void LoseFocus ()
 Called by the corresponding ValueSet when it loses the focus. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () 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_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 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 void SAL_CALL selectAccessibleChild (sal_Int64 nChildIndex) override
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int64 nChildIndex) override
 
virtual void SAL_CALL clearAccessibleSelection () override
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int64 nSelectedChildIndex) override
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int64 nSelectedChildIndex) override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Static Public Member Functions

static ValueSetAccgetImplementation (const css::uno::Reference< css::uno::XInterface > &rxData) noexcept
 

Private Member Functions

virtual void disposing (std::unique_lock< std::mutex > &) override
 Tell all listeners that the object is dying. More...
 
sal_uInt16 getItemCount () const
 Return the number of items. More...
 
ValueSetItemgetItem (sal_uInt16 nIndex) const
 Return the item associated with the given index. More...
 
void ThrowIfDisposed ()
 Check whether or not the object has been disposed (or is in the state of being disposed). More...
 
bool HasNoneField () const
 Check whether the value set has a 'none' field, i.e. More...
 

Private Attributes

::std::vector< css::uno::Reference< css::accessibility::XAccessibleEventListener > > mxEventListeners
 
ValueSetmpParent
 
bool mbIsFocused
 The current FOCUSED state. More...
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 76 of file valueimp.hxx.

Constructor & Destructor Documentation

◆ ValueSetAcc()

ValueSetAcc::ValueSetAcc ( ValueSet pParent)
explicit

Definition at line 400 of file valueacc.cxx.

References mpParent.

◆ ~ValueSetAcc()

ValueSetAcc::~ValueSetAcc ( )
overridevirtual

Definition at line 407 of file valueacc.cxx.

Member Function Documentation

◆ addAccessibleEventListener()

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

◆ clearAccessibleSelection()

void SAL_CALL ValueSetAcc::clearAccessibleSelection ( )
overridevirtual

Definition at line 824 of file valueacc.cxx.

References mpParent, ValueSet::SetNoSelection(), and ThrowIfDisposed().

◆ containsPoint()

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

Definition at line 671 of file valueacc.cxx.

References tools::Rectangle::Contains(), getBounds(), and ThrowIfDisposed().

◆ deselectAccessibleChild()

void SAL_CALL ValueSetAcc::deselectAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

◆ disposing()

void ValueSetAcc::disposing ( std::unique_lock< std::mutex > &  rGuard)
overrideprivatevirtual

Tell all listeners that the object is dying.

This callback is usually called from the WeakComponentImplHelper class.

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 890 of file valueacc.cxx.

References aEvent, mpParent, and mxEventListeners.

◆ FireAccessibleEvent()

void ValueSetAcc::FireAccessibleEvent ( short  nEventId,
const css::uno::Any &  rOldValue,
const css::uno::Any &  rNewValue 
)

Definition at line 412 of file valueacc.cxx.

References mxEventListeners.

Referenced by GetFocus(), ValueSet::ImplFireAccessibleEvent(), and LoseFocus().

◆ getAccessibleAtPoint()

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

◆ getAccessibleChild()

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

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ValueSetAcc::getAccessibleChildCount ( )
overridevirtual

◆ getAccessibleContext()

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

Definition at line 471 of file valueacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleDescription()

OUString SAL_CALL ValueSetAcc::getAccessibleDescription ( )
overridevirtual

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL ValueSetAcc::getAccessibleIndexInParent ( )
overridevirtual

Definition at line 514 of file valueacc.cxx.

References getAccessibleParent(), ThrowIfDisposed(), and TOOLS_WARN_EXCEPTION.

◆ getAccessibleName()

OUString SAL_CALL ValueSetAcc::getAccessibleName ( )
overridevirtual

◆ getAccessibleParent()

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

◆ getAccessibleRelationSet()

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

◆ getAccessibleRole()

sal_Int16 SAL_CALL ValueSetAcc::getAccessibleRole ( )
overridevirtual

Definition at line 550 of file valueacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ValueSetAcc::getAccessibleStateSet ( )
overridevirtual

Definition at line 593 of file valueacc.cxx.

References mbIsFocused, and ThrowIfDisposed().

◆ getBackground()

sal_Int32 SAL_CALL ValueSetAcc::getBackground ( )
overridevirtual

◆ getBounds()

awt::Rectangle SAL_CALL ValueSetAcc::getBounds ( )
overridevirtual

◆ GetFocus()

void ValueSetAcc::GetFocus ( )

Called by the corresponding ValueSet when it gets the focus.

Stores the new focus state and broadcasts a state change event.

Definition at line 445 of file valueacc.cxx.

References FireAccessibleEvent(), and mbIsFocused.

Referenced by ValueSet::GetFocus().

◆ getForeground()

sal_Int32 SAL_CALL ValueSetAcc::getForeground ( )
overridevirtual

◆ getImplementation()

ValueSetAcc * ValueSetAcc::getImplementation ( const css::uno::Reference< css::uno::XInterface > &  rxData)
staticnoexcept

◆ getItem()

ValueSetItem * ValueSetAcc::getItem ( sal_uInt16  nIndex) const
private

Return the item associated with the given index.

The None-Item is taken into account which, when present, is taken to be the first (with index 0) item.

Parameters
nIndexIndex of the item to return. The index 0 denotes the None-Item when present.
Returns
Returns NULL when the given index is out of range.

Definition at line 929 of file valueacc.cxx.

References HasNoneField(), ValueSet::ImplGetItem(), mpParent, nIndex, and VALUESET_ITEM_NONEITEM.

Referenced by getAccessibleChild(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), isAccessibleChildSelected(), and selectAccessibleChild().

◆ getItemCount()

sal_uInt16 ValueSetAcc::getItemCount ( ) const
private

Return the number of items.

This takes the None-Item into account.

Definition at line 919 of file valueacc.cxx.

References HasNoneField(), ValueSet::ImplGetVisibleItemCount(), mpParent, and nCount.

Referenced by getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().

◆ getLocale()

lang::Locale SAL_CALL ValueSetAcc::getLocale ( )
overridevirtual

Definition at line 612 of file valueacc.cxx.

References getAccessibleParent(), and ThrowIfDisposed().

◆ getLocation()

awt::Point SAL_CALL ValueSetAcc::getLocation ( )
overridevirtual

Definition at line 720 of file valueacc.cxx.

References getBounds(), and ThrowIfDisposed().

Referenced by getLocationOnScreen().

◆ getLocationOnScreen()

awt::Point SAL_CALL ValueSetAcc::getLocationOnScreen ( )
overridevirtual

Definition at line 732 of file valueacc.cxx.

References getAccessibleParent(), getLocation(), and ThrowIfDisposed().

◆ getSelectedAccessibleChild()

uno::Reference< accessibility::XAccessible > SAL_CALL ValueSetAcc::getSelectedAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

◆ getSelectedAccessibleChildCount()

sal_Int64 SAL_CALL ValueSetAcc::getSelectedAccessibleChildCount ( )
overridevirtual

◆ getSize()

awt::Size SAL_CALL ValueSetAcc::getSize ( )
overridevirtual

Definition at line 756 of file valueacc.cxx.

References getBounds(), and ThrowIfDisposed().

◆ grabFocus()

void SAL_CALL ValueSetAcc::grabFocus ( )
overridevirtual

◆ HasAccessibleListeners()

bool ValueSetAcc::HasAccessibleListeners ( ) const
inline

Definition at line 84 of file valueimp.hxx.

References mxEventListeners.

Referenced by ValueSet::ImplHasAccessibleListeners().

◆ HasNoneField()

bool ValueSetAcc::HasNoneField ( ) const
private

Check whether the value set has a 'none' field, i.e.

a field (button) that deselects any items (selects none of them).

Returns
Returns <true> if there is a 'none' field and <false> if it is missing.

Definition at line 964 of file valueacc.cxx.

References ValueSet::GetStyle(), mpParent, and WB_NONEFIELD.

Referenced by getAccessibleChildCount(), getItem(), and getItemCount().

◆ isAccessibleChildSelected()

sal_Bool SAL_CALL ValueSetAcc::isAccessibleChildSelected ( sal_Int64  nChildIndex)
overridevirtual

◆ LoseFocus()

void ValueSetAcc::LoseFocus ( )

Called by the corresponding ValueSet when it loses the focus.

Stores the new focus state and broadcasts a state change event.

Definition at line 458 of file valueacc.cxx.

References FireAccessibleEvent(), and mbIsFocused.

Referenced by ValueSet::LoseFocus().

◆ removeAccessibleEventListener()

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

◆ selectAccessibleChild()

void SAL_CALL ValueSetAcc::selectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

◆ selectAllAccessibleChildren()

void SAL_CALL ValueSetAcc::selectAllAccessibleChildren ( )
overridevirtual

Definition at line 832 of file valueacc.cxx.

References ThrowIfDisposed().

◆ ThrowIfDisposed()

void ValueSetAcc::ThrowIfDisposed ( )
private

Member Data Documentation

◆ mbIsFocused

bool ValueSetAcc::mbIsFocused
private

The current FOCUSED state.

Definition at line 144 of file valueimp.hxx.

Referenced by getAccessibleStateSet(), GetFocus(), and LoseFocus().

◆ mpParent

ValueSet* ValueSetAcc::mpParent
private

◆ mxEventListeners

::std::vector< css::uno::Reference< css::accessibility::XAccessibleEventListener > > ValueSetAcc::mxEventListeners
private

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