LibreOffice Module accessibility (master) 1
|
the class OAccessibleListBoxEntry represents the base class for an accessible object of a listbox entry More...
#include <vclxaccessiblelistitem.hxx>
Public Member Functions | |
VCLXAccessibleListItem (sal_Int32 _nIndexInParent, rtl::Reference< VCLXAccessibleList > _xParent) | |
OAccessibleBase needs a valid view. More... | |
void | NotifyAccessibleEvent (sal_Int16 _nEventId, const css::uno::Any &_aOldValue, const css::uno::Any &_aNewValue) |
bool | IsSelected () const |
void | SetSelected (bool _bSelected) |
void | SetVisible (bool _bVisible) |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () 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 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 sal_Int32 SAL_CALL | getCaretPosition () override |
virtual sal_Bool SAL_CALL | setCaretPosition (sal_Int32 nIndex) override |
virtual sal_Unicode SAL_CALL | getCharacter (sal_Int32 nIndex) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override |
virtual css::awt::Rectangle SAL_CALL | getCharacterBounds (sal_Int32 nIndex) override |
virtual sal_Int32 SAL_CALL | getCharacterCount () override |
virtual sal_Int32 SAL_CALL | getIndexAtPoint (const css::awt::Point &aPoint) override |
virtual OUString SAL_CALL | getSelectedText () override |
virtual sal_Int32 SAL_CALL | getSelectionStart () override |
virtual sal_Int32 SAL_CALL | getSelectionEnd () override |
virtual sal_Bool SAL_CALL | setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual OUString SAL_CALL | getText () override |
virtual OUString SAL_CALL | getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual sal_Bool SAL_CALL | copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual sal_Bool SAL_CALL | scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) 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 |
Public Member Functions inherited from cppu::WeakAggComponentImplHelper6< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6 > | |
WeakAggComponentImplHelper6 (::osl::Mutex &rMutex) SAL_NOEXCEPT | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT 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 |
Private Member Functions | |
virtual | ~VCLXAccessibleListItem () override=default |
virtual void SAL_CALL | disposing () override |
this function is called upon disposing the component More... | |
virtual OUString | implGetText () override |
virtual css::lang::Locale | implGetLocale () override |
virtual void | implGetSelection (sal_Int32 &nStartIndex, sal_Int32 &nEndIndex) override |
Private Attributes | |
OUString | m_sEntryText |
sal_Int32 | m_nIndexInParent |
bool | m_bSelected |
bool | m_bVisible |
sal_uInt32 | m_nClientId |
client id in the AccessibleEventNotifier queue More... | |
rtl::Reference< VCLXAccessibleList > | m_xParent |
Additional Inherited Members | |
Static Public Member Functions inherited from comphelper::OCommonAccessibleText | |
static bool | implInitTextChangedEvent (std::u16string_view rOldString, std::u16string_view rNewString, css::uno::Any &rDeleted, css::uno::Any &rInserted) |
Protected Member Functions inherited from comphelper::OCommonAccessibleText | |
OCommonAccessibleText () | |
virtual | ~OCommonAccessibleText () |
css::uno::Reference< css::i18n::XBreakIterator > const & | implGetBreakIterator () |
css::uno::Reference< css::i18n::XCharacterClassification > const & | implGetCharacterClassification () |
virtual OUString | implGetText ()=0 |
virtual css::lang::Locale | implGetLocale ()=0 |
virtual void | implGetSelection (sal_Int32 &nStartIndex, sal_Int32 &nEndIndex)=0 |
void | implGetGlyphBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex) |
bool | implGetWordBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex) |
void | implGetSentenceBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex) |
virtual void | implGetParagraphBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex) |
virtual void | implGetLineBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex) |
OUString | getSelectedText () |
sal_Int32 | getSelectionStart () |
sal_Int32 | getSelectionEnd () |
css::accessibility::TextSegment | getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) |
css::accessibility::TextSegment | getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) |
css::accessibility::TextSegment | getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) |
Static Protected Member Functions inherited from comphelper::OCommonAccessibleText | |
static bool | implIsValidBoundary (css::i18n::Boundary const &rBoundary, sal_Int32 nLength) |
static bool | implIsValidIndex (sal_Int32 nIndex, sal_Int32 nLength) |
static bool | implIsValidRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength) |
static sal_Unicode | implGetCharacter (std::u16string_view rText, sal_Int32 nIndex) |
static OUString | implGetTextRange (std::u16string_view rText, sal_Int32 nStartIndex, sal_Int32 nEndIndex) |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
the class OAccessibleListBoxEntry represents the base class for an accessible object of a listbox entry
Definition at line 54 of file vclxaccessiblelistitem.hxx.
|
overrideprivatevirtualdefault |
VCLXAccessibleListItem::VCLXAccessibleListItem | ( | sal_Int32 | _nIndexInParent, |
rtl::Reference< VCLXAccessibleList > | _xParent | ||
) |
OAccessibleBase needs a valid view.
_nIndexInParent | is the position of the entry inside the listbox |
_xParent | is our parent accessible object |
Definition at line 62 of file vclxaccessiblelistitem.cxx.
References accessibility::IComboListBoxHelper::GetEntry(), m_aMutex, m_sEntryText, and m_xParent.
|
overridevirtual |
Definition at line 567 of file vclxaccessiblelistitem.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), m_nClientId, and comphelper::AccessibleEventNotifier::registerClient().
|
overridevirtual |
Definition at line 285 of file vclxaccessiblelistitem.cxx.
References tools::Rectangle::Contains(), accessibility::IComboListBoxHelper::GetBoundingRectangle(), tools::Rectangle::Left(), cppu::BaseMutex::m_aMutex, m_nIndexInParent, m_xParent, tools::Rectangle::Move(), tools::Rectangle::Top(), and VCLPoint().
|
overridevirtual |
Definition at line 529 of file vclxaccessiblelistitem.cxx.
References accessibility::IComboListBoxHelper::GetClipboard(), getTextRange(), cppu::BaseMutex::m_aMutex, m_sEntryText, and m_xParent.
|
overrideprivatevirtual |
this function is called upon disposing the component
Definition at line 145 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, m_nClientId, m_sEntryText, m_xParent, nId, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
|
overridevirtual |
Definition at line 301 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 200 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 195 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 188 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 224 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 212 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_nIndexInParent.
|
overridevirtual |
Definition at line 230 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_sEntryText.
|
overridevirtual |
Definition at line 205 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_xParent.
|
overridevirtual |
Definition at line 238 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 218 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 243 of file vclxaccessiblelistitem.cxx.
References accessibility::IComboListBoxHelper::IsEnabled(), cppu::BaseMutex::m_aMutex, m_bSelected, m_bVisible, and m_xParent.
|
overridevirtual |
Definition at line 610 of file vclxaccessiblelistitem.cxx.
References COL_WHITE().
|
overridevirtual |
Definition at line 306 of file vclxaccessiblelistitem.cxx.
References AWTRectangle(), accessibility::IComboListBoxHelper::GetBoundingRectangle(), cppu::BaseMutex::m_aMutex, m_nIndexInParent, and m_xParent.
|
overridevirtual |
Definition at line 370 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 386 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, m_sEntryText, and nIndex.
|
overridevirtual |
Definition at line 394 of file vclxaccessiblelistitem.cxx.
References comphelper::OCommonAccessibleText::implIsValidIndex(), cppu::BaseMutex::m_aMutex, m_sEntryText, and nIndex.
|
overridevirtual |
Definition at line 405 of file vclxaccessiblelistitem.cxx.
References AWTRectangle(), accessibility::IComboListBoxHelper::GetBoundingRectangle(), accessibility::IComboListBoxHelper::GetEntryCharacterBounds(), comphelper::OCommonAccessibleText::implIsValidIndex(), tools::Rectangle::Left(), cppu::BaseMutex::m_aMutex, m_nIndexInParent, m_sEntryText, m_xParent, tools::Rectangle::Move(), nIndex, and tools::Rectangle::Top().
|
overridevirtual |
Definition at line 426 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_sEntryText.
|
overridevirtual |
Definition at line 602 of file vclxaccessiblelistitem.cxx.
References COL_BLACK().
Reimplemented from cppu::WeakAggComponentImplHelper6< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6 >.
Definition at line 138 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 169 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 434 of file vclxaccessiblelistitem.cxx.
References accessibility::IComboListBoxHelper::GetBoundingRectangle(), accessibility::IComboListBoxHelper::GetIndexForPoint(), LISTBOX_ENTRY_NOTFOUND, cppu::BaseMutex::m_aMutex, m_nIndexInParent, m_xParent, nIndex, nPos, tools::Rectangle::TopLeft(), and VCLPoint().
|
overridevirtual |
Definition at line 275 of file vclxaccessiblelistitem.cxx.
References implGetLocale(), Locale, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 319 of file vclxaccessiblelistitem.cxx.
References AWTPoint(), accessibility::IComboListBoxHelper::GetBoundingRectangle(), cppu::BaseMutex::m_aMutex, m_nIndexInParent, m_xParent, and tools::Rectangle::TopLeft().
|
overridevirtual |
|
overridevirtual |
Definition at line 454 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 470 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 462 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 350 of file vclxaccessiblelistitem.cxx.
References AWTSize(), accessibility::IComboListBoxHelper::GetBoundingRectangle(), tools::Rectangle::GetSize(), cppu::BaseMutex::m_aMutex, m_nIndexInParent, and m_xParent.
|
overridevirtual |
Definition at line 179 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 489 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_sEntryText.
|
overridevirtual |
Definition at line 505 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and nIndex.
|
overridevirtual |
Definition at line 513 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and nIndex.
|
overridevirtual |
Definition at line 521 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and nIndex.
|
overridevirtual |
Definition at line 497 of file vclxaccessiblelistitem.cxx.
References cppu::BaseMutex::m_aMutex, and m_sEntryText.
Referenced by copyText().
|
overridevirtual |
Definition at line 363 of file vclxaccessiblelistitem.cxx.
|
overrideprivatevirtual |
Implements comphelper::OCommonAccessibleText.
Definition at line 125 of file vclxaccessiblelistitem.cxx.
References AllSettings::GetLanguageTag(), LanguageTag::getLocale(), Application::GetSettings(), and Locale.
Referenced by getLocale().
|
overrideprivatevirtual |
Implements comphelper::OCommonAccessibleText.
Definition at line 130 of file vclxaccessiblelistitem.cxx.
|
overrideprivatevirtual |
Implements comphelper::OCommonAccessibleText.
Definition at line 120 of file vclxaccessiblelistitem.cxx.
References m_sEntryText.
|
inline |
Definition at line 91 of file vclxaccessiblelistitem.hxx.
References m_bSelected.
Referenced by VCLXAccessibleList::UpdateSelection_Impl(), and VCLXAccessibleList::UpdateSelection_Impl_Acc().
void VCLXAccessibleListItem::NotifyAccessibleEvent | ( | sal_Int16 | _nEventId, |
const css::uno::Any & | _aOldValue, | ||
const css::uno::Any & | _aNewValue | ||
) |
Definition at line 104 of file vclxaccessiblelistitem.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), and m_nClientId.
Referenced by VCLXAccessibleList::NotifyListItem(), SetSelected(), and SetVisible().
|
overridevirtual |
Definition at line 577 of file vclxaccessiblelistitem.cxx.
References m_nClientId, nId, comphelper::AccessibleEventNotifier::removeEventListener(), and comphelper::AccessibleEventNotifier::revokeClient().
|
overridevirtual |
Definition at line 560 of file vclxaccessiblelistitem.cxx.
|
overridevirtual |
Definition at line 375 of file vclxaccessiblelistitem.cxx.
References comphelper::OCommonAccessibleText::implIsValidRange(), cppu::BaseMutex::m_aMutex, m_sEntryText, and nIndex.
void VCLXAccessibleListItem::SetSelected | ( | bool | _bSelected | ) |
Definition at line 76 of file vclxaccessiblelistitem.cxx.
References Any, m_bSelected, and NotifyAccessibleEvent().
Referenced by VCLXAccessibleList::CreateChild(), VCLXAccessibleList::UpdateSelection_Impl(), and VCLXAccessibleList::UpdateSelection_Impl_Acc().
|
overridevirtual |
Definition at line 478 of file vclxaccessiblelistitem.cxx.
References comphelper::OCommonAccessibleText::implIsValidRange(), cppu::BaseMutex::m_aMutex, and m_sEntryText.
void VCLXAccessibleListItem::SetVisible | ( | bool | _bVisible | ) |
Definition at line 91 of file vclxaccessiblelistitem.cxx.
References Any, m_bVisible, and NotifyAccessibleEvent().
Referenced by VCLXAccessibleList::CreateChild(), and VCLXAccessibleList::notifyVisibleStates().
|
overridevirtual |
Definition at line 174 of file vclxaccessiblelistitem.cxx.
References cppu::supportsService().
|
private |
Definition at line 61 of file vclxaccessiblelistitem.hxx.
Referenced by getAccessibleStateSet(), IsSelected(), and SetSelected().
|
private |
Definition at line 62 of file vclxaccessiblelistitem.hxx.
Referenced by getAccessibleStateSet(), and SetVisible().
|
private |
client id in the AccessibleEventNotifier queue
Definition at line 65 of file vclxaccessiblelistitem.hxx.
Referenced by addAccessibleEventListener(), disposing(), NotifyAccessibleEvent(), and removeAccessibleEventListener().
|
private |
Definition at line 60 of file vclxaccessiblelistitem.hxx.
Referenced by containsPoint(), getAccessibleIndexInParent(), getBounds(), getCharacterBounds(), getIndexAtPoint(), getLocation(), getLocationOnScreen(), and getSize().
|
private |
Definition at line 59 of file vclxaccessiblelistitem.hxx.
Referenced by copyText(), disposing(), getAccessibleName(), getCharacter(), getCharacterAttributes(), getCharacterBounds(), getCharacterCount(), getText(), getTextRange(), implGetText(), setCaretPosition(), setSelection(), and VCLXAccessibleListItem().
|
private |
Definition at line 67 of file vclxaccessiblelistitem.hxx.
Referenced by containsPoint(), copyText(), disposing(), getAccessibleParent(), getAccessibleStateSet(), getBounds(), getCharacterBounds(), getIndexAtPoint(), getLocation(), getLocationOnScreen(), getSize(), and VCLXAccessibleListItem().